summaryrefslogtreecommitdiffstats
path: root/libsensors
Commit message (Collapse)AuthorAgeFilesLines
* n7100: Fix sensors buildtilaksidduram2015-11-179-0/+9
|
* libsensors: fix sensors enable and disableDheeraj CVR2015-02-131-24/+16
| | | | | | | | | | | | | | | | | | | | | * "//Accel sensor is first on and last off" This is totally wrong. The since we are using a single sysfs path to enable and disable all of the sensors, the kernel driver uses bitwise operations on the input value to know which sensors should be enabled. The current logic wrongly assumes that the sensors are enabled and disabled in a specific order and if accelerometer was disabled, all of the other sensors were being disabled too. This caused inconsistent sensor states between the sensor HAL and the kernel driver and most of the time, the sensors failed to work properly and drained battery. Simplify the code to use bitwise operations instead of arithematic operations to keep things clean. Additionally, since two or more sensors can be enabled or disabled at the same time, we use a lock to prevent race conditions. Change-Id: Ifc3fab1456d4061f58d52f2ecda822c6157aae6e
* libsensors: update paths to match new kernel baseDerTeufel2015-01-055-5/+5
| | | | Change-Id: I89bcc9c86d1974348f67ec4b5974f52c05de711d
* n7100: update sensors for Lsbrissen2015-01-052-9/+14
| | | | Change-Id: I94bed7e8e1a722cef01649930c82c84276720946
* n7100: Bring back open source sensorsDheeraj CVR2015-01-0520-0/+2393
| | | | | | | | | | | | This reverts commit 00ac0f43785afd63a16b74034f4701928e941360. Change-Id: I810bad7b533d8c8edf0152b36874789e02994bad n7100: sensors: Fix buffer size Change-Id: I93a999a47ade6982c0b1fec56d611465f8dad830 Conflicts: n7100.mk
* Revert "N7100: Open source sensors"tilaksidduram2014-06-1020-2398/+0
| | | | This reverts commit 28e3038bf810016925668ff5d8236325d37aaab9.
* Revert "n7100: fix up sensors"tilaksidduram2014-06-104-42/+16
| | | | This reverts commit cd5145640187472147f77a2e9be8e7055097b581.
* n7100: fix up sensorssbrissen2014-06-054-16/+42
| | | | | | | | | | | -dibable all sensors when screen is off. port from t0: http://review.cyanogenmod.org/#/c/60292/ Change-Id: I66566f5a17acdc7c6dda84eef81af928567cfa37 Conflicts: libsensors/sensors.h
* N7100: Open source sensorssbrissen2013-12-2420-0/+2398
smdk4412: https://gerrit.omnirom.org/#/c/3934/ This reverts commit 1862e93acf995525493f0c47f4ba6fde37611ba2. Change-Id: Ib5c14f7da94ea1696bae36f7d0bf19a0c63e57e9 Conflicts: BoardConfig.mk