diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2017-07-13 09:11:10 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-07-13 15:08:42 -0700 |
commit | 9fad1adc800cd950e4bd3f292f83186eb0e4f272 (patch) | |
tree | 8ff7d8f1838c9f325345a9f1dda23e9bd74d28e2 /driver/mag_bmm150.h | |
parent | 6bcbc966cfa5d0f048824f827ca2825a1a1bf50e (diff) | |
download | chrome-ec-9fad1adc800cd950e4bd3f292f83186eb0e4f272.tar.gz |
driver: sensor: tune MAX_FREQ
Reduce maximum frequency of BMM150 compass to 80Hz, 800Hz is a typo.
Reduce SI1141 maximum frequency to 50Hz: 100Hz is too high when polling
mode is used.
Fix up of CL:482703
BRANCH=eve, glados
BUG=chromium:615059
TEST=On eve, check CTS test
android.hardware.cts.SensorBatchingTests#testMagneticField_fastest_flush
passes. Observed that dumpsys sensorservice returns compass maxRate at
80Hz instead of 200Hz.
Change-Id: If4e688ab59aa53c402d34714b6bb33ccd4a4ab96
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/570482
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'driver/mag_bmm150.h')
-rw-r--r-- | driver/mag_bmm150.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/mag_bmm150.h b/driver/mag_bmm150.h index 7eb469cf43..51b2926e8a 100644 --- a/driver/mag_bmm150.h +++ b/driver/mag_bmm150.h @@ -76,7 +76,7 @@ /* Min and Max sampling frequency in mHz */ #define BMM150_MAG_MIN_FREQ 781 -#define BMM150_MAG_MAX_FREQ 800000 +#define BMM150_MAG_MAX_FREQ 80000 struct bmm150_comp_registers { /* Local copy of the compensation registers. */ |