~libv4l/libv4l/dev

Viewing all changes in revision 3946.

  • Committer: Hans Verkuil
  • Author(s): Philipp Zabel
  • Date: 2018-12-10 09:51:10 UTC
  • Revision ID: git-v1:6300b376cb3ecce714ab604392f1468f3448d282
v4l2-compliance: test orphaned buffer support

Test that V4L2_BUF_CAP_SUPPORTS_ORPHANED_BUFS is reported equally for
both MMAP and DMABUF memory types. If supported, try to orphan buffers
by calling reqbufs(0) before unmapping or closing DMABUF fds.

Also close exported DMABUF fds and free buffers in testDmaBuf if
orphaned buffers are not supported.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil-cisco: rebase, add missing m2m_q cleanup in testDmaBuf()]

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: