aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm27xx/patches-5.10/950-0605-media-i2c-ov5647-Correct-pixel-array-offset.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/bcm27xx/patches-5.10/950-0605-media-i2c-ov5647-Correct-pixel-array-offset.patch')
-rw-r--r--target/linux/bcm27xx/patches-5.10/950-0605-media-i2c-ov5647-Correct-pixel-array-offset.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/target/linux/bcm27xx/patches-5.10/950-0605-media-i2c-ov5647-Correct-pixel-array-offset.patch b/target/linux/bcm27xx/patches-5.10/950-0605-media-i2c-ov5647-Correct-pixel-array-offset.patch
new file mode 100644
index 0000000000..fbbc574912
--- /dev/null
+++ b/target/linux/bcm27xx/patches-5.10/950-0605-media-i2c-ov5647-Correct-pixel-array-offset.patch
@@ -0,0 +1,25 @@
+From c4237f47536b91e894e26439353546e17c1221dc Mon Sep 17 00:00:00 2001
+From: David Plowman <david.plowman@raspberrypi.com>
+Date: Tue, 11 May 2021 12:52:26 +0100
+Subject: [PATCH] media: i2c: ov5647: Correct pixel array offset
+
+The top offset in the pixel array is actually 6 (see page 3-1 of the
+OV5647 data sheet).
+
+Fixes: f2f7ad5ce5e52 ("media: i2c: ov5647: Selection compliance fixes")
+Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
+---
+ drivers/media/i2c/ov5647.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/media/i2c/ov5647.c
++++ b/drivers/media/i2c/ov5647.c
+@@ -77,7 +77,7 @@
+ #define OV5647_NATIVE_HEIGHT 1956U
+
+ #define OV5647_PIXEL_ARRAY_LEFT 16U
+-#define OV5647_PIXEL_ARRAY_TOP 16U
++#define OV5647_PIXEL_ARRAY_TOP 6U
+ #define OV5647_PIXEL_ARRAY_WIDTH 2592U
+ #define OV5647_PIXEL_ARRAY_HEIGHT 1944U
+