From 523932a54d94d76b87eac6621ea1d37e69bbfcdf Mon Sep 17 00:00:00 2001 From: Leo Yan Date: Tue, 27 Dec 2011 09:56:51 +0800 Subject: [PATCH] ltr502als.c: Increase the sample integration circle of proximity sensor BZ: 18196 During voice call display may go off by an accidental swipe. To avoid that, we increase the sample intergration circle of proximity sensor. After this change, it will take more time to trigger proximity interrupt than before. Change-Id: Id6fe644a9daf610de31398b2485914c43b7600d9 Signed-off-by: Leo Yan Reviewed-on: http://android.intel.com:8080/29996 Reviewed-by: Liu, Hong Reviewed-by: Du, Alek Tested-by: Wang, Zhifeng Reviewed-by: buildbot Tested-by: buildbot --- drivers/hwmon/ltr502als.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/ltr502als.c b/drivers/hwmon/ltr502als.c index b4f2ee3..5785a2f 100644 --- a/drivers/hwmon/ltr502als.c +++ b/drivers/hwmon/ltr502als.c @@ -409,7 +409,7 @@ static int ltr502als_initchip(struct alsps_device *alsps) alsps_write(alsps, CONFIGREG, POWER_UP | IDLE); alsps_write(alsps, DLSCTROL, ADC_64LEVEL); alsps_write(alsps, TCREG, - PRX_INT_CYCLE1 | INTEGRATE_100MS | ALPS_INT_CYCLE1); + PRX_INT_CYCLE4 | INTEGRATE_100MS | ALPS_INT_CYCLE1); /* change proximity threshold PRX_THRESH_CTL to 31 to decrease the distance * that triggers proximity interrupt*/ -- 2.7.4