Android-x86
Fork
Spenden

  • R/O
  • HTTP
  • SSH
  • HTTPS

hardware-intel-libsensors: Liste der Commits

hardware/intel/libsensors


RSS
Rev. Zeit Autor
463d5aa kitkat-x86 2014-12-28 21:10:46 Chih-Wei Huang

libsensors: make the implementation be compatible with new IIO ABI

Also improve debug messages.

8ee2842 2014-04-28 23:59:07 Chih-Wei Huang

libsensors: Add Android.mk of Android-x86

9a84f85 2014-02-27 20:45:37 Archana Patni

libsensors: Fix accel and gyro min delay

An earlier commit "https://aia-review.intel.com/#/c/4829/"
set the min delay to 100000 which limited the polling
frequency for gyro and accel (from 100+Hz to ~10Hz).
Setting it to 10000 fixes the issues and handles the
original problem as well (too many events).

Issue: APDEV-1510
Issue: APDEV-1513

Change-Id: I66bb2749cec368bdd203dd92e0760ed6fce2dbc5
Signed-off-by: Archana Patni<archana.patni@intel.com>
Reviewed-on: https://android.intel.com/165258
Reviewed-by: Sesha, Subramony <subramony.sesha@intel.com>
Reviewed-by: Lilja, Ola <ola.lilja@intel.com>

a7019b7 2014-02-26 20:48:19 Archana Patni

libsensors: sensor configuration files for bdw_rvp

This patch adds support for bdw_rvp sensors.

Change-Id: I9f64db98f04f098e9681324f326578ed28335718
Signed-off-by: Archana Patni <archana.patni@intel.com>
Reviewed-on: https://android.intel.com/166542
Reviewed-by: Sesha, Subramony <subramony.sesha@intel.com>
Tested-by: Sesha, Subramony <subramony.sesha@intel.com>
Reviewed-by: Lilja, Ola <ola.lilja@intel.com>

c7308c1 2014-02-26 20:47:27 Archana Patni

libsensors: Modified target to bdw_wsb in Android.mk

This patch changes target devices to use bdw_wsb. As we will have two different
targets - bdw_wsb and bdw_rvp

Change-Id: I932e641c2ae04f6c9208dff6cb3928442b676848
Signed-off-by: Archana Patni <archana.patni@intel.com>
Reviewed-on: https://android.intel.com/166541
Reviewed-by: Sesha, Subramony <subramony.sesha@intel.com>
Tested-by: Sesha, Subramony <subramony.sesha@intel.com>
Reviewed-by: Lilja, Ola <ola.lilja@intel.com>

42030bb 2014-02-26 20:46:39 Archana Patni

libsensors: Added Pressure Sensor configuration for BDW-WSB

This patch adds the configuration changes for Pressure Sensor for BDW-WSB.
This patch depends on Change-Id: I7242be355885a0860de0fb496de800bc7b212ca3
which has pressure sensor HAL changes.

Change-Id: I9ab7c54ad8dc7a3071b7e3f76835c7497707115b
Signed-off-by: Archana Patni <archana.patni@intel.com>
Reviewed-on: https://android.intel.com/162380
Reviewed-by: Sesha, Subramony <subramony.sesha@intel.com>
Tested-by: Sesha, Subramony <subramony.sesha@intel.com>
Reviewed-by: Lilja, Ola <ola.lilja@intel.com>

7613f34 2014-02-26 20:46:05 Archana Patni

libsensors: Added Proximity sensor configuration changes for BDW-WSB

This patch adds configuration changes for Proximity Sensor for BDW-WSB.

Change-Id: I3cc84d66c2a2adebcc6bd16e371937ca51202c9c
Signed-off-by: Archana Patni <archana.patni@intel.com>
Reviewed-on: https://android.intel.com/162379
Reviewed-by: Sesha, Subramony <subramony.sesha@intel.com>
Tested-by: Sesha, Subramony <subramony.sesha@intel.com>
Reviewed-by: Lilja, Ola <ola.lilja@intel.com>

d43871d 2014-02-26 20:45:40 Archana Patni

Sensors: Initial checkin for BDW_WSB sensor configuration files

This patch adds preliminary support for WSB sensors based on the
configuration files in HSB source files.

