linux_dsm_epyc7002/drivers/media/pci/saa7134
Hans Verkuil d790b7eda9 [media] vb2-dma-sg: move dma_(un)map_sg here
This moves dma_(un)map_sg to the get_userptr/put_userptr and alloc/put
memops of videobuf2-dma-sg.c and adds dma_sync_sg_for_device/cpu to the
prepare/finish memops.

Now that vb2-dma-sg will sync the buffers for you in the prepare/finish
memops we can drop that from the drivers that use dma-sg.

For the solo6x10 driver that was a bit more involved because it needs to
copy JPEG or MPEG headers to the buffer before returning it to userspace,
and that cannot be done in the old place since the buffer there is still
setup for DMA access, not for CPU access. However, the buf_finish
op is the ideal place to do this. By the time buf_finish is called
the buffer is available for CPU access, so copying to the buffer is fine.

[mchehab@osg.samsung.com: Fix a compilation breakage:
 drivers/media/v4l2-core/videobuf2-dma-sg.c:150:19: error: 'struct vb2_dma_sg_buf' has no member named 'dma_sgt']

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Pawel Osciak <pawel@osciak.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2014-11-25 09:01:16 -02:00
..
Kconfig [media] saa7134: Fix compilation breakage when go7007 is not selected 2014-09-23 16:13:47 -03:00
Makefile [media] saa7134: Fix compilation breakage when go7007 is not selected 2014-09-23 16:13:47 -03:00
saa7134-alsa.c saa7134-alsa: include vmalloc.h 2014-05-13 23:05:15 -03:00
saa7134-cards.c [media] saa7134: add saa7134-go7007 2014-09-23 16:13:46 -03:00
saa7134-core.c [media] vb2-dma-sg: add allocation context to dma-sg 2014-11-25 08:55:32 -02:00
saa7134-dvb.c [media] saa7134: convert to vb2 2014-05-23 14:16:20 -03:00
saa7134-empress.c [media] vb2-dma-sg: move dma_(un)map_sg here 2014-11-25 09:01:16 -02:00
saa7134-go7007.c [media] saa7134: Remove unused status var 2014-09-23 16:13:48 -03:00
saa7134-i2c.c [media] saa7134: coding style cleanups 2014-05-13 13:25:28 -03:00
saa7134-input.c [media] media: saa7134: remove if based on uninitialized variable 2014-07-26 12:30:41 -03:00
saa7134-reg.h [media] saa7134: add vidioc_querystd 2014-05-23 12:56:01 -03:00
saa7134-ts.c [media] vb2-dma-sg: move dma_(un)map_sg here 2014-11-25 09:01:16 -02:00
saa7134-tvaudio.c [media] saa7134: coding style cleanups 2014-05-13 13:25:28 -03:00
saa7134-vbi.c [media] vb2-dma-sg: move dma_(un)map_sg here 2014-11-25 09:01:16 -02:00
saa7134-video.c [media] vb2-dma-sg: move dma_(un)map_sg here 2014-11-25 09:01:16 -02:00
saa7134.h [media] vb2-dma-sg: move dma_(un)map_sg here 2014-11-25 09:01:16 -02:00