From 05f881cf306a81beb27c7a0fcd7a6b6dc47f9421 Mon Sep 17 00:00:00 2001 From: sandyol55 Date: Tue, 21 Apr 2026 22:07:51 +0100 Subject: [PATCH] media: i2c: imx477: Fix crop height in 12Mpix 16:9 struct Struct definition doesn't match the cropped height of the mode causing Picamera2 ScalerCrop to distort any cropped images. Also causes the rpi-cam apps --list-cameras to report an incorrect mode crop height. Signed-off-by: Sandy Sutherland --- drivers/media/i2c/imx477.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/imx477.c b/drivers/media/i2c/imx477.c index 3737c98dc3e6d4..04a77d41f08373 100644 --- a/drivers/media/i2c/imx477.c +++ b/drivers/media/i2c/imx477.c @@ -884,7 +884,7 @@ static const struct imx477_mode supported_modes[] = { .left = IMX477_PIXEL_ARRAY_LEFT, .top = IMX477_PIXEL_ARRAY_TOP + 440, .width = 4056, - .height = 3040, + .height = 2160, }, .frm_length_default = 10, .reg_list = {