Commit Graph

5 Commits

Author SHA1 Message Date
Sebastiano Barezzi
627e6ad184 aidl: light: Make RGB utils rgb_t methods
Change-Id: Iaaa34987c7670077214078169ddeb756a794403b
2022-09-13 22:12:15 +05:30
Sebastiano Barezzi
646127bbc9 aidl: light: Don't store alpha value
* We already apply it to RGB colors, it's not used outside colorToRgb()

Change-Id: Ic683f1355432e17328119f4a4da0f9fe6b5efe71
2022-09-13 22:12:09 +05:30
Sebastiano Barezzi
242aaad5c0 aidl: light: Set color and brightness data size to 8bit
* We're wasting memory

Change-Id: Ie66f504f32b487642c25b104240eaa8fb2df870c
2022-09-13 22:12:02 +05:30
BeYkeRYkt
2d6bc53b95
aidl: light: Don't scale RGB brightness if alpha is 0
* Fixes custom LED colors

Change-Id: I14150292a0a3d8411a26e45f8a4fa4b40f3101b7
2022-02-07 15:47:57 +01:00
Sebastiano Barezzi
f162d20b5b
aidl: light: Wire up
* Merged Xiaomi SM8250, SM8150, SM6250, SDM710 and MSM8953 implementations

Change-Id: I16764ec8676de6c2a9f745876dddab75db6adf35
2022-02-07 15:47:57 +01:00