media: i2c: imx219: Correct the minimum vblanking value
authorDavid Plowman <david.plowman@raspberrypi.com>
Tue, 25 Jan 2022 15:48:53 +0000 (15:48 +0000)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Tue, 25 Jan 2022 16:25:11 +0000 (16:25 +0000)
The datasheet for this sensor documents the minimum vblanking as being
32 lines. It does fix some problems with occasional black lines at the
bottom of images (tested on Raspberry Pi).

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
drivers/media/i2c/imx219.c

index 6aed851..7f0fdd6 100644 (file)
@@ -55,7 +55,7 @@
 #define IMX219_VTS_30FPS_640x480       0x06e3
 #define IMX219_VTS_MAX                 0xffff
 
-#define IMX219_VBLANK_MIN              4
+#define IMX219_VBLANK_MIN              32
 
 /*Frame Length Line*/
 #define IMX219_FLL_MIN                 0x08a6