summaryrefslogtreecommitdiffstats
path: root/libsensors/LightSensor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Ignore first four light sensor events after enabling the sensor.Mike Lockwood2010-10-221-12/+14
| | | | | | | | | | 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-1/+3
| | | | Change-Id: I75f3d0baeae13ff6f10947252b173a062a66d74a
* S5PC11X: SENSOR: Change LightSensor to return luxMike J. Chen2010-09-271-8/+22
| | | | | | | | | | | | Our initial LightSensor HAL returned the raw adc from the driver. Now we implement an initial conversion from adc to lux levels. It's not perfect, but lux varies quite a bit anyway and the levels are so large that precision isn't generally as important as being in the right ballpark. We can ask HW team to do get more precision if necessary. Change-Id: I7ad09bb13831b8100c255ab9cd7287a4b684619d Signed-off-by: Mike J. Chen <mjchen@sta.samsung.com>
* S5PC11X: SENSOR: Add libsensor HAL.Mike J. Chen2010-09-171-0/+162
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>