pipewire/spa/plugins/v4l2
Wim Taymans 858d4e9e1c buffer: add MAPPABLE data flag
Add a MAPPABLE data flag that hints that the fd in the data is mappable
with a simple mmap/munmap. Normally, DmaBuf is not mappable like that
unless explicitly indicated with this flag.

Set the MAPPABLE flag on the DmaBuf from v4l2 and libcamera fd.

When asked, mmap the buffer memory in all cases when the MAPPABLE
flag is set.

This solves the case where v4l2 has exported DmaBuf and is streaming to
node A and then node B links but doesn't get automatically mmaped
memory.

Fixes #3840
2024-02-08 18:09:08 +01:00
..
meson.build v4l2: include config.h to check for udev 2024-02-06 22:41:54 +01:00
v4l2-device.c spa: v4l2: get the device number of the v4l2 device 2023-07-19 09:21:03 +00:00
v4l2-source.c v4l2: probe EXPBUF and disable alloc_buffer flag 2024-01-29 16:38:52 +01:00
v4l2-udev.c spa: v4l2: use a separate watch for each device 2023-09-07 10:17:29 +02:00
v4l2-utils.c buffer: add MAPPABLE data flag 2024-02-08 18:09:08 +01:00
v4l2.c v4l2: include config.h to check for udev 2024-02-06 22:41:54 +01:00
v4l2.h spa: remove unnecessary indirection for some spa_log_topics 2023-10-06 13:08:24 +00:00