summaryrefslogtreecommitdiff
path: root/sound/core/vmaster.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2018-03-26 17:10:21 +0300
committerTakashi Iwai <tiwai@suse.de>2018-03-26 17:33:50 +0300
commit9066ae7ff5d89c0b5daa271e2d573540097a94fa (patch)
tree31389db8da156bab6a547407d6b9349db6fc6022 /sound/core/vmaster.c
parentb00214865d65100163574ba250008f182cf90869 (diff)
downloadlinux-9066ae7ff5d89c0b5daa271e2d573540097a94fa.tar.xz
ALSA: pcm: Use dma_bytes as size parameter in dma_mmap_coherent()
When trying to use the driver (e.g. aplay *.wav), the 4MiB DMA buffer will get mmapp'ed in 16KiB chunks. But this fails with the 2nd 16KiB area, as the page offset is outside of the VMA range (size), which is currently used as size parameter in snd_pcm_lib_default_mmap(). By using the DMA buffer size (dma_bytes) instead, the complete DMA buffer can be mmapp'ed and the issue is fixed. This issue was detected on an ARM platform (TI AM57xx) using the RME HDSP MADI PCIe soundcard. Fixes: 657b1989dacf ("ALSA: pcm - Use dma_mmap_coherent() if available") Signed-off-by: Stefan Roese <sr@denx.de> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/vmaster.c')
0 files changed, 0 insertions, 0 deletions