summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/ov7670.c
diff options
context:
space:
mode:
authorJavier Martin2012-10-30 16:04:23 +0100
committerMauro Carvalho Chehab2012-12-21 21:25:09 +0100
commitc01b7429e2b713a3d039cd2b1a94dc1b97cdf321 (patch)
treee04fce3474de87bd0972cfb651bedb498a71ca81 /drivers/media/i2c/ov7670.c
parent[media] media: m2m-deinterlace: Do not set debugging flag to true (diff)
downloadkernel-qcow2-linux-c01b7429e2b713a3d039cd2b1a94dc1b97cdf321.tar.gz
kernel-qcow2-linux-c01b7429e2b713a3d039cd2b1a94dc1b97cdf321.tar.xz
kernel-qcow2-linux-c01b7429e2b713a3d039cd2b1a94dc1b97cdf321.zip
[media] media: ov7670: Allow 32x maximum gain for yuv422
4x gain ceiling is not enough to capture a decent image in conditions of total darkness and only a LED light source. Allow a maximum gain of 32x instead. This doesn't have any drawback since the image quality in 'normal' light conditions is the same. Signed-off-by: Javier Martin <javier.martin@vista-silicon.com> Acked-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/i2c/ov7670.c')
-rw-r--r--drivers/media/i2c/ov7670.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ov7670.c b/drivers/media/i2c/ov7670.c
index e7c82b297514..882ddf6f66d3 100644
--- a/drivers/media/i2c/ov7670.c
+++ b/drivers/media/i2c/ov7670.c
@@ -353,7 +353,7 @@ static struct regval_list ov7670_fmt_yuv422[] = {
{ REG_RGB444, 0 }, /* No RGB444 please */
{ REG_COM1, 0 }, /* CCIR601 */
{ REG_COM15, COM15_R00FF },
- { REG_COM9, 0x18 }, /* 4x gain ceiling; 0x8 is reserved bit */
+ { REG_COM9, 0x48 }, /* 32x gain ceiling; 0x8 is reserved bit */
{ 0x4f, 0x80 }, /* "matrix coefficient 1" */
{ 0x50, 0x80 }, /* "matrix coefficient 2" */
{ 0x51, 0 }, /* vb */