History log of /system/chre/ash/platform/slpi/ash.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b9d199936165f42ac7e7eabac1bdb4968d938f4f 22-Aug-2017 Brian Duddie <bduddie@google.com> Switch to SMR for sensors support

To support receiving sensor data while in micro-image, use SMR to
communicate with SMGR rather than going through the QMI client APIs.
SMR essentially wraps the QMI interfaces and provides a short-cut that
bypasses encode/decode, though it only exposes an asynchronous API.

Bug: 63601406
Test: confirm that sensors still work in big image using SensorWorld
Change-Id: I4f5331081e5c7d5978999e281479c5672e59a1c4
/system/chre/ash/platform/slpi/ash.cc
6a847ca4ff1894ef5ee29191e895bcdf2769aa64 16-Jun-2017 Meng-hsuan Chung <menghsuan@google.com> Rework ASH cal params save/load

Moved direct storage access facility into the SLPI firmware.

Bug: 38425697
Test: 1) Enable gyro and observe logging showing cache gets udpated.
2) Put device in and out of suspend and observe logging showing cached
data have been pushed to the persistent storage area.
3) Leave AP and gyro on. After 5 min, observe logging showing cached
data have been pushed to the persistent storage area.
4) Restart SLPI and observe saved cal params are pushed and taken.
5) Restart sensors.qcom and observed that saves cal params are pushed
and ignored.
6) Restart chre and verify there's no logging showing saves cal params
are pushed.
Change-Id: I4f5bdb88be90b987604c793efac6a35f3f23a342
/system/chre/ash/platform/slpi/ash.cc
28c02d291c982039153f579020deb7341d87dbda 03-Jun-2017 Meng-hsuan Chung <menghsuan@google.com> Eliminate registry access due to cal params save/load

Registry read is done only once in ashInit().
Registry write has temporarily been removed.
These changes eliminate AP wakeups due to sensor registry access.
Registry write will be added/implemented later in a way that doesn't
lead to AP wakeups.

Test: compile and load

Bug: 38425697
Change-Id: Ie3c6bc58c90d0131a2c395065191a5becf40da7d
/system/chre/ash/platform/slpi/ash.cc
6303ea8ab6aa4d231ed490fdb97a4c8ea6001f42 26-May-2017 Meng-hsuan Chung <menghsuan@google.com> Use group sensor registry read/write in ASH API

Also moved mag scaleFactor and crossAxis storage to the same registry group.

Test: run AshWorld nanoapp

Bug: 38425697
Change-Id: Icd92ca1e7bbb18f367a062acd2b5ee6dd1cd0a42
/system/chre/ash/platform/slpi/ash.cc
f9fe35bb3650557c5b754be8f882052d1836e804 21-Apr-2017 Meng-hsuan Chung <menghsuan@google.com> Unify ASH storage format

Unify format to Q16 in NED, and mag in Gauss even though not all fields
interact with factory cal data.

Test: load and save using ASH and verify data is correct.

Change-Id: Iebe7b31453f23ce5398f74bac1c389eb55431449
/system/chre/ash/platform/slpi/ash.cc
886eca1f333e68845245ac5ad942a795e1eada11 10-Apr-2017 Meng-hsuan Chung <menghsuan@google.com> Update calibration params storage format in ASH API

This provides compatibility with factory calibration.

Change-Id: Ib60072b3260a058a43e7f74cade9d6faa10a6590
/system/chre/ash/platform/slpi/ash.cc
6102275f42fd3ece47d6d9ca8c244e3f60006b53 06-Apr-2017 Meng-hsuan Chung <menghsuan@google.com> Implements the ashSaveCalibrationParams and ashLoadCalibrationParams ASH API

Test: use TimerWorld to write to it and read it back.

Change-Id: I6de9ed1fbaf9497225d827a3276650bc3801dc8e
/system/chre/ash/platform/slpi/ash.cc
569958550a629c55cba3d38cb309af2ad278e336 05-Apr-2017 Meng-hsuan Chung <menghsuan@google.com> Adds the ashInit and ashDeinit APIs

This API initializes the registry service and is needed to implement
ashSaveCalibrationParams and ashLoadCalibrationParams.

Change-Id: Id009cc3c28b307d432a6d96d6d9b80b33f06949e
/system/chre/ash/platform/slpi/ash.cc
c6ef3f619155a7f6e2f0ff5fbc77a11526d9970f 22-Mar-2017 Meng-hsuan Chung <menghsuan@google.com> Implements the ashSetCalibration ASH API

Test: use TimerWorld to inject a different bias/matrix every 5 seconds.
Observe the changes in QSensorTest and verify the sign and axis changes
are as expected.

Change-Id: I55cdfe90b9ca392df414a52b2574777a2221b3c5
/system/chre/ash/platform/slpi/ash.cc