drivers: media: i2c: imx708: Fix crop information
authorDavid Plowman <david.plowman@raspberrypi.com>
Tue, 10 Jan 2023 13:14:27 +0000 (13:14 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:27 +0000 (11:33 +0000)
The 1536x864 mode contained incorrect crop information.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
drivers/media/i2c/imx708.c

index c53c47d..038f9e2 100644 (file)
@@ -673,10 +673,10 @@ static const struct imx708_mode supported_modes_10bit_no_hdr[] = {
                .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,