mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-27 06:39:51 +00:00
3a5584e0df
Adds latest 6.6 patches from the Raspberry Pi repository. These patches were generated from: https://github.com/raspberrypi/linux/commits/rpi-6.6.y/ With the following command: git format-patch -N v6.6.67..HEAD (HEAD -> 811ff707533bcd67cdcd368bbd46223082009b12) Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> (cherry picked from commit 692205305db14deeff1a2dc4a6d7f87e19fc418b)
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From e23afbf2c7aae9264322eee8e5c72ca1887606df Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Mon, 9 Dec 2024 10:43:18 +0000
|
|
Subject: [PATCH] media: i2c: ov9282: Correct the exposure offset
|
|
|
|
The datasheet lists that "Maximum exposure time is frame
|
|
length -25 row periods, where frame length is set by
|
|
registers {0x380E, 0x380F}".
|
|
However this driver had OV9282_EXPOSURE_OFFSET set to 12
|
|
which allowed that restriction to be violated, and would
|
|
result in very under-exposed images.
|
|
|
|
Correct the offset.
|
|
|
|
Fixes: 14ea315bbeb7 ("media: i2c: Add ov9282 camera sensor driver")
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
drivers/media/i2c/ov9282.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/media/i2c/ov9282.c
|
|
+++ b/drivers/media/i2c/ov9282.c
|
|
@@ -40,7 +40,7 @@
|
|
/* Exposure control */
|
|
#define OV9282_REG_EXPOSURE 0x3500
|
|
#define OV9282_EXPOSURE_MIN 1
|
|
-#define OV9282_EXPOSURE_OFFSET 12
|
|
+#define OV9282_EXPOSURE_OFFSET 25
|
|
#define OV9282_EXPOSURE_STEP 1
|
|
#define OV9282_EXPOSURE_DEFAULT 0x0282
|
|
|