]> asedeno.scripts.mit.edu Git - linux.git/commit
ALSA: pcm: use dma_can_mmap() to check if a device supports dma_mmap_*
authorChristoph Hellwig <hch@lst.de>
Sat, 3 Aug 2019 10:31:59 +0000 (13:31 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 4 Sep 2019 09:13:18 +0000 (11:13 +0200)
commit425da159707b271dc865d7e167ac104a0e60e4af
treeb4876e8475f887c32880588e20d56296923efee1
parente29ccc188f3dae1cb66f59e10e01e0f150642a54
ALSA: pcm: use dma_can_mmap() to check if a device supports dma_mmap_*

Replace the local hack with the dma_can_mmap helper to check if
a given device supports mapping DMA allocations to userspace.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c