bcm27xx: add support for linux v5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.15 / 950-0391-media-i2c-ov5647-Correct-minimum-VBLANK-value.patch
1 From 50a6f9ee1e93724854efeb20ebbe65d2b0637d2a Mon Sep 17 00:00:00 2001
2 From: David Plowman <david.plowman@raspberrypi.com>
3 Date: Tue, 11 May 2021 12:57:22 +0100
4 Subject: [PATCH] media: i2c: ov5647: Correct minimum VBLANK value
5
6 Trial and error reveals that the minimum vblank value appears to be 24
7 (the OV5647 data sheet does not give any clues). This fixes streaming
8 lock-ups in full resolution mode.
9
10 Fixes: 9b5a5ebedc303 ("media: i2c: ov5647: Add support for V4L2_CID_VBLANK")
11 Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
12 ---
13 drivers/media/i2c/ov5647.c | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 --- a/drivers/media/i2c/ov5647.c
17 +++ b/drivers/media/i2c/ov5647.c
18 @@ -72,7 +72,7 @@
19 #define OV5647_PIXEL_ARRAY_WIDTH 2592U
20 #define OV5647_PIXEL_ARRAY_HEIGHT 1944U
21
22 -#define OV5647_VBLANK_MIN 4
23 +#define OV5647_VBLANK_MIN 24
24 #define OV5647_VTS_MAX 32767
25
26 #define OV5647_EXPOSURE_MIN 4