summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2017-07-13 09:11:10 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-07-13 15:08:42 -0700
commit9fad1adc800cd950e4bd3f292f83186eb0e4f272 (patch)
tree8ff7d8f1838c9f325345a9f1dda23e9bd74d28e2
parent6bcbc966cfa5d0f048824f827ca2825a1a1bf50e (diff)
downloadchrome-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>
-rw-r--r--driver/als_si114x.h4
-rw-r--r--driver/mag_bmm150.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/driver/als_si114x.h b/driver/als_si114x.h
index 3ca30300f8..85b8677cdf 100644
--- a/driver/als_si114x.h
+++ b/driver/als_si114x.h
@@ -216,9 +216,9 @@
/* Min and Max sampling frequency in mHz */
#define SI114X_PROX_MIN_FREQ 504
-#define SI114X_PROX_MAX_FREQ 100000
+#define SI114X_PROX_MAX_FREQ 50000
#define SI114X_LIGHT_MIN_FREQ 504
-#define SI114X_LIGHT_MAX_FREQ 100000
+#define SI114X_LIGHT_MAX_FREQ 50000
extern const struct accelgyro_drv si114x_drv;
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. */