summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Manton <cmanton@google.com>2013-07-29 16:00:09 -0700
committerChris Manton <cmanton@google.com>2013-07-29 16:17:42 -0700
commit558a4c94ed661bee0ce55e2b264f26834d3c843c (patch)
treea64ec838a2a06e7e1634e5a4305bb4700628729c
parentec567ade669b68d16cb2bd5440403b01d78dc28e (diff)
downloadomap-omapzoom-glass-omap-xrs36.tar.gz
Increase sensitivity of ALS partglass-omap-xrs36
The ALS light cone is fairly narrow, and to use this sensor value in the display intensity function we need to ensure that it most accurately reflects ambient light, not necessarily the response where the user is actually looking at the time. Change-Id: I108f36db28be007dc024f91de215120fc0d4ab3d
-rw-r--r--arch/arm/mach-omap2/board-notle.c6
-rw-r--r--drivers/input/misc/ltr506als.c3
2 files changed, 4 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/board-notle.c b/arch/arm/mach-omap2/board-notle.c
index 67ea6359725c..6a98b7cc7458 100644
--- a/arch/arm/mach-omap2/board-notle.c
+++ b/arch/arm/mach-omap2/board-notle.c
@@ -1551,7 +1551,7 @@ static struct ltr506_platform_data notle_ltr506als_data = {
* '110: 8 bit
* '111: 4 bit
*/
- .pfd_als_resolution = 4,
+ .pfd_als_resolution = 0,
/* ALS measurement repeat rate
* '000: 100ms
@@ -1565,8 +1565,8 @@ static struct ltr506_platform_data notle_ltr506als_data = {
* '00: 1 lux/count (1-64k lux)
* '01: 0.5 lux/count (0.5-32k lux)
* '10: 0.01 lux/count (0.02-640 lux)
- * '11: 0.005 lux/count (0.01-32.0 lux) */
- .pfd_als_gain = 2,
+ * '11: 0.005 lux/count (0.01-320 lux) */
+ .pfd_als_gain = 3,
/* Disable ps on suspend flag */
.pfd_disable_ps_on_suspend = 0,
diff --git a/drivers/input/misc/ltr506als.c b/drivers/input/misc/ltr506als.c
index 577ec4477991..072aaceff520 100644
--- a/drivers/input/misc/ltr506als.c
+++ b/drivers/input/misc/ltr506als.c
@@ -1778,8 +1778,7 @@ static int ltr506_setup(struct ltr506_data *ltr506)
dev_dbg(&ltr506->i2c_client->dev, "%s: Set ltr506 gains\n", __func__);
/* Set the ALS measurement rate and resolution */
- /* NOTE(CMM) This apparently causes instability in the part. */
- /* als_meas_rate_setup(ltr506); */
+ als_meas_rate_setup(ltr506);
ret = ps_led_setup(ltr506);
if (ret < 0) {