Discussion:
[PATCH 0/5] Contiguous DMA buffer support for the Virtual Video Test Driver
(too old to reply)
Philipp Zabel
2014-10-22 10:03:36 UTC
Permalink
Raw Message
Hi,

to use vivid as test source for a hardware pipeline with elements
that can only handle contiguous DMA buffers, I'd like to add support
for the videobuf2-dma-contig allocator and enable VIDIOC_EXPBUF in
vivid.
Since DMA memory should be associated with a struct device, I have
added a platform device to vivid.
There is a new 'allocators' module parameter array that selects the
dma-contig allocator for an instance when the value is set to 1:

modprobe vivid n_devs=2 allocators=1,1

regards
Philipp

Philipp Zabel (5):
[media] vivid: select CONFIG_FB_CFB_FILLRECT/COPYAREA/IMAGEBLIT
[media] vivid: remove unused videobuf2-vmalloc headers
[media] vivid: convert to platform device
[media] vivid: add support for contiguous DMA buffers
[media] vivid: enable VIDIOC_EXPBUF

drivers/media/platform/vivid/Kconfig | 4 ++
drivers/media/platform/vivid/vivid-core.c | 69 +++++++++++++++++++++---
drivers/media/platform/vivid/vivid-core.h | 1 +
drivers/media/platform/vivid/vivid-kthread-cap.c | 1 -
drivers/media/platform/vivid/vivid-kthread-out.c | 1 -
drivers/media/platform/vivid/vivid-osd.c | 1 -
drivers/media/platform/vivid/vivid-vid-cap.c | 4 +-
drivers/media/platform/vivid/vivid-vid-out.c | 5 +-
8 files changed, 73 insertions(+), 13 deletions(-)
--
2.1.1
Loading...