OSDN Git Service

STPK-1429 Take into account poll-mode sensors in sampling rate code
authorPatrick Porlan <patrick.porlan@intel.com>
Mon, 14 Apr 2014 14:56:25 +0000 (16:56 +0200)
committersuyyala <sridhar.uyyala@intel.com>
Sat, 10 May 2014 15:31:14 +0000 (08:31 -0700)
commit8c75d504dc9f1b173454b46e90e1dd737d2aac52
treed416d85b9eaf97b2ca3b7d2f9e8bb420453b8044
parent8c926262264d808b31eb29beaf26c7a69b730dff
STPK-1429 Take into account poll-mode sensors in sampling rate code

Poll-mode sensors firing rate is entirely controlled by software,
and more precisely by our own poll loop, so be careful when
handling the desired sampling rate for these. On the T100, we
have both poll mode sensors (such as the AK magnetometer) and
regular character-device sensors (accel, gyro) on iio device 0,
so also check for poll-mode devices when arbitrating the device
level sampling rate.

Issue: STPK-1429

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