Commit Graph

21 Commits

Author SHA1 Message Date
Pullakavi Srinivas
da0b325294 lights: Do not treat persistence node failures as fatal
Change-Id: I0ed8c13edc39f186e59b7d47ea957408e60889e4
2017-10-31 05:51:32 -07:00
Arun Kumar K.R
9ae5a34d17 liblights: Enable button backlight conditionally
Check for the existence of button backlight node before
enabling that in the HAL.

Change-Id: I66828d67dbabffdb694da55d4a3d12246fb7a66f
Crs-fixed: 2093165
2017-08-23 16:04:54 +05:30
Arun Kumar K.R
edd9998668 Revert "liblights: Remove unsupported button light node."
This reverts commit 42a514ab08.

Change-Id: Ia06ea393ffc737479b9199216b3e436d3ea10a28
Crs-fixed: 2093165
2017-08-23 15:13:02 +05:30
Arun Kumar K.R
42a514ab08 liblights: Remove unsupported button light node.
Light button is not supported on the msm platform, hence
remove that from the capability list.

Change-Id: I5a49ac767f9ccae0232992343b92e08bffdad6a2
Crs-fixed: 2093165
2017-08-18 14:55:03 +05:30
Saurabh Shah
8b021cface lights/sdm: Add support for new brightness node
Add support for the new brightness node under
/sys/class/backlight/panel0-backlight/brightness

Change-Id: I6489c6e3796b3f455b1aef3caae84da307e554e4
CRs-fixed: 1114808
2017-03-15 19:37:41 -07:00
Xu Yang
586c6d5f9a liblight: Add brightness level extension support
Add brightness level extension API to set backlight
through display API. The feature is enabled by property.

Change-Id: Ia6911433705cc946ed73ffc820396c350e3c8b88
2017-03-14 01:57:54 -07:00
Sathish Ambley
4342f27cd8 lights: Add support for low persistence mode
Add support for entering exiting low persistence mode during
vr mode enter exit respectively.

Change-Id: I080c021b8006d7b733b70f05172c869d043cb25b
2017-01-28 07:21:49 -08:00
Arun Kumar K.R
6203161ba8 Add space after string literal to fix compiler errors.
Change-Id: If1e97340a01bdb84a0d85d7348d3e18abdd37483
2015-08-04 16:56:11 -07:00
Ashay Jaiswal
26f0b53bef liblight: add support for mutiple blinking modes
Add support for multiple blinking mode for charger LED based on
On and Off time.

CRs-Fixed: 836728
Change-Id: I584de90c3b63c660c8a43cde87b16f9637a1838c
2015-05-12 20:08:19 +05:30
Mao Li
728ee0b565 liblight: turn off the LED when fail to set it blink
For those platforms which do not support blink, solid RED
LED keeps on after unplugging USB with capacity < 15.
Turn off the LED when fail to set it blink, so as to fix
this limitation.

Change-Id: I70ac9f6d645579a71caae852e6afbd9fb176c84b
2014-07-04 00:53:50 -07:00
Mao Li
a4e053a44f liblight: add support for battery light
Add contolling interface for battery light, battery service from
Android could control the led and show the status of battery.

CRs-fixed: 683915
Change-Id: I6b112621ba1161a374055f9baab95cf766e5d7e4
2014-06-22 20:29:10 -07:00
Manoj Kumar AVM
001b30942d hqd: Fix Klocwork errors in liblight
1. Fix null pointer de-reference klocwork error in liblight.
2. sprintf is part of ScanBan function. Replace sprintf with
   snprintf.

Change-Id: I0b88967a2bdf4adf563753c09df88d2c6a432045
2014-05-07 19:08:50 -07:00
Dileep Kumar Reddi
bf333c775d hqd : Use proper type casts
* Remove compilation errors
    * Use proper type casts

Change-Id: I1d44c2a2362a1fdd4d6e412ea816d4078e8355c9
:
2014-02-28 02:09:00 -08:00
Arun Kumar K.R
0efad603dc liblights: fix compiler warnings
- Use unused variable dev in the module
- remove unused local variables

Change-Id: Icb0cc033023640fd785abce9d00b467978500396
2014-01-31 11:40:02 -08:00
HuiWang
f73bc576b8 BackLight: Add support for button backlight.
Add function call to let framework layer could enable/disable the
button backlight.

Change-Id: I470ebb8953c5d3fdb72118dbaf06788c2079213e
2013-08-18 19:20:51 -07:00
Ameya Thakur
192c8ac6ca liblight: Add path to blink nodes for green/blue LED's.
Liblight can now set the green/blue LED's to blink mode.

Change-Id: I6206ed4397cf91859074b35b2faa9f287b3c4f9d
2013-08-12 18:54:23 -07:00
Yulian Shandorov
784d7396b9 liblight: Correct blink node according to new kernel changes
- Correct blink node path
- Remove old, unused nodes

Change-Id: Ifc565839e34013bd6c71fe14ef48f120b4ab4ffc
2013-06-20 04:28:59 -07:00
Mathew Karimpanal
dec98cc96e display: Standardize log-tags for qcom display logs.
Change-Id: I75bc2d8db8d64994097d6b744f357c29c9a5717a
2012-12-12 17:49:17 -08:00
Sungmin Choi
5c5ca0ca17 disable led while charging
Fixes b/6970382

Change-Id: Idb823059424a0fa1f6382dc01d56c6c4f668c45c
2012-08-17 14:17:18 -07:00
samin.ryu
d57c7d55c9 led: add blink feature and remove specific values
Change-Id: I3a9ea70f972c2a12d584e557294ef8c47f7a3f12
2012-08-17 14:11:40 -07:00
Sungmin Choi
b514889338 add light hal module
- initial version
- control lcd backlight
- control red, green, blue

Change-Id: Ibd24dcee3a739111f9eb6a7717b76754875da36e
2012-07-02 16:57:10 -07:00