Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

hardware-intel-libsensors: Listed des commits

hardware/intel/libsensors


RSS
Révision l'heure Auteur
8c1267b 2014-12-18 17:36:20 Patrick Porlan

Rename setup_delay_sysfs to sensor_set_rate

Because a) it's a sampling rate, and b) it's not necessarily sysfs.

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

d9ac41e 2014-12-18 17:35:57 Patrick Porlan

Rework a little bit the end cases in check_state_change

The new version is equivalent but a little bit clearer.

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

9072170 2014-12-18 17:35:48 Patrick Porlan

Better coordinate frequencies of co-located iio sensors

This is in the case where several sensors share a single frequency
knob (that was the case on the Invensense MPU chip used by the T100)
rather than have differenciated rate settings.

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

6c1dfd5 2014-12-18 17:35:37 Patrick Porlan

Only signal an acquisition thread if the target sensor is enabled

Otherwise the variable is invalid.

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

cce276f 2014-12-18 17:35:29 Patrick Porlan

Allow for a slight difference when parsing available frequencies

I'm seeing missed matches due to rounding errors (accelerometer
set at 31.26 Hz because 15.62 is lower than the minimum 15.6201).

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

a4acc70 2014-12-18 17:35:15 Patrick Porlan

Winter cleanup: rephrase traces and comments, rename vars, fix whitespaces

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

a0caca2 2014-12-18 17:34:29 Patrick Porlan

Rename MAX_REAL_DEP to MAX_BASE_SENSORS and base_idx to base

All your base are belong to us.

Besides, it's simpler.

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

67ff046 2014-12-16 23:35:54 Patrick Porlan

Winter cleanup: tidy up enumeration.c

Minor cosmetic code changes and factorization.

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

0f08a52 2014-12-16 23:18:13 Patrick Porlan

Winter cleanup: Harmonize spacing before functions

Avoid inconsistency whenever possible.

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

0bb03ae 2014-12-16 23:17:45 Patrick Porlan

Winter cleanup: suffix our own types with _t

I slightly rearranged areas using these types, too.

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

3848e24 2014-12-16 20:30:05 Patrick Porlan

Winter cleanup: comment harmonization, space shuffling, etc.

Let's be consistent throughtout the code, unless there's a reason
to do thing differently.

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

5d0800d 2014-12-16 20:25:11 Patrick Porlan

Winter cleanup: move iio type field decoding out of utils.c

It's a very specialized function, which only makes sense in
the file where it's used. Let's not mix it with general
toolbox pieces.

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

11ed1a2 2014-12-15 19:01:47 Patrick Porlan

Winter cleanup: remove superfluous volatile specifier

It's not needed (at least on x86), so let's remove it.

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

2d5e6c1 2014-12-15 19:01:36 Patrick Porlan

Winter cleanup: sensor_info[] -> sensor[]

It makes code more legible, and is simply more logical.
Besides, it appears 374 times.

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

8aa6c4c 2014-12-13 01:23:43 Adriana Reus

Better support for virtual sensors

Re-work for the gyro uncalibrated implementation. Instead from reading from the device directly it is now built on top of the 'real' sensor.
The re-work is more general and can be used to construct virtual sensors on top of real ones more easily.

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

f71271c 2014-12-03 23:40:18 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:
819f41c Fri Nov 28 15:44:07 2014 +0200 | Additional calibration validation (origin/abt/topic/gmin/l-dev/sensors/master) [Adriana Reus]
9616608 Wed Nov 26 12:45:28 2014 +0200 | Remove accel special case for managing timestamps [Adriana Reus]
c6f0e4e Mon Nov 24 15:47:27 2014 +0200 | sens: fix server crash after stopping the poll client [Octavian Purdila]
48e21a6 Mon Nov 24 13:33:53 2014 +0200 | sens: simplify the server dispatch routine [Octavian Purdila]
9069fc7 Thu Nov 20 14:26:29 2014 +0200 | Fix Linux build [Octavian Purdila]
615308b Thu Nov 20 15:22:43 2014 +0200 | sens: mark parameter as unused [Octavian Purdila]
6fcd893 Thu Nov 20 15:21:22 2014 +0200 | sens: remove unused parameter in dispatch_cmd [Octavian Purdila]
558ac66 Thu Nov 20 15:15:24 2014 +0200 | sens: trim command buffer [Octavian Purdila]
b27f9ea Thu Nov 20 15:12:41 2014 +0200 | sens: use strncat and strncpy when composing the command buffer [Octavian Purdila]

git diff --stat m/abt/topic/gmin/l-dev/master..HEAD:
calibration.h | 1 +
compass-calibration.c | 33 +++++++++++++++-
control.c | 5 +--
linux/linux/android_alarm.h | 7 ++++
linux/utils/Atomic.h | 17 +++++++++
sens.c | 93 +++++++++++++++++++++++++++------------------
6 files changed, 115 insertions(+), 41 deletions(-)

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

819f41c 2014-12-03 22:56:06 Adriana Reus

Additional calibration validation

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

9616608 2014-12-03 22:56:06 Adriana Reus

Remove accel special case for managing timestamps

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

c6f0e4e 2014-12-03 22:56:06 Octavian Purdila

sens: fix server crash after stopping the poll client

If the poll client is stopped (killed) the server will crash due to
SIGPIPE. Fix this by intercepting SIGPIPE and clearing the client file
to avoid further prints to it.

Change-Id: I588b9c098634e2eb5cec9dd003e4f9a3be188c3f
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>

48e21a6 2014-12-03 22:56:06 Octavian Purdila

