summaryrefslogtreecommitdiffstats
path: root/libsensors
Commit message (Collapse)AuthorAgeFilesLines
* S5PC11X: libsensor: Changes to match libakm changeMike J. Chen2010-12-074-43/+21
| | | | | | | | | 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-164-21/+43
| | | | This reverts commit 339031d332706f21cbce560ca379e7624cad8316.
* Revert "Revert "S5PC11X: libsensor: Changes to match libakm change""Ed Heyl2010-11-154-43/+21
| | | | This reverts commit e3d3b3173b5258f3629e1e2d0c1692270262e8c1.
* Revert "S5PC11X: libsensor: Changes to match libakm change"Mathias Agopian2010-11-124-21/+43
| | | | This reverts commit 749e2d79ec72c186019456f60ce7f3dd18b2f68b.
* S5PC11X: libsensor: Changes to match libakm changeMike J. Chen2010-11-114-43/+21
| | | | | | | | | 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-094-23/+20
| | | | | | | | 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-082-4/+7
| | | | | | | | | | 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
* fix [3175369] gyro X and Y axes invertedMathias Agopian2010-11-081-3/+3
| | | | Change-Id: Id9adf56b499c9a5f6b84d1b5796cf10313fd69c7
* Ignore first four light sensor events after enabling the sensor.Mike Lockwood2010-10-222-12/+15
| | | | | | | | | | 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>
* 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>
* libsensor: suppress light levels that don't changeSimon Wilson2010-10-172-1/+4
| | | | Change-Id: I75f3d0baeae13ff6f10947252b173a062a66d74a
* S5PC11X: SENSOR: Change accelerometer's CONVERT_A valuetim.sk.lee2010-10-081-2/+2
| | | | | | | Because the kernel now passes the sum of accel values instead of each raw value Change-Id: Id5d254fd3200a778811f52df89c4fc286fe91613 Signed-off-by: tim.sk.lee <tim.sk.lee@samsung.com>
* S5PC11X: SENSOR: Change gyroscope reporting value unittim.sk.lee2010-10-081-1/+1
| | | | | | | | Gryoscope kernel driver uses 2000dps, so changed HAL to report gryscope values with correct unit Change-Id: I8b05684cb7e0c79f5cefb28c197f4b2e1ad768da Signed-off-by: tim.sk.lee <tim.sk.lee@samsung.com>
* S5PC11X: SENSOR: Let gyroscope fetch full events before return correctlytim.sk.lee2010-10-081-4/+1
| | | | | | | | | | Instead of removing 'FETCH_FULL_EVENT_BEFORE_RETURN' code, make it check out whether gyrscope is enabled or disabled and it will not go to 'again' label ceaselessly when gyroscope disabled in order to not affect the other senors. Change-Id: I11a09208a997d476724c70cbc4402ba6a163d8de Signed-off-by: tim.sk.lee <tim.sk.lee@samsung.com>
* S5PC11X: SENSORS: Rename libsensors to herringRom Lemarchand2010-10-061-1/+1
| | | | | | | Renaming the libsensors from crespo to herring Change-Id: Id44d10210cb7e301c990b6d2de2e2d95ac338a16 Signed-off-by: Rom Lemarchand <rlemarchand@sta.samsung.com>
* S5PC11X: SENSORS: Modify the sensor HAL to use libakmAdam Hampson2010-10-063-73/+103
| | | | | | | | | This change modifies the AKMSensor portion of the sensor HAL to use libakm. Previously this code communicated with the AKM daemon and the magnetometer driver using a misc device. Change-Id: Icbbd6f00de0257ca9bf4d4942b82c519f15429f4 Signed-off-by: Adam Hampson <ahampson@sta.samsung.com>
* 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: 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: SENSORS: Fix delays in AkmSensorMike J. Chen2010-09-241-1/+1
| | | | | | | Fix delays to be int64_t nanoseconds. Needs corresponding driver fix. Change-Id: I5a780c3743d91df70fcd1274c5b32ac58c68ac2b Signed-off-by: Mike J. Chen <mjchen@sta.samsung.com>
* S5PC11X: SENSOR: Change delay name of Gyroscope(poll_delay)tim.sk.lee2010-09-241-1/+1
| | | | | Change-Id: I62301df6e4e8cb177cd900230e961db8f9256721 Signed-off-by: tim.sk.lee <tim.sk.lee@samsung.com>
* S5PC11X: SENSOR: Change gyroscope XYZ axistim.sk.lee2010-09-241-4/+4
| | | | | Change-Id: Ieb3b329b669ee9789dd4822b538e9eba1f53d91f Signed-off-by: tim.sk.lee <tim.sk.lee@samsung.com>
* S5PC11X: SENSOR: Add libsensor HAL.Mike J. Chen2010-09-1716-0/+1877
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>