From: Laurent Pinchart Date: Mon, 2 Dec 2013 14:52:44 +0000 (-0300) Subject: [media] mt9v032: Fix pixel array size X-Git-Tag: firefly_0821_release~176^2~3573^2~1045 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2b9e9f779cb29f25102d4e7f14df557ead58e659;p=firefly-linux-kernel-4.4.55.git [media] mt9v032: Fix pixel array size The active pixel array size is 753x481 with 4 additional black rows at the top. Fix the driver accordingly. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/mt9v032.c b/drivers/media/i2c/mt9v032.c index 205582030735..12360e475739 100644 --- a/drivers/media/i2c/mt9v032.c +++ b/drivers/media/i2c/mt9v032.c @@ -27,8 +27,9 @@ #include #include -#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