Commit Graph

8 Commits

Author SHA1 Message Date
Demon000
7964f5f6dc sm6250-common: light: WHITE_LED -> NOTIFICATION_LED 2020-07-18 00:39:53 +03:00
Demon000
7e0d232409 sm6250-common: light: match service name 2020-07-17 21:35:39 +03:00
Demon000
3c7ffbcc8b sm6250-common: light: simplify alpha scaling logic
Change-Id: I9b5c15d5ec4865d3bf829457d6f110ddb3af6e94
2020-07-17 21:35:37 +03:00
Demon000
963ec1b29d sm6250-common: light: do not turn on breathing for unlit hardware states
Change-Id: I093fb2fb81012a473eda232d3c3407d0e0791907
2020-07-17 21:35:34 +03:00
Demon000
9cc256c981 sm6250-common: 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-07-17 21:35:31 +03:00
Demon000
46157d8b5b sm6250-common: light: avoid uint32_t underflow
Change-Id: If4f9360cc301ee8ba9f432dbbe3379c2c634c574
2020-07-17 21:35:29 +03:00
Demon000
f98970f590 sm6250-common: light: properly scale brightness range
Change-Id: I0c7b9d2644bbc67a1d404e60bbb2fcc7d8a305ec
2020-07-17 21:35:12 +03:00
Demon000
7a6ac36e65 sm6250-common: import light HAL from Xiaomi msm8998-common
Change-Id: Ieee4277f15927b4522deaec9a709809cf6db6fea
2020-07-17 20:45:46 +03:00