]> git.baikalelectronics.ru Git - kernel.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)
commit63045a4fdc5f912725ff180c9e7d044e5bed160a
treeb4876e8475f887c32880588e20d56296923efee1
parent58063286a31752c03e9f58849d29e02da75f5acc
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