diff options
author | Dikshita Agarwal <quic_dikshita@quicinc.com> | 2022-02-08 18:12:21 +0530 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2022-02-17 13:35:45 +0100 |
commit | 19460651657a617b906f7f1559b3c99bf1c04be6 (patch) | |
tree | 85c0cd038a8c75277227b0203c7b80579d49cf2b | |
parent | 1be688f01525ab7775b742ea4ceaa0e459d6f46d (diff) | |
download | v4l-utils-19460651657a617b906f7f1559b3c99bf1c04be6.tar.gz |
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 <quic_dikshita@quicinc.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r-- | utils/v4l2-compliance/v4l2-test-buffers.cpp | 3 |
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; |