This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: *v4l-helpers: support V4L2_SUBDEV_CLIENT_CAP_INTERVAL_USES_WHICH
Author:  Hans Verkuil <hverkuil-ci...@xs4all.nl>
Date:    Thu Dec 14 13:12:21 2023 +0100

Add support for that client capability.

Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 utils/common/cv4l-helpers.h | 1 +
 utils/common/v4l-helpers.h  | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=61b25a7ede38b688d4fa71fbc59cd9e2f36ea36d
diff --git a/utils/common/cv4l-helpers.h b/utils/common/cv4l-helpers.h
index 199aca365a44..397973b9c16f 100644
--- a/utils/common/cv4l-helpers.h
+++ b/utils/common/cv4l-helpers.h
@@ -83,6 +83,7 @@ public:
        bool has_streaming() const { return v4l_has_streaming(this); }
        bool has_ext_pix_format() const { return v4l_has_ext_pix_format(this); }
        bool has_streams() const { return have_streams; }
+       bool has_ival_uses_which() const { return ival_uses_which; }
 
        int querycap(v4l2_capability &cap, bool force = false)
        {
diff --git a/utils/common/v4l-helpers.h b/utils/common/v4l-helpers.h
index cf0e92df12e4..7387b6212a57 100644
--- a/utils/common/v4l-helpers.h
+++ b/utils/common/v4l-helpers.h
@@ -41,6 +41,7 @@ struct v4l_fd {
        bool is_subdev;
        bool is_media;
        bool have_streams;
+       bool ival_uses_which;
 
        int (*open)(struct v4l_fd *f, const char *file, int oflag, ...);
        int (*close)(struct v4l_fd *f);
@@ -539,10 +540,12 @@ static inline int v4l_subdev_s_fd(struct v4l_fd *f, int 
fd, const char *devname)
        ret = ioctl(f->fd, VIDIOC_SUBDEV_QUERYCAP, &subdevcap);
        subdev_streams = !ret && (subdevcap.capabilities & 
V4L2_SUBDEV_CAP_STREAMS);
 
-       clientcap.capabilities = V4L2_SUBDEV_CLIENT_CAP_STREAMS;
+       clientcap.capabilities = V4L2_SUBDEV_CLIENT_CAP_STREAMS |
+                                V4L2_SUBDEV_CLIENT_CAP_INTERVAL_USES_WHICH;
 
        ret = ioctl(f->fd, VIDIOC_SUBDEV_S_CLIENT_CAP, &clientcap);
        client_streams = !ret && (clientcap.capabilities & 
V4L2_SUBDEV_CLIENT_CAP_STREAMS);
+       f->ival_uses_which = !ret && (clientcap.capabilities & 
V4L2_SUBDEV_CLIENT_CAP_INTERVAL_USES_WHICH);
 
        f->have_streams = subdev_streams && client_streams;
 

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to