mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Add check for READ ONLY flag
@ 2022-02-04  6:47 Dikshita Agarwal
  2022-02-08 12:39 ` Hans Verkuil
  0 siblings, 1 reply; 3+ messages in thread
From: Dikshita Agarwal @ 2022-02-04  6:47 UTC (permalink / raw)
  To: hverkuil-cisco; +Cc: linux-media, linux-kernel, vgarodia, Dikshita Agarwal

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Add check for READ ONLY flag
  2022-02-04  6:47 [PATCH] Add check for READ ONLY flag Dikshita Agarwal
@ 2022-02-08 12:39 ` Hans Verkuil
  2022-02-08 12:43   ` Dikshita Agarwal (QUIC)
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Verkuil @ 2022-02-08 12:39 UTC (permalink / raw)
  To: Dikshita Agarwal; +Cc: linux-media, linux-kernel, vgarodia



On 2/4/22 07:47, Dikshita Agarwal wrote:
> Add a check for V4L2_CTRL_FLAG_READ_ONLY to avoid request
> testing for such controls.

Missing Signed-off-by!

Regards,

	Hans

> ---
>  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;

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] Add check for READ ONLY flag
  2022-02-08 12:39 ` Hans Verkuil
@ 2022-02-08 12:43   ` Dikshita Agarwal (QUIC)
  0 siblings, 0 replies; 3+ messages in thread
From: Dikshita Agarwal (QUIC) @ 2022-02-08 12:43 UTC (permalink / raw)
  To: Hans Verkuil, Dikshita Agarwal (QUIC); +Cc: linux-media, linux-kernel, vgarodia

Thanks Hans for review.
I sent a v2 addressing it.

Thanks,
Dikshita Agarwal

-----Original Message-----
From: Hans Verkuil <hverkuil-cisco@xs4all.nl> 
Sent: Tuesday, February 08, 2022 6:10 PM
To: Dikshita Agarwal (QUIC) <quic_dikshita@quicinc.com>
Cc: linux-media@vger.kernel.org; linux-kernel@vger.kernel.org; vgarodia@codeaurora.org
Subject: Re: [PATCH] Add check for READ ONLY flag

WARNING: This email originated from outside of Qualcomm. Please be wary of any links or attachments, and do not enable macros.

On 2/4/22 07:47, Dikshita Agarwal wrote:
> Add a check for V4L2_CTRL_FLAG_READ_ONLY to avoid request testing for 
> such controls.

Missing Signed-off-by!

Regards,

        Hans

> ---
>  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;

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-08 13:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-04  6:47 [PATCH] Add check for READ ONLY flag Dikshita Agarwal
2022-02-08 12:39 ` Hans Verkuil
2022-02-08 12:43   ` Dikshita Agarwal (QUIC)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®