[git:v4l-utils/master] v4l2-ctl: report max_num_buffers

2024-01-16 Thread Hans Verkuil
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: report max_num_buffers
Author:  Hans Verkuil 
Date:Tue Jan 16 11:34:34 2024 +0100

stream_buf_caps() didn't report the max_num_buffers value, just the
corresponding capability flag. Add this.

Signed-off-by: Hans Verkuil 

 utils/v4l2-ctl/v4l2-ctl-streaming.cpp | 9 -
 1 file changed, 8 insertions(+), 1 deletion(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=d18fdf3fc8dd05023c019adc1a5ea386e221c354
diff --git a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp 
b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
index 63522e87a3e4..13bc057d857c 100644
--- a/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl-streaming.cpp
@@ -667,9 +667,16 @@ static void stream_buf_caps(cv4l_fd &fd, unsigned buftype)
cbufs.format.type = buftype;
cbufs.memory = V4L2_MEMORY_MMAP;
if (!v4l_ioctl(fd.g_v4l_fd(), VIDIOC_CREATE_BUFS, &cbufs)) {
-   printf("Streaming I/O Capabilities for %s: %s\n",
+   bool has_max_num_buffers =
+   cbufs.capabilities & 
V4L2_BUF_CAP_SUPPORTS_MAX_NUM_BUFFERS;
+
+   cbufs.capabilities &= ~V4L2_BUF_CAP_SUPPORTS_MAX_NUM_BUFFERS;
+   printf("Streaming I/O Capabilities for %s: %s",
   buftype2s(buftype).c_str(),
   bufcap2s(cbufs.capabilities).c_str());
+   if (has_max_num_buffers)
+   printf(", max-num-buffers=%u", cbufs.max_num_buffers);
+   printf("\n");
return;
}
v4l2_requestbuffers rbufs;
___
linuxtv-commits mailing list -- linuxtv-commits@linuxtv.org
To unsubscribe send an email to linuxtv-commits-le...@linuxtv.org
%(web_page_url)slistinfo/%(_internal_name)s


[git:v4l-utils/master] meson.build: dep_systemd was not set in one case

2024-01-16 Thread Hans Verkuil
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: meson.build: dep_systemd was not set in one case
Author:  Hans Verkuil 
Date:Tue Jan 16 14:26:41 2024 +0100

If the systemdsystemunitdir option was set, then dep_systemd
was never set, causing meson to fail. Just always set this.

Signed-off-by: Hans Verkuil 

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=daab1df7a7e1b443a0c56e6a8b9f71fda2d037d3
diff --git a/meson.build b/meson.build
index 3196d9a79f0a..3529f6d2f91a 100644
--- a/meson.build
+++ b/meson.build
@@ -273,9 +273,9 @@ if dep_jpeg.found()
 dep_jpeg_priv_libs = '-ljpeg'
 endif
 
+dep_systemd = dependency('systemd', required : false)
 systemd_systemdir = get_option('systemdsystemunitdir')
 if systemd_systemdir == ''
-dep_systemd = dependency('systemd', required : false)
 if dep_systemd.found()
 systemd_systemdir = dep_systemd.get_variable(pkgconfig : 
'systemdsystemunitdir')
 endif
___
linuxtv-commits mailing list -- linuxtv-commits@linuxtv.org
To unsubscribe send an email to linuxtv-commits-le...@linuxtv.org
%(web_page_url)slistinfo/%(_internal_name)s