Better configure sinks

This commit is contained in:
Kamil Trzcinski
2022-04-05 14:02:14 +02:00
parent f4e133b191
commit 582f08ba16
5 changed files with 13 additions and 3 deletions

View File

@ -62,7 +62,12 @@ int device_open_buffer_list(device_t *dev, bool do_capture, unsigned width, unsi
if (do_capture) {
buf_list = &dev->capture_list;
do_mmap = true;
if (dev->buf_sink) {
do_mmap = true;
} else {
do_mmap = dev->allow_dma;
}
if (dev->capture_list) {
E_LOG_ERROR(dev, "The capture_list is already created.");

View File

@ -8,6 +8,7 @@ typedef struct device_s {
int fd;
struct v4l2_capability v4l2_cap;
bool allow_dma;
bool buf_sink;
struct buffer_list_s *capture_list;
struct buffer_list_s *output_list;