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 <hverkuil-ci...@xs4all.nl> 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 <hverkuil-ci...@xs4all.nl> 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