ALSA: pcm: Simplify check for dma_mmap_coherent() availability
authorTakashi Iwai <tiwai@suse.de>
Mon, 10 Jul 2017 14:05:58 +0000 (16:05 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 10 Jul 2017 14:05:58 +0000 (16:05 +0200)
commit85dc0f8554fa024b02eb50dcca71fa9881a45ea5
tree4e6221b1e9c59395a093f320f2cf2f2022efd122
parentabe594c2cf55b46d4feb61c01fe9063afff2e50c
ALSA: pcm: Simplify check for dma_mmap_coherent() availability

We check the availability of dma_mmap_coherent() in hw_support_mmap()
but with an ugly ifdef of lots of arch-checks.  Now we have a nice
CONFIG_ARCH_NO_COHERENT_DMA_MMAP kconfig, and this can be used
together with CONFIG_HAS_DMA check for a cleaner and more
comprehensive check.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c