1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00
openmptcprouter/6.1/target/linux/bcm27xx/patches-6.1/950-0536-drivers-media-i2c-imx708-Fix-crop-information.patch
Ycarus (Yannick Chabanois) 3743692973 Fix RPI5 support
2023-11-17 17:31:36 +01:00

29 lines
920 B
Diff

From ef7c5a4dd5c6237354fada0a89bc2a7ca5611dae Mon Sep 17 00:00:00 2001
From: David Plowman <david.plowman@raspberrypi.com>
Date: Tue, 10 Jan 2023 13:14:27 +0000
Subject: [PATCH] drivers: media: i2c: imx708: Fix crop information
The 1536x864 mode contained incorrect crop information.
Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
---
drivers/media/i2c/imx708.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--- a/drivers/media/i2c/imx708.c
+++ b/drivers/media/i2c/imx708.c
@@ -673,10 +673,10 @@ static const struct imx708_mode supporte
.height = 864,
.line_length_pix = 0x1460,
.crop = {
- .left = IMX708_PIXEL_ARRAY_LEFT,
- .top = IMX708_PIXEL_ARRAY_TOP,
- .width = 4608,
- .height = 2592,
+ .left = IMX708_PIXEL_ARRAY_LEFT + 768,
+ .top = IMX708_PIXEL_ARRAY_TOP + 432,
+ .width = 3072,
+ .height = 1728,
},
.vblank_min = 40,
.vblank_default = 2755,