media: ov5640: Fix 720x480 in RGB888 mode
authorJacopo Mondi <jacopo@jmondi.org>
Fri, 13 May 2022 14:13:57 +0000 (15:13 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 14:22:01 +0000 (15:22 +0100)
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 <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov5640.c

index 272a81d..85b0d0e 100644 (file)
@@ -750,7 +750,7 @@ ov5640_mode_data[OV5640_NUM_MODES] = {
                        .height = 1944,
                },
                .crop = {
-                       .left   = 16,
+                       .left   = 56,
                        .top    = 60,
                        .width  = 720,
                        .height = 480,