From: David Plowman Date: Tue, 10 Jan 2023 13:14:27 +0000 (+0000) Subject: drivers: media: i2c: imx708: Fix crop information X-Git-Tag: accepted/tizen/unified/20230531.034420~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fbe7330ef58680361d3aa56e7d08ebc9981a663e;p=platform%2Fkernel%2Flinux-rpi.git drivers: media: i2c: imx708: Fix crop information The 1536x864 mode contained incorrect crop information. Signed-off-by: David Plowman [sw0312.kim: cherry-pick raspberry pi kernel upstream to support rpi camera module v3] Signed-off-by: Seung-Woo Kim Change-Id: Ic92f91f80bb8e088a681474f10fee7b6d39a55e6 --- diff --git a/drivers/media/i2c/imx708.c b/drivers/media/i2c/imx708.c index 785275c..bd04eea 100644 --- a/drivers/media/i2c/imx708.c +++ b/drivers/media/i2c/imx708.c @@ -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,