drivers: media: i2c: imx708: Fix crop information 24/293324/1
authorDavid Plowman <david.plowman@raspberrypi.com>
Tue, 10 Jan 2023 13:14:27 +0000 (13:14 +0000)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 22 May 2023 08:01:54 +0000 (17:01 +0900)
The 1536x864 mode contained incorrect crop information.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
[sw0312.kim: cherry-pick raspberry pi kernel upstream to support rpi camera module v3]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ic92f91f80bb8e088a681474f10fee7b6d39a55e6

drivers/media/i2c/imx708.c

index 785275c..bd04eea 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,