diff options
author | Nick Vaccaro <nvaccaro@google.com> | 2015-03-19 17:33:25 -0700 |
---|---|---|
committer | Nick Vaccaro <nvaccaro@google.com> | 2015-05-14 14:47:56 -0700 |
commit | 9b7ebb5143dd692c20fc9348ae999450133dad57 (patch) | |
tree | 4829f3f786d6510844abffafec779b34eacffc7a /6515/libsensors_iio/sensors_mpl.cpp | |
parent | 6452c4ee74f245f0814e0cf44f2b6c1ad7a18fdf (diff) | |
download | invensense-9b7ebb5143dd692c20fc9348ae999450133dad57.tar.gz |
Invensense: 6515: Update HAL to v5_2_0_L_RC26-2015-02-27
Merged in the latest upgrade from Invensense, that purports to fix
some cts sensor test failures and includes a better pedometer
algorithm.
Bug: 19575833
Bug: 16778026
Bug: 16702488
Change-Id: Iaf8eba248bb9aa97f7b6a5394e939370a4812776
Diffstat (limited to '6515/libsensors_iio/sensors_mpl.cpp')
-rwxr-xr-x | 6515/libsensors_iio/sensors_mpl.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/6515/libsensors_iio/sensors_mpl.cpp b/6515/libsensors_iio/sensors_mpl.cpp index df0a97f..268b853 100755 --- a/6515/libsensors_iio/sensors_mpl.cpp +++ b/6515/libsensors_iio/sensors_mpl.cpp @@ -106,7 +106,7 @@ struct sensors_poll_context_t { int pollEvents(sensors_event_t* data, int count); int query(int what, int *value); int batch(int handle, int flags, int64_t period_ns, int64_t timeout); -#if defined ANDROID_KITKAT +#if defined ANDROID_KITKAT || defined ANDROID_LOLLIPOP int flush(int handle); #endif @@ -340,7 +340,8 @@ int sensors_poll_context_t::batch(int handle, int flags, int64_t period_ns, return mSensor->batch(handle, flags, period_ns, timeout); } -#if defined ANDROID_KITKAT +#if defined ANDROID_KITKAT || defined ANDROID_LOLLIPOP + void inv_pending_flush(int handle) { struct handle_entry *the_entry; pthread_mutex_lock(&flush_handles_mutex); @@ -410,7 +411,7 @@ static int poll__batch(struct sensors_poll_device_1 *dev, return ctx->batch(handle, flags, period_ns, timeout); } -#if defined ANDROID_KITKAT +#if defined ANDROID_KITKAT || defined ANDROID_LOLLIPOP static int poll__flush(struct sensors_poll_device_1 *dev, int handle) { @@ -437,7 +438,7 @@ static int open_sensors(const struct hw_module_t* module, const char* id, memset(&dev->device, 0, sizeof(sensors_poll_device_1)); dev->device.common.tag = HARDWARE_DEVICE_TAG; -#if defined ANDROID_KITKAT +#if defined ANDROID_KITKAT || defined ANDROID_LOLLIPOP dev->device.common.version = SENSORS_DEVICE_API_VERSION_1_3; dev->device.flush = poll__flush; #else |