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: v4l2-ctl: add support for V4L2_SUBDEV_CLIENT_CAP_INTERVAL_USES_WHICH
Author:  Hans Verkuil <[email protected]>
Date:    Thu Dec 14 14:25:20 2023 +0100

This doesn't do a lot other than setting 'which' to ACTIVE if this
is supported.

Signed-off-by: Hans Verkuil <[email protected]>

 utils/v4l2-ctl/v4l2-ctl-subdev.cpp | 4 ++++
 1 file changed, 4 insertions(+)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=07f01c35389850f3c22e1c4eedf1b61827430761
diff --git a/utils/v4l2-ctl/v4l2-ctl-subdev.cpp 
b/utils/v4l2-ctl/v4l2-ctl-subdev.cpp
index b6d115fea108..86e6c6897f01 100644
--- a/utils/v4l2-ctl/v4l2-ctl-subdev.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-subdev.cpp
@@ -660,6 +660,8 @@ void subdev_set(cv4l_fd &_fd)
                memset(&fival, 0, sizeof(fival));
                fival.pad = set_fps_pad;
                fival.stream = set_fps_stream;
+               if (_fd.has_ival_uses_which())
+                       fival.which = V4L2_SUBDEV_FORMAT_ACTIVE;
 
                if (set_fps <= 0) {
                        fprintf(stderr, "invalid fps %f\n", set_fps);
@@ -798,6 +800,8 @@ void subdev_get(cv4l_fd &_fd)
                memset(&fival, 0, sizeof(fival));
                fival.pad = get_fps_pad;
                fival.stream = get_fps_stream;
+               if (_fd.has_ival_uses_which())
+                       fival.which = V4L2_SUBDEV_FORMAT_ACTIVE;
 
                printf("ioctl: VIDIOC_SUBDEV_G_FRAME_INTERVAL 
(pad=%u,stream=%u)\n", fival.pad, fival.stream);
                if (doioctl(fd, VIDIOC_SUBDEV_G_FRAME_INTERVAL, &fival) == 0) {

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to