Android-x86
Fork
Spenden

  • R/O
  • HTTP
  • SSH
  • HTTPS

hardware-intel-libsensors: Liste der Commits

hardware/intel/libsensors


RSS
Rev. Zeit Autor
467a854 2014-11-07 22:57:44 Adriana Reus

Change enable_count with flag

Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-3725
Change-Id: I50eae55b9128ce4e3c647dbed633fea933b522dd
Signed-off-by: Adriana Reus <adriana.reus@intel.com>

0914678 2014-11-06 13:19:21 Chih-Wei Huang

libsensors: fix building issues on Android 5.0

More fields are added to struct sensor_t.

Convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH
to support 64-bit targets.

40a6350 2014-11-04 01:50:14 Adriana Reus

Magneto calibration tweaks

Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-3514
Change-Id: I7c1f61310218551ce84fd0a497f57b850490d4a9
Signed-off-by: Adriana Reus <adriana.reus@intel.com>

8e4a72f 2014-11-04 01:00:14 Patrick Porlan

GMINL-3234: Clamp very low gyro reading to zero

This avoids accumulating error over long periods of time.
Incidently, be more cautious with the gyro status field,
as it's not valid for the uncal gyro.

Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-3234
Change-Id: Ic4fa964bb31c3e223eabf23382be27f51e3df529
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>

c85b48e 2014-10-31 19:37:29 Adriana Reus

Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/sensors/master' into gmin/l-dev/master

git log --pretty=format:"%h %ad | %s%d [%an]" m/abt/topic/gmin/l-dev/master..origin/abt/topic/gmin/l-dev/sensors/master:
f883d43 Mon Oct 27 14:36:06 2014 +0200 | Provision the preferred scale (origin/abt/topic/gmin/l-dev/sensors/master) [Viorel Suman]
9b29687 Thu Oct 30 12:56:39 2014 +0200 | Handle max_freq parameter [Adriana Reus]
64c5e96 Tue Oct 28 12:48:34 2014 +0200 | Reset gyro filtering for each enabling. [Adriana Reus]
537fd28 Mon Oct 27 19:04:40 2014 +0200 | Fix initialization points for event_count and meta_data_pending [Adriana Reus]
94c3ac8 Tue Oct 28 12:22:01 2014 +0200 | Fix bug in gyro filtering call. [Adriana Reus]

git diff --stat m/abt/topic/gmin/l-dev/master..HEAD:
common.h | 1 -
control.c | 2 ++
description.c | 11 ++++++++++-
enumeration.c | 24 ++++++++++++++++++++----
filtering.c | 14 ++++++++++++++
filtering.h | 4 ++--
6 files changed, 48 insertions(+), 8 deletions(-)

Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-3440
Change-Id: I944e1a752ca2a93f6ce3728246aaf317729bac02
Signed-off-by: Adriana Reus <adriana.reus@intel.com>

f883d43 2014-10-30 22:56:01 Viorel Suman

Provision the preferred scale

The patch enables the provisioning of the preferred
scale for a specific sensor.

Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-3156
Change-Id: I6884ea03a98621e61c39ce956e9b19624e8682f0
Signed-off-by: Viorel Suman <viorel.suman@intel.com>
Reviewed-on: https://android.intel.com:443/293561

9b29687 2014-10-30 22:56:01 Adriana Reus

Handle max_freq parameter

Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-1535
Change-Id: I5aea4c040e2da587aff7bed5b08df26ea0950bda
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Reviewed-on: https://android.intel.com:443/294928

64c5e96 2014-10-29 18:54:12 Adriana Reus

Reset gyro filtering for each enabling.

Issue: GMINL-2659
Change-Id: I1d7703cb384c8ffb40539955a91fd1d3c17a074e
Signed-off-by: Adriana Reus <adriana.reus@intel.com>

537fd28 2014-10-29 18:06:37 Adriana Reus

Fix initialization points for event_count and meta_data_pending

Issue: GMINL-2659
Change-Id: Iec77dacc2eec496ebe5f63950840de3c3ce46aca
Signed-off-by: Adriana Reus <adriana.reus@intel.com>

94c3ac8 2014-10-29 18:04:14 Adriana Reus

Fix bug in gyro filtering call.

Issue: GMINL-2659
Change-Id: I49b96138fa2de50ef1f324205b354769e66a18e6
Signed-off-by: Adriana Reus <adriana.reus@intel.com>

f7672c1 2014-10-28 00:22:42 Adriana Reus

Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/sensors/master' into gmin/l-dev/master

