build/patch/kernel/archive/sunxi-6.2/patches.megous/media-ov5640-Report-analogue-gain-as-supported-for-libcamera.patch

27 lines
869 B
Diff
Raw Normal View History

From 816b9b996f8b3caac204e1df17db1587e835a4dc Mon Sep 17 00:00:00 2001
From: Adam Pigg <adam@piggz.co.uk>
Date: Thu, 29 Dec 2022 11:07:33 +0000
Subject: [PATCH 050/391] media: ov5640: Report analogue gain as supported for
libcamera
---
drivers/media/i2c/ov5640.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c
index bd8b4e94c..f1c3fb8c1 100644
--- a/drivers/media/i2c/ov5640.c
+++ b/drivers/media/i2c/ov5640.c
@@ -3761,7 +3761,7 @@ static int ov5640_init_controls(struct ov5640_dev *sensor)
/* Auto/manual gain */
ctrls->auto_gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTOGAIN,
0, 1, 1, 1);
- ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN,
+ ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_ANALOGUE_GAIN,
0, 1023, 1, 0);
/* Autofocus */
--
2.35.3