* [PATCH] media: ov7670: Allow 32x maximum gain for yuv422.
@ 2012-10-30 16:04 Javier Martin
2012-10-30 19:31 ` Jonathan Corbet
0 siblings, 1 reply; 2+ messages in thread
From: Javier Martin @ 2012-10-30 16:04 UTC (permalink / raw)
To: linux-media; +Cc: s.nawrocki, laurent.pinchart, mchehab, corbet, Javier Martin
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>
---
drivers/media/video/ov7670.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/video/ov7670.c b/drivers/media/video/ov7670.c
index 5faa3d8..2ea9c51 100644
--- a/drivers/media/video/ov7670.c
+++ b/drivers/media/video/ov7670.c
@@ -366,7 +366,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 */
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] media: ov7670: Allow 32x maximum gain for yuv422.
2012-10-30 16:04 [PATCH] media: ov7670: Allow 32x maximum gain for yuv422 Javier Martin
@ 2012-10-30 19:31 ` Jonathan Corbet
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2012-10-30 19:31 UTC (permalink / raw)
To: Javier Martin; +Cc: linux-media, s.nawrocki, laurent.pinchart, mchehab
On Tue, 30 Oct 2012 17:04:23 +0100
Javier Martin <javier.martin@vista-silicon.com> wrote:
> 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.
The initial number surely came from OmniVision and was never really
thought about. I can't test this at the moment, but I see no reason not
to take your word that it doesn't affect normal-light operation.
Acked-by: Jonathan Corbet <corbet@lwn.net>
jon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-30 19:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-30 16:04 [PATCH] media: ov7670: Allow 32x maximum gain for yuv422 Javier Martin
2012-10-30 19:31 ` Jonathan Corbet
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.