[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1643957268-6365-1-git-send-email-quic_dikshita@quicinc.com>
Date: Fri, 4 Feb 2022 12:17:48 +0530
From: Dikshita Agarwal <quic_dikshita@...cinc.com>
To: hverkuil-cisco@...all.nl
Cc: linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
vgarodia@...eaurora.org,
Dikshita Agarwal <quic_dikshita@...cinc.com>
Subject: [PATCH] Add check for READ ONLY flag
Add a check for V4L2_CTRL_FLAG_READ_ONLY to avoid request
testing for such controls.
---
utils/v4l2-compliance/v4l2-test-buffers.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/utils/v4l2-compliance/v4l2-test-buffers.cpp b/utils/v4l2-compliance/v4l2-test-buffers.cpp
index fa8c37c..b8de7af 100644
--- a/utils/v4l2-compliance/v4l2-test-buffers.cpp
+++ b/utils/v4l2-compliance/v4l2-test-buffers.cpp
@@ -2032,7 +2032,8 @@ int testRequests(struct node *node, bool test_streaming)
if (qctrl.type != V4L2_CTRL_TYPE_INTEGER &&
qctrl.type != V4L2_CTRL_TYPE_BOOLEAN)
continue;
- if (qctrl.flags & V4L2_CTRL_FLAG_WRITE_ONLY)
+ if (qctrl.flags & V4L2_CTRL_FLAG_WRITE_ONLY ||
+ qctrl.flags & V4L2_CTRL_FLAG_READ_ONLY)
continue;
if (is_vivid && V4L2_CTRL_ID2WHICH(qctrl.id) == V4L2_CTRL_CLASS_VIVID)
continue;
--
2.7.4
Powered by blists - more mailing lists