summaryrefslogtreecommitdiffstats
path: root/libsensors/AkmSensor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-081-3/+3
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: I03a60758c6dad0d9ecbce42f092a0fe757bd7184
* S5PC11X: SENSOR: The status of orientation sensor show correcly when it is ↵tim.sk.lee2011-02-101-2/+4
| | | | | | | | | | | | | | '0' (2) When the status goes to '0', that event is ignored because its event type is 'REL' which filters out number '0'. So if the real status changes into '0' from '1, 2, 3', the status on the display still remains '1, 2, 3' even though actual status is '0'. Getting around this problem by reporting event as 4 instead of '0'. If sensor HAL got '4', it retansforms it into '0'. Change-Id: I41a92be60c0b0a96ac8dc9fba4fd4d21d8abc76c Signed-off-by: tim.sk.lee <tim.sk.lee@samsung.com>
* S5PC11X: libsensor: Changes to match libakm changeMike J. Chen2010-12-071-31/+12
| | | | | | | | | 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-12/+31
| | | | This reverts commit 339031d332706f21cbce560ca379e7624cad8316.
* Revert "Revert "S5PC11X: libsensor: Changes to match libakm change""Ed Heyl2010-11-151-31/+12
| | | | This reverts commit e3d3b3173b5258f3629e1e2d0c1692270262e8c1.
* Revert "S5PC11X: libsensor: Changes to match libakm change"Mathias Agopian2010-11-121-12/+31
| | | | This reverts commit 749e2d79ec72c186019456f60ce7f3dd18b2f68b.
* S5PC11X: libsensor: Changes to match libakm changeMike J. Chen2010-11-111-31/+12
| | | | | | | | | 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-2/+2
| | | | | | | | 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>
* S5PC11X: SENSORS: Modify the sensor HAL to use libakmAdam Hampson2010-10-061-72/+100
| | | | | | | | | 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: 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: Add libsensor HAL.Mike J. Chen2010-09-171-0/+295
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>