2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-14 16:44:29 +08:00
linux-next/drivers/media
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
..
common [media] v4l2-common: move v4l2_ctrl_check to cx2341x 2014-11-25 08:25:36 -02:00
dvb-core Merge tag 'v3.18-rc4' into patchwork 2014-11-11 08:37:35 -02:00
dvb-frontends [media] rtl2832: implement option to bypass slave demod TS 2014-11-21 16:03:39 -02:00
firewire [media] fix a warning on avr32 arch 2014-11-03 15:53:15 -02:00
i2c [media] i2c: Make use of media_bus_format enum 2014-11-14 17:52:48 -02:00
mmc
parport [media] pms: Fix a bad usage of the stack 2014-09-26 06:47:55 -03:00
pci [media] vb2-dma-sg: move dma_(un)map_sg here 2014-11-25 09:01:16 -02:00
platform [media] vb2-dma-sg: move dma_(un)map_sg here 2014-11-25 09:01:16 -02:00
radio [media] si4713: add device tree support 2014-11-14 18:08:19 -02:00
rc Merge tag 'v3.18-rc4' into patchwork 2014-11-11 08:37:35 -02:00
tuners [media] r820t: add DVB-C config 2014-11-14 17:28:00 -02:00
usb [media] uvcvideo: Return all buffers to vb2 at stream stop and start failure 2014-11-25 08:42:33 -02:00
v4l2-core [media] vb2-dma-sg: move dma_(un)map_sg here 2014-11-25 09:01:16 -02:00
Kconfig [media] Kconfig: do not select SPI bus on sub-driver auto-select 2014-09-04 12:18:49 -03:00
Makefile
media-device.c [media] media: Use strlcpy instead of custom code 2014-09-21 20:27:08 -03:00
media-devnode.c [media] media-devnode: just return 0 instead of using a var 2014-09-03 17:59:28 -03:00
media-entity.c [media] media: Fix a compiler warning in media_entity_pipeline_start() 2014-11-03 19:09:13 -02:00