git log --pretty=format:"%h %ad | %s%d [%an]" m/abt/topic/gmin/l-dev/master..origin/abt/topic/gmin/l-dev/sensors/master:
f4cb7dc Fri Oct 24 15:17:45 2014 +0200 | GMINL-2659: Keep recent events history for fusion-like processing (origin/abt/topic/gmin/l-dev/sensors/master) [Patrick Porlan]
7c24cdc Mon Oct 27 13:11:25 2014 +0200 | Scale magnetic events within a sanity limit [Adriana Reus]
ff21ce0 Thu Oct 23 16:27:42 2014 +0300 | Keep gyro cal between reboots [Adriana Reus]
910e5cc Wed Oct 22 15:13:51 2014 +0300 | Collect a minimum number of events for filtering for noisy sensors [Adriana Reus]
fc476f1 Fri Oct 17 15:34:20 2014 +0200 | IRDA-2056: Add type field to sensor_info structure [Patrick Porlan]

git diff --stat m/abt/topic/gmin/l-dev/master..HEAD:
calibration.h | 2 ++
common.h | 22 ++++++++++++++++++++-
compass-calibration.c | 45 +++++++++++++++++++++++++------------------
control.c | 48 +++++++++++++++++++++-------------------------
description.c | 32 ++++++-------------------------
enumeration.c | 12 ++++++------
filtering.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++
filtering.h | 2 ++
gyro-calibration.c | 41 +++++++++++++++++++++++++++++++++++++--
transform.c | 38 ++++++++++++++++++++++--------------
10 files changed, 201 insertions(+), 94 deletions(-)

Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-3169
Change-Id: I6e0ec40cfd34c7cf3eef2428ee6b33de7f7173c4
Signed-off-by: Adriana Reus <adriana.reus@intel.com>

88438ad 2014-10-28 00:06:50 Adriana Reus

Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/sensors/master' into gmin/l-dev/master

git log --pretty=format:"%h %ad | %s%d [%an]" m/abt/topic/gmin/l-dev/master..origin/abt/topic/gmin/l-dev/sensors/master:
f4cb7dc Fri Oct 24 15:17:45 2014 +0200 | GMINL-2659: Keep recent events history for fusion-like processing (origin/abt/topic/gmin/l-dev/sensors/master) [Patrick Porlan]
7c24cdc Mon Oct 27 13:11:25 2014 +0200 | Scale magnetic events within a sanity limit [Adriana Reus]
ff21ce0 Thu Oct 23 16:27:42 2014 +0300 | Keep gyro cal between reboots [Adriana Reus]
910e5cc Wed Oct 22 15:13:51 2014 +0300 | Collect a minimum number of events for filtering for noisy sensors [Adriana Reus]
fc476f1 Fri Oct 17 15:34:20 2014 +0200 | IRDA-2056: Add type field to sensor_info structure [Patrick Porlan]

git diff --stat m/abt/topic/gmin/l-dev/master..HEAD:
calibration.h | 2 ++
common.h | 22 ++++++++++++++++++++-
compass-calibration.c | 45 +++++++++++++++++++++++++------------------
control.c | 48 +++++++++++++++++++++-------------------------
description.c | 32 ++++++-------------------------
enumeration.c | 12 ++++++------
filtering.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++
filtering.h | 2 ++
gyro-calibration.c | 41 +++++++++++++++++++++++++++++++++++++--
transform.c | 38 ++++++++++++++++++++++--------------
10 files changed, 201 insertions(+), 94 deletions(-)

Change-Id: I6e0ec40cfd34c7cf3eef2428ee6b33de7f7173c4

f4cb7dc 2014-10-27 22:39:51 Patrick Porlan

GMINL-2659: Keep recent events history for fusion-like processing

We may wish to correlate recent input from several active sensors.
In preparation to that, keep the last 100 events we got for the
entire sensors collection. This is intended as a lightweight record,
built and used from the main sensor sample retrieval thread exclusively
so we don't have to deal with performance-degrading synchronization
primitives. This data will enable multi-sensors filtering decisions.

Change-Id: Ied6559c7dd91e94bebbeb1bc60182d1db3103d8c
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>

7c24cdc 2014-10-27 21:23:12 Adriana Reus

Scale magnetic events within a sanity limit

Scale magnetic events even if we don't have a calibration.
If the values are considered "wrong" by Android it does not compute
values for the virtual sensors until we have a calibration and
sane looking values in place

Change-Id: I94347d98f541c85d9734ce347a070abca351de2c
Signed-off-by: Adriana Reus <adriana.reus@intel.com>

ff21ce0 2014-10-27 17:51:28 Adriana Reus

Keep gyro cal between reboots

Issue: GMINL-2743
Change-Id: I232e979d62d12f31168c0bfdcfcd3b224d5237b3
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Reviewed-on: https://android.intel.com:443/292457

910e5cc 2014-10-27 17:51:27 Adriana Reus

