History log of /hardware/invensense/6515/libsensors_iio/MPLSensor.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d29301d07151fde33381ccafc3d43524c5ebc068 28-Jun-2014 Nick Vaccaro <nvaccaro@google.com> Invensense: 6515: fix flush completion for step detector

Fix a bug in the HAL that was delaying flush completion packet from
getting delivered up to Sensor Services.

Fix a compass calibration bug.

Bug: 15316005
Bug: 15716657
Change-Id: Id9eba806ada8bc6dabb5f182683b015751a8c0d9
/hardware/invensense/6515/libsensors_iio/MPLSensor.cpp
c6a022ca9e5b696874fb3ce0cc988f949a06533e 27-Jun-2014 Nick Vaccaro <nvaccaro@google.com> Invensense: 6515: Spoof flush complete for step counter

When flush is called for the step counter, allow the flush call to
happen, and then issue a flush completion event.

Bug: 15316005
Change-Id: I55bb3bc42c896ee6f9a222e5a09b519e64f4b09b
/hardware/invensense/6515/libsensors_iio/MPLSensor.cpp
58fe70cf169ef13506bd49e61e2cbd4dc1bf02e3 19-Jun-2014 Nick Vaccaro <nvaccaro@google.com> Revert "Invensense: 6515: allow flush calls for step detector"

This reverts commit c994cff5873e223100a9f4f2ce9281bec460ef16.

This fixes step counter behavior, but breaks CTS tests for
testBatchAndFlush and testBatchAndFlushWithHandler (b/15316005).

Bug: 15695965
Change-Id: I9660c11c8811fdfc207d66137667b5a781ac41fe
/hardware/invensense/6515/libsensors_iio/MPLSensor.cpp
e677ba07721a9e16ca90bf6e95df52d92817d3f9 16-Jun-2014 Justin Koh <justinkoh@google.com> Merge "Invensense: 6515: allow flush calls for step detector" into klp-modular-dev
c994cff5873e223100a9f4f2ce9281bec460ef16 15-Jun-2014 Nick Vaccaro <nvaccaro@google.com> Invensense: 6515: allow flush calls for step detector

Pass through calls for flush of step detector.

Bug: 15316005
Change-Id: If36837b77e6f7021dfe127be53774b7bd72ffdee
/hardware/invensense/6515/libsensors_iio/MPLSensor.cpp
9478d39a0d83d276899e3f5c876785c7f14ba497 12-Jun-2014 Nick Vaccaro <nvaccaro@google.com> Invensense: 6515: fix compass data reporting when pedometer on

When step counter is on, no data was reported from compass when
magnet is attached (device on charger), causing compass app to
freeze. When magnet is attached, compass will now return the
last good value it read, keeping the compass app happy.

Bug: 15282844
Change-Id: Ib7102aac9d5a04cfdbf253be01809a1a192a81dc
/hardware/invensense/6515/libsensors_iio/MPLSensor.cpp
12c6e53cec1b0b1f5bbfde63724d8ebb72ae936e 08-Jun-2014 Nick Vaccaro <nvaccaro@google.com> Invensense: 6515: Send step counter event on activation of sensor

Rules for an "on-change" sensor type state "The HAL must return an
event immediately when an on-change sensor is activated". An initial
event was not being sent in the event of the step counter sensor
being enabled, now it is.

Bug: 15429158
Change-Id: I670bc2bdcbc0138193e1d39639d8ef71000bd436
/hardware/invensense/6515/libsensors_iio/MPLSensor.cpp
f51dc826bb5e75a074a14c1227e750160b3fc694 09-May-2014 Nick Vaccaro <nvaccaro@google.com> Invensense: 6515: update HAL to 5.2.0 RC23

RC23 (driver and HAL combination) purports to fix the following RC22
issues:
- Cadence fix to improve Step counter performance.
- Batch mode wakes up device in suspend mode
- Implement suspend_noirq method, removed unnecessary usleep
- Handle bad compass data in HAL
- Handle pressure support correctly in HAL

