[PATCH 1/3] ov7670: remove QCIF mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This super-low-resolution mode only captures from a small portion of
the sensor FOV, making it a bit useless.

Signed-off-by: Daniel Drake <dsd@xxxxxxxxxx>
---
 drivers/media/video/ov7670.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

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))
-- 
1.7.2.3

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux