media: i2c: ov5647: Correct minimum VBLANK value
authorDavid Plowman <david.plowman@raspberrypi.com>
Tue, 11 May 2021 11:57:22 +0000 (12:57 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:10 +0000 (11:33 +0000)
Trial and error reveals that the minimum vblank value appears to be 24
(the OV5647 data sheet does not give any clues). This fixes streaming
lock-ups in full resolution mode.

Fixes: 9b5a5ebedc303 ("media: i2c: ov5647: Add support for V4L2_CID_VBLANK")
Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
drivers/media/i2c/ov5647.c

index a74835a..e548d84 100644 (file)
@@ -73,7 +73,7 @@
 #define OV5647_PIXEL_ARRAY_WIDTH       2592U
 #define OV5647_PIXEL_ARRAY_HEIGHT      1944U
 
-#define OV5647_VBLANK_MIN              4
+#define OV5647_VBLANK_MIN              24
 #define OV5647_VTS_MAX                 32767
 
 #define OV5647_EXPOSURE_MIN            4