From 9b7ebb5143dd692c20fc9348ae999450133dad57 Mon Sep 17 00:00:00 2001 From: Nick Vaccaro Date: Thu, 19 Mar 2015 17:33:25 -0700 Subject: 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 --- 6515/libsensors_iio/sensors_mpl.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to '6515/libsensors_iio/sensors_mpl.cpp') 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 -- cgit v1.2.3