v4l2allocator: Workaround driver that don't support REQBUFS(0)
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 29 Aug 2014 21:09:30 +0000 (17:09 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Tue, 9 Sep 2014 22:45:34 +0000 (18:45 -0400)
commit5c933fa781ef61ac5b7e45fa855d0f916fd5957b
treeacbfafdcbdc48a286577e67ec9afbc3ad9aea916
parent743c6a447592e841375daca5bd08f71d6ab209bb
v4l2allocator: Workaround driver that don't support REQBUFS(0)

There is still around 18 drivers not yet ported to videobuf2. These driver
don't support freeing buffetrs through REQBUFS(0) hence for these the
memory type probing fails. In order to gain back our previous behaviour in
presence of these, we implement a workaround that assuming MMAP is
supported. Note that an allocator is only created for device with
STREAMING support in the device capabilities. In such case one of MMAP,
USERPTR and DMABUF is required. Though DMABUF came afterward, so is
not an option and in practice none of these drivers will only do USERPTR.

https://bugzilla.gnome.org/show_bug.cgi?id=735660

Also-by: Hans de Goede <hdegoede@redhat.com>
sys/v4l2/gstv4l2allocator.c