summaryrefslogtreecommitdiffstats
path: root/libsensors
Commit message (Collapse)AuthorAgeFilesLines
* Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGESteve Block2012-01-086-13/+13
| | | | | | | See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: I03a60758c6dad0d9ecbce42f092a0fe757bd7184
* sensors: Remove workaround for lightsensor driver bugArve Hjønnevåg2011-11-102-13/+1
| | | | Change-Id: I5d8bd3f355ca46f6c60713b1516a621e45b53cfc
* 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-013-33/+8
| | | | | | | | | | | | 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
* Remove the simulator target from all makefiles.Jeff Brown2011-07-111-5/+0
| | | | | | Bug: 5010576 Change-Id: Ie6fa05f8d72bdf6da3b743a7f8c2464f9febc868
* am e1709611: am 30ad80fd: am 19012b66: Merge "partially fix bug [4026143] ↵Simon Wilson2011-03-141-1/+1
|\ | | | | | | | | | | | | Gyro sample rate is inconsistant with datasheet" into gingerbread * commit 'e1709611e902208cd61d9bdb763e2c7210b74079': partially fix bug [4026143] Gyro sample rate is inconsistant with datasheet
| * Merge "partially fix bug [4026143] Gyro sample rate is inconsistant with ↵Simon Wilson2011-03-141-1/+1
| |\ | | | | | | | | | datasheet" into gingerbread
| | * 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
* | | am 8f19ee06: am c6d33b6e: am 63a93125: SENSOR: Ignore the first 350ms ↵tim.sk.lee2011-03-142-4/+9
|\ \ \ | |/ / | | | | | | | | | | | | | | | gyroscope sensor events * commit '8f19ee06f8d60f59dfb787c5f46f6869b64e9bed': SENSOR: Ignore the first 350ms gyroscope sensor events
| * | SENSOR: Ignore the first 350ms gyroscope sensor eventstim.sk.lee2011-03-142-4/+9
| |/ | | | | | | | | | | | | | | Fixes: Gyro data is wrong for the first 300ms Bug: 4027031i Change-Id: I7f29ffbae7fe665184b018f17efd562069ca60a3 Signed-off-by: tim.sk.lee <tim.sk.lee@samsung.com>
* | device/samsung/crespo: remove LOCAL_PRELINK_MODULEIliyan Malchev2011-03-141-2/+2
|/ | | | | Change-Id: I25ff348e6d19d5b57c389bd18e862f3dd674512d Signed-off-by: Iliyan Malchev <malchev@google.com>
* 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-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>