Change-Id: I1172d33adcbe1074363980d4ed317823561d3a10
Signed-off-by: Archana Patni <archana.patni@intel.com>
Reviewed-on: https://android.intel.com/162378
Reviewed-by: Sesha, Subramony <subramony.sesha@intel.com>
Tested-by: Sesha, Subramony <subramony.sesha@intel.com>
Reviewed-by: Lilja, Ola <ola.lilja@intel.com>

949ec57 2014-02-20 21:04:36 Archana

libsensors: Added support for Proximity sensor

This patch adds the HAL specific changes for Proximity Sensor.
This uses IIO model to communicate to kernel driver.

Change-Id: I1f34f1530b3182dc78d22bf486aa3600b0c7ec23
Signed-off-by: Archana Patni <archana.patni@intel.com>
Reviewed-on: https://android.intel.com/162360
Tested-by: sys_abtbuild <sys_abtbuild@intel.com>
Reviewed-by: Persson, Per <per.persson@intel.com>
Reviewed-by: Sesha, Subramony <subramony.sesha@intel.com>
Reviewed-by: Lilja, Ola <ola.lilja@intel.com>

6131c01 2014-02-20 21:04:20 Archana

libsensors: Added Pressure sensor configuration for BYT-M.

This patch adds the Pressure sensor configuration changes
for BYT-M.

Signed-off-by: Archana Patni <archana.patni@intel.com>

Change-Id: I5166274a4bdeb8fe06d50e319526e13c1f1816e8
Reviewed-on: https://android.intel.com/162308
Tested-by: sys_abtbuild <sys_abtbuild@intel.com>
Reviewed-by: Lilja, Ola <ola.lilja@intel.com>

3e32dc0 2014-02-20 21:04:08 Archana

libsensors: Added support for Pressure sensor

This patch adds the HAL specific changes for Pressure Sensor.
This uses IIO model to communicate to kernel driver.
This exposes pressure data in hPa format.

Change-Id: I7242be355885a0860de0fb496de800bc7b212ca3
Signed-off-by: Archana Patni <archana.patni@intel.com>
Reviewed-on: https://android.intel.com/162268
Reviewed-by: Persson, Per <per.persson@intel.com>
Reviewed-by: Sesha, Subramony <subramony.sesha@intel.com>
Tested-by: sys_abtbuild <sys_abtbuild@intel.com>
Reviewed-by: Lilja, Ola <ola.lilja@intel.com>

19e3f12 2014-02-07 21:06:17 Archana

Sensors: Setting sensor's sensitivity value to default retrieved from fw

Currently, the sensitivity value for sensors are set to DEF_HYST_VALUE
which is set to zero. This causes a continous stream of events even
when the device is still. This patch changes the behavior by initially
reading the default value of the sensor's sensitivity from firmware and
setting it back. If we are unable to read it, then we will set it to 0.

Issue: APDEV-1304
Issue: APDEV-1000

Change-Id: I1b5b9d5e9d059b65f5a91f6867ec29e24f56d4cb
Signed-off-by: Archana Patni <archana.patni@intel.com>
Reviewed-on: https://android.intel.com/160777
Reviewed-by: Sesha, Subramony <subramony.sesha@intel.com>
Tested-by: Sesha, Subramony <subramony.sesha@intel.com>
Tested-by: sys_abtbuild <sys_abtbuild@intel.com>
Reviewed-by: Persson, Per <per.persson@intel.com>
Tested-by: Persson, Per <per.persson@intel.com>
Reviewed-by: Lilja, Ola <ola.lilja@intel.com>

9de43e6 2014-01-21 19:19:04 Per Persson

libsensors: Improve accel and gyro

Add mindelay for accelerator and gyro.
Treat undefined gyro unit value as degrees per second.
Synchronize accelerometer and gyro coordinates system.

Issue: APDEV-999
Issue: APDEV-1000

Change-Id: I48baf70c783b55bc79e19322f02c1cd79a62101a
Signed-off-by: Per Persson <per.persson@intel.com>

d71abec 2013-12-17 01:59:13 Per Persson

REVERTME: libsensors: Add support for BYT-M

The following files are added for libsensor support on BYT-M:
bytm/Android.mk
bytm/BoardConfig.cpp
bytm/SensorConfig.h

Tracked-By: APDEV-759
Issue: APDEV-278

