summaryrefslogtreecommitdiffstats
path: root/libsensors/sensors.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Herring Sensorsreplicant-4.2-0002replicant-4.2-0001Paul Kocialkowski2014-01-031-329/+0
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-5/+5
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: I03a60758c6dad0d9ecbce42f092a0fe757bd7184
* sensors: Retry poll on EINTRArve Hjønnevåg2011-11-091-1/+3
| | | | Change-Id: I3c6090ef7b0480be63856f9c3356426c7d761777
* sensors: Return a calculated lux value instead using the current 8 entry tableArve Hjønnevåg2011-11-011-1/+1
| | | | | | | | | | | | 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
* partially fix bug [4026143] Gyro sample rate is inconsistant with datasheetMathias Agopian2011-03-141-1/+1
| | | | | | | | | Report 840 Hz instead of 833 Hz in the HAL. 840 Hz matches the datasheet. The actual sampling rate seems to be higher, which still needs to be investigated. Bug: 4026143 Change-Id: Ia5a45b131c304404db262e1bfe3d69c7a3a00c58
* S5PC11X: libsensor: Changes to match libakm changeMike J. Chen2010-12-071-3/+3
| | | | | | | | | Changes to match libakm change to get raw acc data from driver and to allow setting acc driver delay separately from mag/orientation driver. Change-Id: Ibe5648f1395334ef3bf5975ec0660f10199c9833 Signed-off-by: Mike J. Chen <mjchen@sta.samsung.com>
* Revert "Revert "Revert "S5PC11X: libsensor: Changes to match libakm change"""Ed Heyl2010-11-161-3/+3
| | | | This reverts commit 339031d332706f21cbce560ca379e7624cad8316.
* Revert "Revert "S5PC11X: libsensor: Changes to match libakm change""Ed Heyl2010-11-151-3/+3
| | | | This reverts commit e3d3b3173b5258f3629e1e2d0c1692270262e8c1.
* Revert "S5PC11X: libsensor: Changes to match libakm change"Mathias Agopian2010-11-121-3/+3
| | | | This reverts commit 749e2d79ec72c186019456f60ce7f3dd18b2f68b.
* S5PC11X: libsensor: Changes to match libakm changeMike J. Chen2010-11-111-3/+3
| | | | | | | | | Changes to match libakm change to get raw acc data from driver and to allow setting acc driver delay separately from mag/orientation driver. Change-Id: I7cfa7f5076e0735c17931558687c4cdf96959ac3 Signed-off-by: Mike J. Chen <mjchen@sta.samsung.com>
* S5PC11X: SENSOR: Mag, accel, orientation and gyro get the cotinuous eventstim.sk.lee2010-11-091-4/+4
| | | | | | | | By using EV_REL instead of EV_ABS, sensors can get continous events even though they're not changed. Change-Id: I2341c0d1a1cdec223328796355ebf0210a9dea5e Signed-off-by: tim.sk.lee <tim.sk.lee@samsung.com>
* clean-up how sensor data are reported or calculated.Mathias Agopian2010-11-081-4/+4
| | | | | | | | | | also change the magnetic field sensor reported resolution from 1/256 to 1/16. I'm not sure how it can be 1/256 given that LSB is 1/16 uT. This seems more correct. Factorize a few values in the header file. Change-Id: Ifd479e431b10584d3bdd28fc1ca189e5402ea3cc
* S5PC11X: SENSOR: Correct sensor range/resolutiontim.sk.lee2010-10-211-5/+5
| | | | | | | | Change sensor range/resolution data correctly from datasheets and driver specifications Change-Id: If636e8f54581e7e95f838cb66eed9d7a15a7378a Signed-off-by: tim.sk.lee <tim.sk.lee@samsung.com>
* S5PC11X: SENSORS: Fix sensor string nameMike J. Chen2010-09-241-3/+3
| | | | | | | | Accelerometer name was wrong. So was manufacturer for a couple of drivers. Change-Id: If096e12c4185693638549bc88c360fab3b93606d Signed-off-by: Mike J. Chen <mjchen@sta.samsung.com>
* S5PC11X: SENSOR: Add libsensor HAL.Mike J. Chen2010-09-171-0/+327
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>