Skip to content

Commit 00a0c48

Browse files
6by9pelwell
authored andcommitted
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: 14ea315 ("media: i2c: Add ov9282 camera sensor driver") Signed-off-by: Dave Stevenson <[email protected]>
1 parent 54bcf63 commit 00a0c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/media/i2c/ov9282.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
/* Exposure control */
4141
#define OV9282_REG_EXPOSURE 0x3500
4242
#define OV9282_EXPOSURE_MIN 1
43-
#define OV9282_EXPOSURE_OFFSET 12
43+
#define OV9282_EXPOSURE_OFFSET 25
4444
#define OV9282_EXPOSURE_STEP 1
4545
#define OV9282_EXPOSURE_DEFAULT 0x0282
4646

0 commit comments

Comments
 (0)