Improve MMAP handling

This commit is contained in:
Kamil Trzcinski
2022-04-05 14:37:48 +02:00
parent 5e836612ca
commit 0aa292fb84
3 changed files with 4 additions and 2 deletions

View File

@ -13,10 +13,12 @@ buffer_list_t *buffer_list_open(const char *name, struct device_s *dev, unsigned
switch(type) {
case V4L2_BUF_TYPE_VIDEO_OUTPUT:
buf_list->do_mmap = do_mmap;
buf_list->do_dma = do_mmap;
break;
case V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE:
buf_list->do_mmap = do_mmap;
buf_list->do_dma = do_mmap;
buf_list->do_mplanes = true;
break;