bcm27xx: 6.1: add kernel patches
[openwrt/staging/stintel.git] / target / linux / bcm27xx / patches-6.1 / 950-0429-media-i2c-ov9281-Correct-min-def-vts-for-640x400.patch
1 From 286fa1d98e627f4991f3fe3981b806555df18cd8 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Mon, 4 Jul 2022 18:10:23 +0100
4 Subject: [PATCH] media: i2c: ov9281: Correct min/def vts for 640x400
5
6 A VTS of 421 in the 640x400 mode only streams at 130.2fps
7 instead of the expected ~261fps. This appears to be an invalid
8 value for the sensor, as a VTS of 422 works fine to give 259.79fps.
9
10 Set the minimum (and default) to 422.
11
12 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
13 ---
14 drivers/media/i2c/ov9281.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- a/drivers/media/i2c/ov9281.c
18 +++ b/drivers/media/i2c/ov9281.c
19 @@ -369,7 +369,7 @@ static const struct ov9281_mode supporte
20 .height = 400,
21 .exp_def = 0x0320,
22 .hts_def = 0x05b0,
23 - .vts_def = 421,
24 + .vts_def = 422,
25 .crop = {
26 .left = 0,
27 .top = 0,