| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
See https://android-git.corp.google.com/g/#/c/157220
Bug: 5449033
Change-Id: I03a60758c6dad0d9ecbce42f092a0fe757bd7184
|
|
|
|
| |
Change-Id: I5d8bd3f355ca46f6c60713b1516a621e45b53cfc
|
|
|
|
| |
Change-Id: I3c6090ef7b0480be63856f9c3356426c7d761777
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Bug: 5010576
Change-Id: Ie6fa05f8d72bdf6da3b743a7f8c2464f9febc868
|
|\
| |
| |
| |
| |
| |
| | |
Gyro sample rate is inconsistant with datasheet" into gingerbread
* commit 'e1709611e902208cd61d9bdb763e2c7210b74079':
partially fix bug [4026143] Gyro sample rate is inconsistant with datasheet
|
| |\
| | |
| | |
| | | |
datasheet" into gingerbread
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | | |
gyroscope sensor events
* commit '8f19ee06f8d60f59dfb787c5f46f6869b64e9bed':
SENSOR: Ignore the first 350ms gyroscope sensor events
|
| |/
| |
| |
| |
| |
| |
| |
| | |
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>
|
|/
|
|
|
| |
Change-Id: I25ff348e6d19d5b57c389bd18e862f3dd674512d
Signed-off-by: Iliyan Malchev <malchev@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
'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>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
This reverts commit 339031d332706f21cbce560ca379e7624cad8316.
|
|
|
|
| |
This reverts commit e3d3b3173b5258f3629e1e2d0c1692270262e8c1.
|
|
|
|
| |
This reverts commit 749e2d79ec72c186019456f60ce7f3dd18b2f68b.
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: Id9adf56b499c9a5f6b84d1b5796cf10313fd69c7
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Change-Id: I75f3d0baeae13ff6f10947252b173a062a66d74a
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Renaming the libsensors from crespo to herring
Change-Id: Id44d10210cb7e301c990b6d2de2e2d95ac338a16
Signed-off-by: Rom Lemarchand <rlemarchand@sta.samsung.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
Fix delays to be int64_t nanoseconds. Needs corresponding driver fix.
Change-Id: I5a780c3743d91df70fcd1274c5b32ac58c68ac2b
Signed-off-by: Mike J. Chen <mjchen@sta.samsung.com>
|
|
|
|
|
| |
Change-Id: I62301df6e4e8cb177cd900230e961db8f9256721
Signed-off-by: tim.sk.lee <tim.sk.lee@samsung.com>
|
|
|
|
|
| |
Change-Id: Ieb3b329b669ee9789dd4822b538e9eba1f53d91f
Signed-off-by: tim.sk.lee <tim.sk.lee@samsung.com>
|
|
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>
|