difos/target/linux/bcm27xx/patches-6.1/950-0429-media-i2c-ov9281-Correct-min-def-vts-for-640x400.patch
Álvaro Fernández Rojas 793f8ab62c bcm27xx: 6.1: add kernel patches
Add kernel patches for version 6.1.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2023-06-09 19:12:30 +02:00

27 lines
880 B
Diff

From 286fa1d98e627f4991f3fe3981b806555df18cd8 Mon Sep 17 00:00:00 2001
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
Date: Mon, 4 Jul 2022 18:10:23 +0100
Subject: [PATCH] media: i2c: ov9281: Correct min/def vts for 640x400
A VTS of 421 in the 640x400 mode only streams at 130.2fps
instead of the expected ~261fps. This appears to be an invalid
value for the sensor, as a VTS of 422 works fine to give 259.79fps.
Set the minimum (and default) to 422.
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
---
drivers/media/i2c/ov9281.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/media/i2c/ov9281.c
+++ b/drivers/media/i2c/ov9281.c
@@ -369,7 +369,7 @@ static const struct ov9281_mode supporte
.height = 400,
.exp_def = 0x0320,
.hts_def = 0x05b0,
- .vts_def = 421,
+ .vts_def = 422,
.crop = {
.left = 0,
.top = 0,