media: i2c: imx477: Correct minimum exposure lines
authorDavid Plowman <david.plowman@raspberrypi.com>
Mon, 30 May 2022 09:10:37 +0000 (10:10 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Mon, 6 Jun 2022 08:58:17 +0000 (09:58 +0100)
The minimum number of exposure lines value (IMX477_EXPOSURE_MIN) was
previously 20 but this is not correct. The datasheet is not completely
explicit, however the new value of 4 has been tested with all the
sensor modes supported by this driver, and matches the lowest exposure
value of 114us that could be achieved wtih Raspberry Pi's legacy
firmware driver.

Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
drivers/media/i2c/imx477.c

index 2b4dfdd..ac79c57 100644 (file)
@@ -61,7 +61,7 @@ MODULE_PARM_DESC(trigger_mode, "Set vsync trigger mode: 1=source, 2=sink");
 /* Exposure control */
 #define IMX477_REG_EXPOSURE            0x0202
 #define IMX477_EXPOSURE_OFFSET         22
-#define IMX477_EXPOSURE_MIN            20
+#define IMX477_EXPOSURE_MIN            4
 #define IMX477_EXPOSURE_STEP           1
 #define IMX477_EXPOSURE_DEFAULT                0x640
 #define IMX477_EXPOSURE_MAX            (IMX477_FRAME_LENGTH_MAX - \