Added the following fixes to RC23 HAL drop from Invensense:
- fix bug caused when pressure sensor is disabled
- remember pedometer poll rate
- remove hard-coded pedometer poll time

Bug: 14234011

Change-Id: I3e0a7b232d8047a66029b6af967752f9e653ab27
/hardware/invensense/6515/libsensors_iio/MPLSensor.cpp
e1df3ea6fb4c1af4069e0610a5a7a8634b786e99 07-May-2014 Nick Vaccaro <nvaccaro@google.com> Invensense: 6515: remember pedometer poll rate

The enableDmpPedometer call was hard-coding the pedometer poll period
to 100mS. Save off the period passed to batch() as the new step count
polling period instead of hard-coding it to 100mS.

Bug: 14299562

Change-Id: Idc680c0a5d3c8bad7caf0db58336ea60d56a81de
/hardware/invensense/6515/libsensors_iio/MPLSensor.cpp
56fa6bff099c045ff4241c156309c6d94ac03f49 01-May-2014 Nick Vaccaro <nvaccaro@google.com> Invensense: 6515: remove hard-coded pedometer poll time

Previous code returned a hard-coded constant of 100mS when asked for
pedometer polling time; change to use mStepCountPollTime instead.

Bug: 14299562

Change-Id: I0e99f8b61da36093e6014cafe44088affbfb9033
/hardware/invensense/6515/libsensors_iio/MPLSensor.cpp
b15903ff47c3d5234f14919941b36bf26a96a82e 29-Apr-2014 Nick Vaccaro <nvaccaro@google.com> Invensense: 6515: fix bug caused when pressure sensor is disabled

If building the Invensense HAL to not include a pressure sensor, the
sensorlist returned from the HAL gets screwed up in that the sensor
attributes reported by the HAL get off-by-one (i.e. sensor #2 reports
attributes for sensor #3).

Bug: 14368807
Change-Id: I9c1e634dc0f471dbb8eedf8d36bc8e2fdaf2ce67
/hardware/invensense/6515/libsensors_iio/MPLSensor.cpp
dc17e951c1ea1633fb80a9a59931e073f154c924 15-Apr-2014 Nick Vaccaro <nvaccaro@google.com> Invensense: 6515: update HAL to 5.2.0 RC22

RC22 purports to fix the following RC20 issues:
- CTS for Sensor Module Fails for SensorTest
- Resource leak in HAL
- DMP not disabled after SMD fired
- Pedometer pedometer_step_thresh is not consistently applied
- Update rate handling when batch mode with PED or SMD
- Orientation and rotation vector fix
- Redundant wait after setting DLPF

Bug: 13936932

Change-Id: Ieccfc76b6dddf414db4271afb612d3493f7df534
/hardware/invensense/6515/libsensors_iio/MPLSensor.cpp
a73d574dda77810ae10046c68e7a9aa38ad77603 27-Mar-2014 Nick Vaccaro <nvaccaro@google.com> Invensense: 6515: Import of Motion Apps 5.2.0 HAL RC20 Release

Import latest Invensense HAL for use by devices using the 6515.

Change-Id: I1b585df6882ea007ffafba44261283784d667c2a
/hardware/invensense/6515/libsensors_iio/MPLSensor.cpp
c3d4ca9f2df5ddf9894b36d1554fdfc95d625d3f 06-Dec-2013 Nick Vaccaro <nvaccaro@google.com> Motion Apps 5.2.0 HAL Release

Add latest 5.2.0 version of InvenSense HAL for the mpu9250 into it's own
unique folder named 6515 so that Hammerhead still uses it's original 65xx HAL.

Change-Id: I90f1bbbc1de2283a8d337495b6af59261cd63f88
Signed-off-by: Nick Vaccaro <nvaccaro@google.com>
/hardware/invensense/6515/libsensors_iio/MPLSensor.cpp