linux/drivers/media/pci
Ezequiel Garcia f8afaa8dbc [media] tw686x: Introduce an interface to support multiple DMA modes
Let's set the corner stone to support all the DMA modes
available on this device.

For stability reasons, the driver is currently setting DMA frame
mode, and using single DMA buffers to get the P and B buffers.
Each frame is then memcpy'ed into the user buffer.

However, other platforms might be interested in avoiding this
memcpy, or in taking advantage of the chip's DMA scatter-gather
capabilities.

To achieve this, this commit introduces a "dma_mode" module parameter,
and a tw686x_dma_ops struct. This will allow to define functions to
alloc/free DMA buffers, and to return the frames to userspace.

The memcpy-based method described above is named as dma_mode="memcpy".
Current alloc/free functions are renamed as tw686x_memcpy_xxx,
and are now used through a memcpy_dma_ops.

Tested-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-06-28 07:47:40 -03:00
..
b2c2
bt8xx
cobalt [media] cobalt: add MTD dependency 2016-04-13 17:08:51 -03:00
cx18 cx18: use macros instead of static const vars 2016-06-24 08:50:24 -03:00
cx88
cx23885 [media] cx23885: uninitialized variable in cx23885_av_work_handler() 2016-04-13 17:10:32 -03:00
cx25821 cx25821-alsa: shutup a Gcc 6.1 warning 2016-06-24 09:46:54 -03:00
ddbridge
dm1105
dt3155
ivtv [media] ivtv/cx18: use the new mask variants of the v4l2_device_call_* defines 2016-04-20 16:09:31 -03:00
mantis
meye
netup_unidvb [media] Change frontend allocation strategy for NetUP Universal DVB cards 2016-06-07 12:16:37 -03:00
ngene
pluto2
pt1
pt3
saa7134 [media] saa7134: fix warning with !MEDIA_CONTROLLER 2016-03-03 14:12:46 -03:00
saa7146
saa7164
smipcie [media] smipcie: add RC map into card configuration options 2016-05-07 10:27:18 -03:00
solo6x10
sta2x11 [media] sta2x11: remove unused vars 2016-04-25 08:13:43 -03:00
ttpci
tw68
tw686x [media] tw686x: Introduce an interface to support multiple DMA modes 2016-06-28 07:47:40 -03:00
zoran zr36016: remove some unused tables 2016-06-24 12:02:11 -03:00
Kconfig [media] media: Support Intersil/Techwell TW686x-based video capture cards 2016-04-20 13:37:32 -03:00
Makefile [media] media: Support Intersil/Techwell TW686x-based video capture cards 2016-04-20 13:37:32 -03:00