summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVenu Byravarasu <vbyravarasu@nvidia.com>2010-06-25 12:05:15 +0530
committerGary King <gking@nvidia.com>2010-06-24 23:57:27 -0700
commitbe9aaf44eaa0d3047f20bc53fbcd12c478edafbc (patch)
tree52f7cb13ca3a05d0e71eb3877db06f447892cf4c
parentc9bdce94608a9c2efec13d18e85057455ad2befb (diff)
tegra accelerometer: reverting threshold setting changes
As these changes are causing power regressions on whistler, reverting them. Tested on: whistler Bug 702317 Change-Id: I025e1f4e7d58f020ced7dadff1707ac403d620ba Reviewed-on: http://git-master/r/3180 Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Tested-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: Gary King <gking@nvidia.com>
-rw-r--r--drivers/input/misc/tegra_odm_accel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/input/misc/tegra_odm_accel.c b/drivers/input/misc/tegra_odm_accel.c
index 9bc9b4927757..8af906d9ba77 100644
--- a/drivers/input/misc/tegra_odm_accel.c
+++ b/drivers/input/misc/tegra_odm_accel.c
@@ -107,7 +107,7 @@ NvBool open_def_odm_accl(void)
}
err = NvOdmAccelSetIntForceThreshold(accel_dev->hOdmAcr,
- NvOdmAccelInt_MotionThreshold, 0, 2);
+ NvOdmAccelInt_MotionThreshold, 0, 900);
if (!err) {
pr_err("open_def_odm_accl: Set Motion Thresold failed\n");
return err;
@@ -130,7 +130,7 @@ NvBool open_def_odm_accl(void)
}
err = NvOdmAccelSetIntForceThreshold(accel_dev->hOdmAcr,
- NvOdmAccelInt_TapThreshold, 0, 10);
+ NvOdmAccelInt_TapThreshold, 0, 120);
if (!err) {
pr_err("open_def_odm_accl: Set Tap Threshold failed\n");
@@ -163,8 +163,8 @@ void change_nvodm_accelerometer_settings(NvU32 command, NvS32 value)
accel_dev->freq = value;
}
} else {
-// NvOdmAccelSetSampleRate(accel_dev->hOdmAcr,
-// NvOdmAccelPower_Fullrun);
+ NvOdmAccelSetSampleRate(accel_dev->hOdmAcr,
+ NvOdmAccelPower_Fullrun);
if (NvOdmAccelSetSampleRate(accel_dev->hOdmAcr, value)) {
accel_dev->freq = value;
}