Collect a minimum number of events for filtering for noisy sensors

This is to make sure we have at least a couple of events for
the filtering queue and to make sure we are not sensing events
that can affect the overall mean or standard deviation.

Change-Id: If359915e7281a553758eb79ec10ea0559f9490f8
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Reviewed-on: https://android.intel.com:443/291953

fc476f1 2014-10-27 17:51:27 Patrick Porlan

IRDA-2056: Add type field to sensor_info structure

We were getting this information through the associated catalog
entry but it's considerably more readable this way.

Change-Id: I7b4489738e755a2831930c0a1a335a2fb9e731cc
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>

d9b391e 2014-10-24 00:15:17 Adriana Reus

Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/sensors/master' into gmin/l-dev/master

git log --pretty=format:"%h %ad | %s%d [%an]" m/abt/topic/gmin/l-dev/master..origin/abt/topic/gmin/l-dev/sensors/master:
5b9cb96 Thu Oct 16 10:33:57 2014 +0200 | IRDA-2056: Header file cleanup (origin/abt/topic/gmin/l-dev/sensors/master) [Patrick Porlan]
af41894 Wed Oct 15 14:30:40 2014 +0200 | IRDA-2056: Rename continuous quirk flag and fix the location where it's used [Patrick Porlan]
7755b1c Wed Oct 15 14:29:25 2014 +0200 | IRDA-2056: Cosmetic whitespace shuffling [Patrick Porlan]
138a7ad Wed Oct 15 14:27:10 2014 +0200 | IRDA-2056: Link the terse flag to the variable we're now using to decide whether or not to operate in "driver only sending events on motion" mode. [Patrick Porlan]
4b21c9f Wed Oct 15 14:22:02 2014 +0200 | IRDA-2056: Remove a superfluous check [Patrick Porlan]

git diff --stat m/abt/topic/gmin/l-dev/master..HEAD:
control.c | 4 ++--
description.c | 7 +++----
description.h | 35 +++++++++++++++--------------------
enumeration.c | 59 ++++++++++++++++++++++-------------------------------------
4 files changed, 42 insertions(+), 63 deletions(-)

Tracked-On:https://jira01.devtools.intel.com/browse/GMINL-2821
Change-Id: I36bcd5eee3af84edc2c311a72f032bb14a3546b7
Signed-off-by: Adriana Reus <adriana.reus@intel.com>

5b9cb96 2014-10-23 21:59:06 Patrick Porlan

IRDA-2056: Header file cleanup

Order and symetry reduce the reader's cognitive load...

Change-Id: Ifa47d3a109898a16565eac7315bc35711bda4b9c
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Reviewed-on: https://android.intel.com:443/289221

af41894 2014-10-23 21:59:06 Patrick Porlan

IRDA-2056: Rename continuous quirk flag and fix the location where it's used

This flag is used to force use of the continuous trigger, typically
in cases where the motion trigger would otherwise be autoselected.

Also, there are cases, such as with the Invensense driver that we
have on the T100, where a single trigger will control several
sensors because they're associated to the same iio device. In that
case having a single sensor forced to continous mode will imply that
no sensor co-located on the same iio device can be in "only send
events whenever there's motion" mode.

Change-Id: I4d01d2d964b70dead3e67c54bdd92d7d938cbf23
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Reviewed-on: https://android.intel.com:443/289220

7755b1c 2014-10-23 21:59:06 Patrick Porlan

IRDA-2056: Cosmetic whitespace shuffling

Change-Id: Ie6aecf3f7f595e4c8bd4ca9cd15b1562b81dfe92
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Reviewed-on: https://android.intel.com:443/289219

138a7ad 2014-10-23 21:59:06 Patrick Porlan

IRDA-2056: Link the terse flag to the variable we're now using to decide
whether or not to operate in "driver only sending events on
motion" mode.

Change-Id: I9600e4d8611715b2a55a523613af1dec368a8893
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Reviewed-on: https://android.intel.com:443/289218

4b21c9f 2014-10-23 21:59:06 Patrick Porlan

IRDA-2056: Remove a superfluous check

We don't really have to check whether or not a sensor type is
defined as continuous by Android when we encounter a motion
trigger for the associated sensor. Simply record the name, and
we'll decide later if, and when, it has to be selected.

Change-Id: Ibc77470db1d66cc67f5e799f0db454e3157f3945
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>
Reviewed-on: https://android.intel.com:443/289217

d1c0f7b 2014-10-22 01:10:49 Adriana Reus

Merge remote-tracking branch 'origin/abt/topic/gmin/l-dev/sensors/master' into gmin/l-dev/master