Change-Id: Ia635116ff10b4e493420a0b74e4e53a367c27c86
Signed-off-by: Per Persson <per.persson@intel.com>

70a89fe 2013-12-04 23:13:12 Mattias Pettersson

libsensors: Import OTC sensor HAL for HSB and adapt to Android KK

Import libsensors from OTC/PCCG. This is the HID over I2C solution for
sensor hub. Adapt to updated definitions of Android Kitkat sensor HAL
(but don't implement new Kitkat features). Rearrange files, create
hsb-specific folder.

Issue: APDEV-49

Signed-off-by: Mattias Pettersson <mattias.pettersson@intel.com>

98955cc 2013-12-04 23:13:12 Andy Ross

libsensors: Add orientation sensor

The sensor hub emits an euler-representation orientation which
correspond's closely to Google's SENSOR_ORIENTATION sensor type. Use
this in lieu of the SensorFusion auto-generated one. The API is
deprecated, but old apps might still use it and we want to provide
optimal data.

Issue: AXIA-4758
Change-Id: I7e0c2486ec8e49f1a6e42658295b7f265541022e
Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
Reviewed-on: https://otc-android.intel.com/gerrit/22522
Reviewed-by: Daniel Leung <daniel.leung@intel.com>
Tested-by: jenkins autobuilder
Works-for-me: jenkins autobuilder
Reviewed-by: Brian E Woodruff <brian.e.woodruff@intel.com>
Reviewed-by: Sridhar Uyyala <sridhar.uyyala@intel.com>
Reviewed-by: Robert Chiras <robert.chiras@intel.com>

8464eb7 2013-12-04 23:13:12 Andy Ross

libsensors: Integrate the quaternion sensor and use for compass

The sensor hub has a built-in integrated sensor integration scheme
which emits a unified quaternion orientation. Use this in lieu of
Google's SensorFusion software implementation.

Also: the sensor hub magnetometer emits uncalibrated data because of
requirements on other platforms, but Android demands calibrated
numbers. Instead of doing magnetometer calibration in the HAL, use
the orientation output to derive a faked "magenetometer" which always
points to magnetic north along the ground plane. Call this a "leveled
compass". This behavior is apparently kosher: future (JB 4.3+) API
versions separate the existing "calibrated" compass output from a new
"raw" one which matches the sensor hub behavior.

Finally, the leveled compass implementation requires a little rework
to the SensorIIODev class to allow for reference counting of the
stream (so that it can be active when the sensor itself is disabled).

Issue: AXIA-3283
Change-Id: I16e90fa1119f908e979ca1fa010b2dea7f136deb
Depends-Change-Id: Id4feb36f32d0033f744752e238717bcd163aebb5
Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
Reviewed-on: https://otc-android.intel.com/gerrit/22344
Tested-by: jenkins autobuilder
Reviewed-by: Brian E Woodruff <brian.e.woodruff@intel.com>
Works-for-me: jenkins autobuilder
Reviewed-by: Daniel Leung <daniel.leung@intel.com>
Reviewed-by: Robert Chiras <robert.chiras@intel.com>

8aa41d6 2013-12-04 23:13:12 Andy Ross

libsensors: Allow IIO max sample rate to be configured via properties

Different hubs have different behavior. Really we want to probe this
out of the hardware, but for HID sensors on I2C (as opposed to USB)
userspace doesn't get access to the descriptor right now.

Change-Id: I8bcd077509b43bba6025ca5f55ba9373db89cd8b
For: AXIA-3287
Signed-off-by: Andy Ross <andy.ross@windriver.com>
Reviewed-on: https://otc-android.intel.com/gerrit/22151
Tested-by: jenkins autobuilder
Reviewed-by: Russell Webb <russell.webb@intel.com>

17fd865 2013-12-04 23:13:12 Andy Ross

libsensors: correct read() usage

The readEvents() implementation would attempt to read buffer_len (two
by default) IIO events from the device, but would only ever process
one, leading to dropped events in the case of overflow. It was also
not checking the return value from read and would push garbage data on
I/O errors (probably would not happen in regular usage, but IIO
devices are known to return -EBUSY or -EINVAL if there are other users
or if the sysfs parameters are set incorrectly).

Change-Id: I7f66f530c9fce0540f1596456b3ca191406bbd27
For: AXIA-3287
Signed-off-by: Andy Ross <andy.ross@windriver.com>
Reviewed-on: https://otc-android.intel.com/gerrit/22150
Reviewed-by: Daniel Leung <daniel.leung@intel.com>
Reviewed-by: Russell Webb <russell.webb@intel.com>
Tested-by: jenkins autobuilder

9814fad 2013-12-04 23:13:12 Andy Ross

libsensors: Fix memory leak when sensors are enabled

BuildChannelList is called every time the sensor is opened, not simply
once on initialization. The info_array would continually grow with
newly probed channel objects (i.e. 3 objects for
accelerometer/gyro/compass, one for ALS) appeneded every time, and it
was similarly used to size the raw_buffer used for the read() call.

Change-Id: I163fe2e3abddbd7196e90bc1774f6584b47ab3f4
For: AXIA-3287
Signed-off-by: Andy Ross <andy.ross@windriver.com>
Reviewed-on: https://otc-android.intel.com/gerrit/22149
Reviewed-by: Daniel Leung <daniel.leung@intel.com>
Reviewed-by: Russell Webb <russell.webb@intel.com>
Tested-by: jenkins autobuilder

2a3f8ec 2013-12-04 23:13:12 Andy Ross

libsensors: Re-fix "non-streaming" state, provide for rate clamping

This has been fixed, rebroken and re-fixed several times now. Here's
the deal as I understand it: HID sensors are inherently
"non-streaming" in the Android sense. They are never guaranteed to
report events at a fixed rate (the IIO sampling_frequency property is
a command to the sensor hub which is doing filtering; some hubs send
fixed rate events, some don't). The Android API documentation
specifies that this should be signaled by setting the minDelay of the
sensor_t to zero.

But if you do this, then the framework and apps don't know what values
are valid and will attempt to set improbabable values (e.g. 1000Hz).
Sadly the IIO driver will eject those settings instead of clamping
them to a valid range, and the result is that the sensors retain their
default values (e.g. 5Hz for compass in the linked Jira) and look very
slow.

So implement rate clamping in SensorIIODev: subclasses can set their
own minimum delay values to which the HAL will clamp before being sent
the the hardware. These are populated currently with values specific
to (and empirically determined from) the Intel sensor hub on the
Harris Beach Ultrabook. Future work will need to make this settable
via configuration.

Issue: AXIA-3287
Change-Id: I63b3d531ec3fadba4dbee17cff68681c9ad1b510
Signed-off-by: Andy Ross <andy.ross@windriver.com>
Reviewed-on: https://otc-android.intel.com/gerrit/22148
Reviewed-by: Radivoje Jovanovic <radivoje.jovanovic@intel.com>
Reviewed-by: Daniel Leung <daniel.leung@intel.com>
Reviewed-by: Russell Webb <russell.webb@intel.com>
Tested-by: jenkins autobuilder

9946022 2013-12-04 23:13:12 Adriana Reus

Set minimum delay for accelerometer events.

Specify minimum observed delay for the accelerometer event rate.
This is a hint to the service, which clamps higher values to the minimum supported delay.

Issue: AXIA-3061
Change-Id: I74a91f6f8eb93121407e1a452ac4690bec474cda
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Reviewed-on: https://otc-android.intel.com/gerrit/20206
Tested-by: jenkins autobuilder
Reviewed-by: Alexandru Timohi <alexandru.timohi@intel.com>
Reviewed-by: Mihai Serban <mihai.serban@intel.com>
Reviewed-by: Daniel Leung <daniel.leung@intel.com>
Reviewed-by: Constantin Musca <constantin.musca@intel.com>
Reviewed-by: Robert Chiras <robert.chiras@intel.com>
Tested-by: Robert Chiras <robert.chiras@intel.com>

1d93e80 2013-12-04 23:13:12 Billy

Sensors: Change MinDelay for matching non-streaming sensors

Fix:
The HAL code set Mindelay to non-zero, but sensors don't work as
streaming. Change MinDelay to zero.

Issue: AXIA-1868
Change-Id: Ia10111191d50b4914f422b84d5d36135b4713961
Signed-off-by: Xiaobing Feng <xiaobing.feng@windriver.com>
Reviewed-on: https://otc-android.intel.com/gerrit/19193
Reviewed-by: Matthew K Gumbel <matthew.k.gumbel@intel.com>
Tested-by: Matthew K Gumbel <matthew.k.gumbel@intel.com>

afd90c1 2013-12-04 23:13:12 Huzefa Kankroliwala

bigcore: Give more time for iio device detection

Currently android framework checks if /sys/bus/iio/devices node
is created and sets sensor property based on it. The check is
performed in a for loop of ~1 sec.
Looks like for i2c based sensors it is taking more time for the
node to be created and hence setting of property fails.

Increase the loop time to ~5 sec max which gives enough time for
the node to be detected.

Issue: AXIA-2039
Change-Id: I1b33eae948482e9e6835918d61357cd6ba3d7b2b
Signed-off-by: Huzefa Kankroliwala <huzefa.nomanx.kankroliwala@intel.com>

8ab207e 2013-12-04 23:13:12 Sharada

Modified supported sensor capabilities

Sensor info needs to be updated based on the device
capability.For ACER Iconia and HSW Kalapana beach
maximum supproted sampling frequency is ACCEL :60hz,
Gyro :60Hz, Compass:15Hz.
Anything set above this frequency, firmware will default
to 5Hz.

Issue: AXIA-1721, AXIA-1722

Signed-off-by: SharadaX Palasamudram Ashok Kumar<sharadax.p
alasamudram.ashok.kumar@intel.com>

Change-Id: Ic355d30d4fd614b15fcc45368bf439a9b12b6419

bc76fca 2013-12-04 23:13:12 Daniel Leung

libsensors: retry more and deal with sensor hub quirk

() Sometimes the ueventd has a hard time keeping up with all
the uevents. It causes the permissions of the IIO sysfs nodes
to remain unchanged. This causes the sensor HAL initialization
to fail. Need to retry a few more times.

() There is a quirk with some sensor hubs, where you have to
enable/disable/enable for it to start sending any events.
This adds the code to "jump-start" the hub.

Issue: AXIA-1451
Change-Id: Iecfbf8589637eb16a8b80364b47c2527a69d7cd3
Depends-Change-Id: Ibfff2a60c5223b2018c106237365967471e00e89
Signed-off-by: Daniel Leung <daniel.leung@intel.com>

334c070 2013-12-04 23:13:12 Matt Gumbel

libsensors: modified default gyro orientation

Updated for IVB reference board. This approach isn't scalable -- will
need installer approach for future devices.

For: AXIA-1092
Change-Id: Ie992380b3b05468e256afbb2f97e264097784ee1
Signed-off-by: Matt Gumbel <matthew.k.gumbel@linux.intel.com>

cdbe0bd 2013-12-04 23:13:12 Matt Gumbel

libsensors: save sensor presence from first boot

Because of delayed module loading and USB enumeration time, IIO sensors
sysfs nodes may not yet be created by the time libsensors is asked to
initialize by the frameworks. This patch will wait up to 10 sec for the
sysfs nodes to appear before reporting "no sensors" to the framework on
the first boot of the device and set a system property based on whether
or not the iio sensors were found.

On subsequent boots, it will only consult this system property and thus
no delay in system services startup.

Change-Id: Ibb7b6d69ce1c1dcadd0ddaa361a4297489a044c7
Signed-off-by: Matt Gumbel <matthew.k.gumbel@linux.intel.com>

cb51211 2013-12-04 23:13:12 Matt Gumbel

bigcore/libsensors: check for presence of IIO sensors

bigcore libsensors BoardConfig was assuming IIO sensors are present on
the device. Some devices (e.g. samsung xe700t) do not have them and so
they should not be reported to Android's sensorservice.

For now, this is just a very simplistic yes/no test to support both
the xe700t as well as the new Win8 samsung device that actually has the
IIO sensors.

Change-Id: Ib920315aa02442f9f814d78ee1a496237b74e537
For: AXIA-837
Signed-off-by: Matt Gumbel <matthew.k.gumbel@intel.com>

4aeb3a7 2013-12-04 23:13:11 srinivas pandruvada

Sensor HAL: Allow orientation and hysteresis config

This patch adds defines for orientation and hysteresis, so
that they can be modified to tune for individual platform.
It is initializing hysteresis to 0 and orientation values to
-1.

Change-Id: I086945a73f482bfc08f3baf12ce836c7b40d4ae6
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@intel.com>

Show on old repository browser