Skip to contentSkip to conversation

ov7670: fix QVGA visible area

PATCH In review Daniel Drake 2 participants 2 messages Oct 18, 2010 – Oct 19, 2010 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ov7670: fix QVGA visible area

The QVGA mode has a green horizontal line on the left hand side, and a red (or sometimes blue) vertical line at the bottom. Tweak the visible area to remove them.

Thanks to Mauro for explaining how to fix this.

---
 drivers/media/video/ov7670.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
drivers/media/video/ov7670.c +4 -4
index a18dcd0..0b78f33 100644
@@ -675,10 +675,10 @@ static struct ov7670_win_size {
 		.width		= QVGA_WIDTH,
 		.height		= QVGA_HEIGHT,
 		.com7_bit	= COM7_FMT_QVGA,
-		.hstart		= 164,		/* Empirically determined */
-		.hstop		=  20,
-		.vstart		=  14,
-		.vstop		= 494,
+		.hstart		= 168,		/* Empirically determined */
+		.hstop		=  24,
+		.vstart		=  12,
+		.vstop		= 492,
 		.regs 		= NULL,
 	},
 	/* QCIF */
Signature · 1 line
1.7.2.3
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · On Mon, 18 Oct 2010 22:07:36 +0100 (BST) Daniel Drake <[email protected]> wrote:

The QVGA mode has a green horizontal line on the left hand side, and a red (or sometimes blue) vertical line at the bottom. Tweak the visible area to remove them.

Looks good to me - lots better than removing the mode!

jon