git log --pretty=format:"%h %ad | %s%d [%an]" m/abt/topic/gmin/l-dev/master..origin/abt/topic/gmin/l-dev/sensors/master:
8f3c496 Mon Oct 20 20:12:36 2014 +0300 | Synchronize our timestamps with the SystemClock.getRealtimeNanos (origin/abt/topic/gmin/l-dev/sensors/master) [Adriana Reus]
60c1864 Wed Oct 15 14:13:13 2014 +0200 | IRDA-2056: Minor rework to the trigger switching code [Patrick Porlan]
58f7faf Wed Oct 15 14:11:32 2014 +0200 | IRDA-2056: Minor cosmetic tweaks [Patrick Porlan]
dd4d8ca Wed Oct 15 14:03:24 2014 +0200 | IRDA-2056: Refine the test we use to decide to apply gyro calibration [Patrick Porlan]
db7e7fb Wed Oct 15 11:32:36 2014 +0200 | IRDA-2056: Fix accuracy indicator for gyroscope readings. [Patrick Porlan]
5caa616 Fri Oct 17 10:01:29 2014 +0300 | Include acceptable threshold on TS [Viorel Suman]

git diff --stat m/abt/topic/gmin/l-dev/master..HEAD:
common.h | 3 +++
control.c | 61 ++++++++++++++++++++++++++++++++++++++----------------
gyro-calibration.c | 2 --
transform.c | 19 +++++++++++++++--
utils.c | 42 ++++++++++++++++++++++++++++++++-----
utils.h | 7 ++++---
6 files changed, 104 insertions(+), 30 deletions(-)
~

Tracked-On:https://jira01.devtools.intel.com/browse/GMINL-2673
Change-Id: Ice355c5abc14344b224b5a933cb1a9519ec305a0
Signed-off-by: Adriana Reus <adriana.reus@intel.com>

8f3c496 2014-10-21 22:27:04 Adriana Reus

Synchronize our timestamps with the SystemClock.getRealtimeNanos

It seems we get unsynced after a suspend/resume cycle.
Sync the clocks once per sensor enabling.
CDD required us to be in sync anyway.

Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-1535
Change-Id: I2422551837832575492ee2d0c1a7adb1163b3167
Signed-off-by: Adriana Reus <adriana.reus@intel.com>

60c1864 2014-10-21 22:27:04 Patrick Porlan

IRDA-2056: Minor rework to the trigger switching code

Isolate the test that we use to switch from the motion trigger to
the continous one (for accelerometer based games that are sensitive
to small motion thresholds) into a function. Also, specifically
deactivate this behaviour for drivers marked as terse: for those it
may make sense to initialize the motion trigger name field with the
same string as the initial trigger name field, so let's check for
the terse flag.

Change-Id: Ia666caed8f04345aca7c09d6a686107590ffc590
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>

58f7faf 2014-10-21 22:27:04 Patrick Porlan

IRDA-2056: Minor cosmetic tweaks

Change-Id: I6032b66272dd6056b192ba52a6d2f573eca4d779
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>

dd4d8ca 2014-10-21 22:27:04 Patrick Porlan

IRDA-2056: Refine the test we use to decide to apply gyro calibration

The terse flag should only be used with drivers that a) don't
expose a recognizable motion trigger (we currently look for the
any-motion substring), b) are not for sensor types that Android
defines as continuous, and c) are nonetheless on-change. As of
today the only remaining example of this that I can think of
are the XPS 12 ISH drivers, so I prefer not to use this flag
to decide whether or not to apply calibration. Checking whether
we're using the initial or motion trigger seems better, if not
fully satisfactory.

Change-Id: I24c6632497f758e1301da7927ec94bf17f6fe84d
Signed-off-by: Patrick Porlan <patrick.porlan@intel.com>

db7e7fb 2014-10-21 22:27:04 Patrick Porlan

IRDA-2056: Fix accuracy indicator for gyroscope readings.

Report medium accuracy rather than the default (unreliable) one
if we're not using calibration.

Change-Id: I648075681eed0a82bc081babe8a0825096bbe4a4

5caa616 2014-10-21 22:27:03 Viorel Suman

Include acceptable threshold on TS

The patch takes in consideration the acceptable threshold when adjusting
the event timestamp. The accelerometer threshold is enforced to "1" in
order to make happy virtual sensors test cases - virtual sensors events
are clones of accel events (so are the timestamps), see "process" method
in GravitySensor.cpp, OrientationSensor.cpp, RotationVectorSensor.cpp
from frameworks/native/services/sensorservice.

Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-264
Change-Id: Ie9e05949154ed2f4e3bac4f1d405bb41c6a7ddcb
Signed-off-by: Viorel Suman <viorel.suman@intel.com>

Show on old repository browser