diff mbox

[1/3] ov7670: remove QCIF mode

Message ID 20101008210412.E85769D401B@zog.reactivated.net (mailing list archive)
State Changes Requested
Headers show

Commit Message

Daniel Drake Oct. 8, 2010, 9:04 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/video/ov7670.c b/drivers/media/video/ov7670.c
index a18dcd0..7017e5c 100644
--- a/drivers/media/video/ov7670.c
+++ b/drivers/media/video/ov7670.c
@@ -618,6 +618,7 @@  static struct ov7670_format_struct {
  * which is allegedly provided by the sensor.  So here's the weird register
  * settings.
  */
+#if 0
 static struct regval_list ov7670_qcif_regs[] = {
 	{ REG_COM3, COM3_SCALEEN|COM3_DCWEN },
 	{ REG_COM3, COM3_DCWEN },
@@ -636,6 +637,7 @@  static struct regval_list ov7670_qcif_regs[] = {
 	{ REG_COM13, 0xc0 },
 	{ 0xff, 0xff },
 };
+#endif
 
 static struct ov7670_win_size {
 	int	width;
@@ -681,7 +683,8 @@  static struct ov7670_win_size {
 		.vstop		= 494,
 		.regs 		= NULL,
 	},
-	/* QCIF */
+#if 0
+	/* QCIF - disabled because it only shows a small portion of sensor FOV */
 	{
 		.width		= QCIF_WIDTH,
 		.height		= QCIF_HEIGHT,
@@ -692,6 +695,7 @@  static struct ov7670_win_size {
 		.vstop		= 494,
 		.regs 		= ov7670_qcif_regs,
 	},
+#endif
 };
 
 #define N_WIN_SIZES (ARRAY_SIZE(ov7670_win_sizes))