OSDN Git Service

Sensors: Setting sensor's sensitivity value to default retrieved from fw
authorArchana <archana.patni@linux.intel.com>
Thu, 6 Feb 2014 09:45:17 +0000 (04:45 -0500)
committerLilja, Ola <ola.lilja@intel.com>
Fri, 7 Feb 2014 12:06:17 +0000 (04:06 -0800)
commit19e3f128bdc706b96b3eac65e0bd48bececfaa63
tree1354e11e18da70e64420277faf67f4d4256a0e60
parent9de43e6111b7b19741d0d22e99ef8988d268f977
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>
SensorIIODev.cpp
SensorIIODev.h