From: Jacopo Mondi Date: Fri, 13 May 2022 14:13:57 +0000 (+0100) Subject: media: ov5640: Fix 720x480 in RGB888 mode X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e74ef55b89682eac816377e5b457246b2de800d8;p=linux.git media: ov5640: Fix 720x480 in RGB888 mode Adjust the left crop of 720x480 to enable capture in RGB888 format, which is otherwise broken. The 56 pixels alignment has been copied from the 720x576 mode. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c index 272a81d27b918..85b0d0ea249e2 100644 --- a/drivers/media/i2c/ov5640.c +++ b/drivers/media/i2c/ov5640.c @@ -750,7 +750,7 @@ ov5640_mode_data[OV5640_NUM_MODES] = { .height = 1944, }, .crop = { - .left = 16, + .left = 56, .top = 60, .width = 720, .height = 480,