summaryrefslogtreecommitdiff
path: root/drivers/input/misc/tegra_odm_accel.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/misc/tegra_odm_accel.c')
-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;
}