Commit graph

19 commits

Author SHA1 Message Date
erfanoabdi
d9f012a6f4
sdm660-common: light: Adapt light HAL for k4.19 2021-06-07 09:21:10 +06:00
Paul Keith
a2e190f5a2
sdm660-common: light: Drop unnecessary handled variable in setLight()
Change-Id: If6e76671cc1860102a5da6502338cda138dad3ee
2020-08-12 02:11:31 +06:00
chrmhoffmann
9e4356c1f2
sdm660-common: lights: fix an uninitialized local variable dereference
* lights hal might crash when call for buttons

Change-Id: Iadeb8490642cd7992daaa8b7854cdc1bb64a3de1
2020-08-12 02:11:31 +06:00
Demon000
f036db8030
sdm660-common: Rework Light HAL based on xiaomi-msm8998 source
* squash from here
afafb3b3f3/light

* Added automatic max brightness detection
* Rework debug Statments

The xiaomi-sdm660-devs one created Led Light issues

Change-Id: Ie7b62a488770734e659f4db03436ebaa2f2f5f30
2020-08-12 02:11:31 +06:00
Max Weffers
c90090bc75
sdm660-common: light: Fix double led lighting when notification
Change-Id: Id348163afb02680e72caa146b3119fe6ec911541
2020-08-12 02:02:38 +06:00
Max Weffers
53c8ca3cdb
sdm660: light: Support Red LED in Lights hal
* keep it for custom kernels

Change-Id: I30d8dcd41be3522b94bd7510c1f9be7569451d04
2020-08-12 02:02:38 +06:00
Demon Singur
3109aa6db9
sdm660-common: light: Set saner ramp values
Change-Id: Idf8053945cb9cfc15d4d401ec0e78953d3f3b051
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
2020-08-12 02:02:38 +06:00
dianlujitao
93f0b0ba58
sdm660-common: Support button backlight
Change-Id: Id13a42976df428c95c19eae49e1c114f057510bb
2020-08-12 02:02:37 +06:00
dianlujitao
4a0d509d3c
sdm660-common: Improve lights HAL
* Use libbase logging and file utils
 * Read max brightness from sysfs
 * Convert constants to constexpr
 * Move helper functions to anonymous namespace
 * Bug fixes
 * Remove redundant chmod
 * Start the service after permissions are set up because it reads max
   brightness in constructor.

Change-Id: I145d393c785e182060c5651e796d489f8c4d697b
2020-08-12 02:02:37 +06:00
Davide Garberi
cc63fa4306
sdm660-common: light: Set blink as last parameter
* Setting it earlier brings the device to often not show
  the led light at all

Change-Id: I2663611241f7db571625e25694ebc77601bde5f6
2020-08-12 02:02:37 +06:00
Demon000
5b63d5c3fb
sdm660-common: Adapt Light Hal for commonized sdm660 tree
Change-Id: If08b3cfc5e4e5bb35b39d6616d0fd974a709e61d
2020-08-12 02:02:37 +06:00
dianlujitao
35ff9a708f
sdm660-common: lights: red -> white
Change-Id: I097c542f95434d85b8c041b156dfd81952c64164
2020-08-12 02:02:37 +06:00
Paul Keith
16f37dbdcd
sdm660-common: light: Drop unnecessary handled variable in setLight() 2019-08-14 10:04:10 +02:00
chrmhoffmann
f3fe52d1f0
sdm660-common: lights: fix an uninitialized local variable dereference
* lights hal might crash when call for buttons

Change-Id: Iadeb8490642cd7992daaa8b7854cdc1bb64a3de1
2019-08-14 10:04:10 +02:00
Max Weffers
c1ab176762
sdm660-common : Adapt xiaomi msm8998 Light hal for sdm660 2019-08-14 10:04:10 +02:00
Max Weffers
cb1b743b8d
sdm660-common: Transform into common sdm660 tree 2019-08-14 10:04:10 +02:00
Isaac Chen
29136ba5ed wayne: light: Support ramp step notification control
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
2018-07-31 00:00:10 +00:00
Harshit Jain
ad9a011a07 wayne: light: Throw a warning if path stream ain't valid 2018-07-13 00:03:17 +00:00
dev-harsh1998
9cfa4c0be9 wayne: Convert light HAL into a HIDL service
Signed-off-by: dev-harsh1998 <harshit.india@linaro.org>
2018-07-13 00:03:17 +00:00