These patches were generated from: https://github.com/raspberrypi/linux/commits/rpi-6.12.y With the following command: git format-patch -N v6.12.27..HEAD (HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e) Exceptions: - (def)configs patches - github workflows patches - applied & reverted patches - readme patches - wireless patches Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
25 lines
919 B
Diff
25 lines
919 B
Diff
From 8af917418d7ddaa93cd99183c9ecbe80727f9b22 Mon Sep 17 00:00:00 2001
|
|
From: Naushir Patuck <naush@raspberrypi.com>
|
|
Date: Tue, 14 Mar 2023 10:46:46 +0000
|
|
Subject: [PATCH] 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>
|
|
---
|
|
drivers/media/i2c/imx296.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/media/i2c/imx296.c
|
|
+++ b/drivers/media/i2c/imx296.c
|
|
@@ -588,7 +588,7 @@ static int imx296_setup(struct imx296 *s
|
|
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;
|