Skip to content

Commit 13c3fb1

Browse files
naushirpelwell
authored andcommitted
media: i2c: imx296: Adjust cropping limits
Through emperical testing, the sensor can crop upto a 96x88 window to produce a valid Bayer frame. Adjust the ROIWH1_MIN ROIWV1_MIN appropriately for this limit. Signed-off-by: Naushir Patuck <[email protected]>
1 parent f46ba84 commit 13c3fb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/media/i2c/imx296.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ MODULE_PARM_DESC(trigger_mode, "Set trigger mode: 0=default, 1=XTRIG");
154154
#define IMX296_FID0_ROIPH1 IMX296_REG_16BIT(0x3310)
155155
#define IMX296_FID0_ROIPV1 IMX296_REG_16BIT(0x3312)
156156
#define IMX296_FID0_ROIWH1 IMX296_REG_16BIT(0x3314)
157-
#define IMX296_FID0_ROIWH1_MIN 80
157+
#define IMX296_FID0_ROIWH1_MIN 96
158158
#define IMX296_FID0_ROIWV1 IMX296_REG_16BIT(0x3316)
159-
#define IMX296_FID0_ROIWV1_MIN 4
159+
#define IMX296_FID0_ROIWV1_MIN 88
160160

161161
#define IMX296_CM_HSST_STARTTMG IMX296_REG_16BIT(0x4018)
162162
#define IMX296_CM_HSST_ENDTMG IMX296_REG_16BIT(0x401a)

0 commit comments

Comments
 (0)