media: i2c: imx296: Set a 1 frame gain delay

Set the gain delay to 1 frame in the sensor. This avoids any race
condition or ambiguity over when the setting is applied through
userland.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
This commit is contained in:
Naushir Patuck
2023-03-14 10:46:46 +00:00
committed by Dom Cobley
parent 7eefe9b8ee
commit 217fd84b99

View File

@@ -588,7 +588,7 @@ static int imx296_setup(struct imx296 *sensor, struct v4l2_subdev_state *state)
imx296_write(sensor, IMX296_CTRL418C, sensor->clk_params->ctrl418c,
&ret);
imx296_write(sensor, IMX296_GAINDLY, IMX296_GAINDLY_NONE, &ret);
imx296_write(sensor, IMX296_GAINDLY, IMX296_GAINDLY_1FRAME, &ret);
imx296_write(sensor, IMX296_BLKLEVEL, 0x03c, &ret);
return ret;