sens: simplify the server dispatch routine

Simplify the server dispatch routine so that it supports only one
command per connection. This also fixes the issue of not being able to
issue commands after poll.

Change-Id: I02932ca7c3aad0c6f46f80f547e8e515c085e763
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>

9069fc7 2014-12-03 22:56:05 Octavian Purdila

Fix Linux build

Add Atomic.h and android_alarm.h stubs.

Change-Id: I5e044de52ab7ab5f8b68e3361f327adb61b5f3a0
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>

615308b 2014-12-03 22:56:05 Octavian Purdila

sens: mark parameter as unused

Mark parameter of run_sensors_thread as unused, to silence compile
warnings.

Change-Id: I3b19445381c52f5e5bfef09ef3249f31e6a3f22d
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>

6fcd893 2014-12-03 22:56:05 Octavian Purdila

sens: remove unused parameter in dispatch_cmd

We already assume that cmd is NULL terminated, so lets remove the unused
cmd_len. Add check to verify that the received command is NULL
terminated.

Change-Id: I1da3cdf8005b778d7e3e37fe7b2e3ca4b9322801
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>

558ac66 2014-12-03 22:56:05 Octavian Purdila

sens: trim command buffer

Right now we always send 1024 bytes for every command. We can trim the
buffer size to its length + 1 for the NULL terminator.

Change-Id: Ie707a607dd9e267e1dcbc47d97c42ab4816eab2c
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>

b27f9ea 2014-12-03 22:56:05 Octavian Purdila

sens: use strncat and strncpy when composing the command buffer

Avoid buffer overflows when composing the command buffer by using
strncat and strncpy.

Change-Id: Ic0ad357168c230496e9358c877b7a01345cc53f3
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>

0bec00e 2014-11-26 18:11:30 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:
9c98e64 Tue Nov 25 15:13:41 2014 +0100 | Don't use the timestamp channel in any-motion mode (origin/abt/topic/gmin/l-dev/sensors/master) [Patrick Porlan]
3dd743f Tue Nov 25 09:50:10 2014 +0100 | Small timestamps fixes [Patrick Porlan]
9cf6760 Mon Nov 24 15:17:49 2014 +0100 | Reinstate monotonic timestamp in data acquisition threads [Patrick Porlan]
08e484e Mon Nov 24 14:40:16 2014 +0100 | Make sure the deadlines we set are interpreted in CLOCK_BOOTTIME [Patrick Porlan]
00f369d Mon Nov 24 13:59:14 2014 +0100 | Recompute the boot to realtime delta at iio ts channel read time [Patrick Porlan]
2fffc09 Mon Nov 24 11:52:50 2014 +0100 | Standardize timestamps on CLOCK_BOOTTIME [Patrick Porlan]
281581c Fri Nov 21 17:58:37 2014 +0100 | Additional fixes to time stamps code [Patrick Porlan]
416a770 Fri Nov 21 16:23:50 2014 +0100 | Correct timestamps read from the timestamp iio channel [Patrick Porlan]
bbcca49 Fri Nov 21 11:53:15 2014 +0100 | Be more careful with the amount of data we read from the iio dev fd [Patrick Porlan]
802446d Fri Nov 21 10:05:17 2014 +0100 | Moping the floor: hamonize comments delimiters [Patrick Porlan]
8f338ec Fri Nov 21 10:01:21 2014 +0100 | Moping the floor: remove superfluous f type specifiers [Patrick Porlan]
2effc32 Fri Nov 21 09:47:35 2014 +0100 | Shift gyro drop count from common.h to filtering.h [Patrick Porlan]
aa74040 Mon Nov 17 17:43:53 2014 +0100 | Use the driver provided timestamp channel if possible [Patrick Porlan]
77dea6d Tue Nov 18 16:46:22 2014 +0200 | Magnetometer ts improvements [Adriana Reus]
48779ad Thu Nov 20 17:51:17 2014 +0200 | Populate quirks at enumeration [Adriana Reus]

git diff --stat m/abt/topic/gmin/l-dev/master..HEAD:
common.h | 6 +-
compass-calibration.c | 8 ++-
control.c | 160 +++++++++++++++++++++++++++++++++++++++++++-------
enumeration.c | 3 +
filtering.h | 2 +
gyro-calibration.c | 2 +-
transform.c | 40 ++++++-------
utils.c | 43 +++++---------
utils.h | 8 +--
9 files changed, 188 insertions(+), 84 deletions(-)

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

9c98e64 2014-11-25 23:13:41 Patrick Porlan

Don't use the timestamp channel in any-motion mode

That seems to create out of order timestamps issues in the
CTS Verifier Single Sensor Tests, and as it's a degraded, low
accuracy mode anyway, we are probably perfectly fine with the
usermode, HAL-level, timestamp.

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

3dd743f 2014-11-25 17:50:10 Patrick Porlan

Small timestamps fixes

Swap the two clock_gettime calls we use to compute the offset
between realtime and boottime clock so there is no risk that
the timestamp appears in the future (e.g. if the calling thread
gets scheduled out between the calls).

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

9cf6760 2014-11-24 23:17:49 Patrick Porlan

Reinstate monotonic timestamp in data acquisition threads

Only for the target time used by pthread routines though, as they
unfortunately don't seem to support the boot time clock.

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

08e484e 2014-11-24 22:40:16 Patrick Porlan

Make sure the deadlines we set are interpreted in CLOCK_BOOTTIME

By default pthread_cond_timedwait uses the monotonic time source.

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

Afficher sur ancien navigateur de dépôt.