mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
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:
committed by
Dom Cobley
parent
7eefe9b8ee
commit
217fd84b99
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user