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:
parent
fb9051ff74
commit
5b568b7e41
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue