mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
793f8ab62c
Add kernel patches for version 6.1. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
From 07e177363a8c2596740f22a049568cd448d923dd Mon Sep 17 00:00:00 2001
|
|
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Date: Sun, 16 Oct 2022 09:15:23 +0300
|
|
Subject: [PATCH] media: i2c: imx290: Replace GAIN control with
|
|
ANALOGUE_GAIN
|
|
|
|
Upstream commit 3dd10515a1d9
|
|
|
|
The IMX290 gain register controls the analogue gain. Replace the
|
|
V4L2_CID_GAIN control with V4L2_CID_ANALOGUE_GAIN.
|
|
|
|
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com>
|
|
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
|
|
---
|
|
drivers/media/i2c/imx290.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/media/i2c/imx290.c
|
|
+++ b/drivers/media/i2c/imx290.c
|
|
@@ -524,7 +524,7 @@ static int imx290_set_ctrl(struct v4l2_c
|
|
return 0;
|
|
|
|
switch (ctrl->id) {
|
|
- case V4L2_CID_GAIN:
|
|
+ case V4L2_CID_ANALOGUE_GAIN:
|
|
ret = imx290_write(imx290, IMX290_GAIN, ctrl->val, NULL);
|
|
break;
|
|
|
|
@@ -1015,7 +1015,7 @@ static int imx290_ctrl_init(struct imx29
|
|
* gain control should be adjusted accordingly.
|
|
*/
|
|
v4l2_ctrl_new_std(&imx290->ctrls, &imx290_ctrl_ops,
|
|
- V4L2_CID_GAIN, 0, 100, 1, 0);
|
|
+ V4L2_CID_ANALOGUE_GAIN, 0, 100, 1, 0);
|
|
|
|
v4l2_ctrl_new_std(&imx290->ctrls, &imx290_ctrl_ops,
|
|
V4L2_CID_EXPOSURE, 1, IMX290_VMAX_DEFAULT - 2, 1,
|