Skip to content

v4l2-compliance: Add tests for REMOVE_BUFS

Benjamin Gaignard linux-media 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest2 patches 0 repliesNew
  2. v82 patches 3 repliesSuperseded
  3. v72 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v64 patches0 repliesSuperseded
v54 patches2 repliesSuperseded
v44 patches1 replySuperseded

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2v4l2-utils: Add VIDIOC_REMOVE_BUFS ioctlinclude/linux/videodev2.h+16 -00 replies
2/2v4l2-compliance: Add a test for REMOVE_BUFS ioctlutils/common/cv4l-helpers.h utils/common/v4l-helpers.h utils/v4l2-compliance/v4l2-compliance.cpp +2 more+146 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v9 yet.

Read the v9 thread

Cover letter [PATCH v9 0/2] v4l2-compliance: Add tests for REMOVE_BUFS

This series add tests for this new field and VIDIOC_REMOVE_BUFS ioctl.

version 9:
- Add tests to check return values when count = 0.
- Add tests to check return values when attempt to remove again buffers.
- Call fail_on_test(q.reqbufs(node, 0)) at the end of the test.
- Do not print WARN if REMOVE_BUFS ioctl isn't supported
- Stop testing if CREATE_BUFS is supported.

version 8:
- Rename structures, function and variables to use 'remove' instead of 'delete.

version 7:
- Remove "v4l2-compliance: Test queue maximum buffers allocation" patches because they have been merged.
- Remove V4L2_BUF_CAP_SUPPORTS_DELETE_BUFS to be aligned with the v18 of the kernel patches
- v4l_queue_querybufs() take care of a range of buffers.

Benjamin Gaignard (2):
v4l2-utils: Add VIDIOC_REMOVE_BUFS ioctl
v4l2-compliance: Add a test for REMOVE_BUFS ioctl

 include/linux/videodev2.h                   |  16 +++
 utils/common/cv4l-helpers.h                 |   4 +
 utils/common/v4l-helpers.h                  |  27 ++++-
 utils/v4l2-compliance/v4l2-compliance.cpp   |   1 +
 utils/v4l2-compliance/v4l2-compliance.h     |   1 +
 utils/v4l2-compliance/v4l2-test-buffers.cpp | 118 ++++++++++++++++++++
 6 files changed, 162 insertions(+), 5 deletions(-)
Signature · 1 line
2.40.1