libcamera: v4l2_videodevice: remove confusing memory MMAP assignment before QUERYBUF

QUERYBUF doesn't require the memory field to be pre-filled.
Also, V4L2VideoDevice::createBuffer uses dmabuf file descriptors, thus
using V4L2_MEMORY_MMAP makes things confusing, so remove it.

Signed-off-by: Helen Koike <helen.koike@collabora.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Helen Koike 2021-02-03 11:29:55 -03:00 committed by Laurent Pinchart
parent fb9051ff74
commit 5b568b7e41

View file

@ -1255,7 +1255,6 @@ std::unique_ptr<FrameBuffer> V4L2VideoDevice::createBuffer(unsigned int index)
buf.index = index;
buf.type = bufferType_;
buf.memory = V4L2_MEMORY_MMAP;
buf.length = std::size(v4l2Planes);
buf.m.planes = v4l2Planes;