diff options
| author | Marek Szyprowski <[email protected]> | 2020-09-04 15:17:10 +0200 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2020-09-26 10:34:44 +0200 |
| commit | f95fc014e036c06203c0c5d75045e4ac890ef335 (patch) | |
| tree | 75019c755330afaabc941f582b7ce26fd733209b /tools/perf/scripts/python/bin | |
| parent | ab11fae0be7a7bcb7aec75c5b081d37ed0a0ed08 (diff) | |
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 <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions