linux/drivers/media/pci/cx88
Marek Szyprowski f95fc014e0 media: pci: fix common ALSA DMA-mapping related codes
The Documentation/DMA-API-HOWTO.txt states that dma_map_sg returns the
numer of the created entries in the DMA address space. However the
subsequent calls to dma_sync_sg_for_{device,cpu} and dma_unmap_sg must be
called with the original number of entries passed to dma_map_sg. The
sg_table->nents in turn holds the result of the dma_map_sg call as stated
in include/linux/scatterlist.h. Adapt the code to obey those rules.

While touching this code, update it to use the modern DMA_FROM_DEVICE
definitions.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-09-26 10:34:44 +02:00
..
cx88-alsa.c media: pci: fix common ALSA DMA-mapping related codes 2020-09-26 10:34:44 +02:00
cx88-blackbird.c
cx88-cards.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
cx88-core.c media: pci: cx88: convert to use i2c_new_client_device() 2020-04-14 11:28:55 +02:00
cx88-dsp.c
cx88-dvb.c
cx88-i2c.c
cx88-input.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
cx88-mpeg.c
cx88-reg.h
cx88-tvaudio.c
cx88-vbi.c
cx88-video.c media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
cx88-vp3054-i2c.c
cx88-vp3054-i2c.h
cx88.h
Kconfig
Makefile