Commit Graph

10 Commits

Author SHA1 Message Date
Bruno Martins
89e12ed874
davinci: lights: Remove LCD backlight handling
Since composer HAL is now able to handle display brightness,
this can be removed from the lights HAL.

Change-Id: Ic10cead638382d448a94205bcec3543177d387f6
2021-04-25 14:49:59 +02:00
Arian
53b4be9757
davinci: light: Adjust for new led labels in kernel
Change-Id: I1fca124501ad6a220013572587c55d5f26488dad
2020-11-28 18:12:02 +01:00
vasishath
4979e2c172
davinci: light: Detect maximum brightness dynamically
Change-Id: I9385be40a8598e1142bb3844446b6bbeb5aab008
2020-08-05 14:03:32 +02:00
Demon000
b7413b8791
davinci: light: Simplify alpha scaling logic
Change-Id: I9b5c15d5ec4865d3bf829457d6f110ddb3af6e94
2020-08-05 14:03:32 +02:00
Demon000
25523a776d
davinci: light: Do not turn on breathing for unlit hardware states
Change-Id: I093fb2fb81012a473eda232d3c3407d0e0791907
2020-08-05 14:03:32 +02:00
Demon000
13a3863832
davinci: light: Avoid resetting state
The handler function is called regardless of whether the value of the
highest priority state changed.
In case of the notification led, this translates to the breathing
process being reset, which triggers my OCD.

Change-Id: I4880b00602cbb739219871f1d7ce9ad85d87bc1b
2020-08-05 14:03:32 +02:00
Demon000
feedda1d84
davinci: light: Avoid uint32_t underflow
Change-Id: If4f9360cc301ee8ba9f432dbbe3379c2c634c574
2020-08-05 14:03:32 +02:00
Demon000
e5440961f0
davinci: light: Properly scale brightness range
Change-Id: I0c7b9d2644bbc67a1d404e60bbb2fcc7d8a305ec
2020-08-05 14:03:32 +02:00
Arian
5af8701925
davinci: lights: Adjust for davincis LEDs
Change-Id: If9e5afe292b023a8aa4d5ba509e206f9a4ff371f
2020-08-05 14:03:32 +02:00
Demon000
3e94ffe9a3
davinci: light: Import HAL from Xiaomi msm8998-common
Change-Id: Ieee4277f15927b4522deaec9a709809cf6db6fea
2020-08-05 14:03:32 +02:00