summaryrefslogtreecommitdiffstats
path: root/libsensors/LightSensor.h
Commit message (Collapse)AuthorAgeFilesLines
* sensors: Remove workaround for lightsensor driver bugArve Hjønnevåg2011-11-101-1/+0
| | | | Change-Id: I5d8bd3f355ca46f6c60713b1516a621e45b53cfc
* sensors: Return a calculated lux value instead using the current 8 entry tableArve Hjønnevåg2011-11-011-2/+0
| | | | | | | | | | | | The light sensor now uses the lux to current formula in the datasheet, I = 10 * log(Ev) uA, and multiplies the result by 4 as an attempt to correct for the glass in front of the sensor. Also update the config_autoBrightnessLevels table so the auto brightness change occurs at the same adc values as before (or close for 7.26 and 94.5 lux). Change-Id: I5a54fda8eca26006671064b7db1e39ba0a5d7889
* Ignore first four light sensor events after enabling the sensor.Mike Lockwood2010-10-221-0/+1
| | | | | | | | | | The Crespo light sensor will report 4 bogus events that appear to be based on the value at the time the sensor was disabled when the sensor is reenabled. These events cause problems with monotonically increasing algorithm in the Power Manager ALS support. Change-Id: I6c53f9c93276921d359107df8ee0279579c50092 Signed-off-by: Mike Lockwood <lockwood@google.com>
* libsensor: suppress light levels that don't changeSimon Wilson2010-10-171-0/+1
| | | | Change-Id: I75f3d0baeae13ff6f10947252b173a062a66d74a
* S5PC11X: SENSOR: Add libsensor HAL.Mike J. Chen2010-09-171-0/+55
Goes with kernel drivers. Modeled after NexusOne version that uses input framework. We removed the old device nodes and add rules to make the new sysfs attributes accessible with the right permissions. Change-Id: I61e12da6c553eee664cebee9b9b9a77f9d099020 Signed-off-by: Mike J. Chen <mjchen@sta.samsung.com>