v4l2: Split buffer allocation and mapping
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 22 May 2018 08:42:47 +0000 (11:42 +0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 22 May 2018 08:42:47 +0000 (11:42 +0300)
commit117cd47e08db4e31d2f966cb4b22987d3e5d6bb7
tree4fb5396cd3c3d063aec59ef1e9e1066325f33a71
parentab92702a44f8521d5deef3e2ac9f35514bbe7c9a
v4l2: Split buffer allocation and mapping

Not all use cases of V4L2_MEMORY_MMAP require mapping buffers to
userspace. Separate the allocation and mapping to allow usage of
unmapped buffers.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
uvc-gadget.c
v4l2.c
v4l2.h