]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
[media] mt9v032: Fix pixel array size
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 2 Dec 2013 14:52:44 +0000 (11:52 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 11 Dec 2013 11:14:05 +0000 (09:14 -0200)
The active pixel array size is 753x481 with 4 additional black rows at
the top. Fix the driver accordingly.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/i2c/mt9v032.c

index 205582030735e90743d099948d4b7a473402a09b..12360e475739d3f7076621f5f0e0f52e692bf7a0 100644 (file)
@@ -27,8 +27,9 @@
 #include <media/v4l2-device.h>
 #include <media/v4l2-subdev.h>
 
-#define MT9V032_PIXEL_ARRAY_HEIGHT                     492
-#define MT9V032_PIXEL_ARRAY_WIDTH                      782
+/* The first four rows are black rows. The active area spans 753x481 pixels. */
+#define MT9V032_PIXEL_ARRAY_HEIGHT                     485
+#define MT9V032_PIXEL_ARRAY_WIDTH                      753
 
 #define MT9V032_SYSCLK_FREQ_DEF                                26600000