[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1555337305-13767-3-git-send-email-eugen.hristev@microchip.com>
Date: Mon, 15 Apr 2019 14:13:51 +0000
From: <Eugen.Hristev@...rochip.com>
To: <linux-media@...r.kernel.org>, <hverkuil@...all.nl>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>
CC: <Nicolas.Ferre@...rochip.com>, <mchehab@...nel.org>,
<ksloat@...pglobal.com>, <Eugen.Hristev@...rochip.com>
Subject: [PATCH v2 2/4] media: v4l2-ctrl: fix flags for DO_WHITE_BALANCE
From: Eugen Hristev <eugen.hristev@...rochip.com>
Control DO_WHITE_BALANCE is a button, with read only and execute-on-write flags.
Adding this control in the proper list in the fill function.
After adding it here, we can see output of v4l2-ctl -L
do_white_balance 0x0098090d (button) : flags=write-only, execute-on-write
Signed-off-by: Eugen Hristev <eugen.hristev@...rochip.com>
---
drivers/media/v4l2-core/v4l2-ctrls.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c
index b1ae2e5..388ea90 100644
--- a/drivers/media/v4l2-core/v4l2-ctrls.c
+++ b/drivers/media/v4l2-core/v4l2-ctrls.c
@@ -1153,6 +1153,7 @@ void v4l2_ctrl_fill(u32 id, const char **name, enum v4l2_ctrl_type *type,
case V4L2_CID_FLASH_STROBE_STOP:
case V4L2_CID_AUTO_FOCUS_START:
case V4L2_CID_AUTO_FOCUS_STOP:
+ case V4L2_CID_DO_WHITE_BALANCE:
*type = V4L2_CTRL_TYPE_BUTTON;
*flags |= V4L2_CTRL_FLAG_WRITE_ONLY |
V4L2_CTRL_FLAG_EXECUTE_ON_WRITE;
--
2.7.4
Powered by blists - more mailing lists