summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2022-05-13 15:13:57 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-07-08 15:22:01 +0100
commite74ef55b89682eac816377e5b457246b2de800d8 (patch)
tree7d1657079b9f3930dc36613021c7bcb659d11ae2 /drivers/media/i2c
parent3145efcdb4d0eb3f4045d45c55a3963ed4f735c4 (diff)
downloadlinux-e74ef55b89682eac816377e5b457246b2de800d8.tar.bz2
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 <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>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r--drivers/media/i2c/ov5640.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c
index 272a81d27b91..85b0d0ea249e 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,