aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-compliance
diff options
context:
space:
mode:
authorDikshita Agarwal <quic_dikshita@quicinc.com>2022-02-08 18:12:21 +0530
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2022-02-17 09:48:13 +0100
commite5000e09485c5b92874c21810336823de4f23dfd (patch)
tree85c0cd038a8c75277227b0203c7b80579d49cf2b /utils/v4l2-compliance
parentd124ef52870a0f627d206db31c1b1a59f4c876ed (diff)
Add check for READ ONLY flag
Add a check for V4L2_CTRL_FLAG_READ_ONLY to avoid request testing for such controls. Signed-off-by: Dikshita Agarwal <dikshita@qti.qualcomm.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/v4l2-compliance')
-rw-r--r--utils/v4l2-compliance/v4l2-test-buffers.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/v4l2-compliance/v4l2-test-buffers.cpp b/utils/v4l2-compliance/v4l2-test-buffers.cpp
index fa8c37c4..b8de7afc 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;

Privacy Policy