]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Protect call to dma_mmap_coherent() by check for HAS_DMA
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 9 Jul 2017 19:31:02 +0000 (21:31 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 10 Jul 2017 14:04:08 +0000 (16:04 +0200)
commitd5bb6072bed20c0fbbb00376210e90f6d5dc3040
treef59bd67757fa4cf6f9099cd340609fc8768ca5f0
parent72cca03e1bff54c20a6558f6500c0f655e4fc9f2
ALSA: pcm: Protect call to dma_mmap_coherent() by check for HAS_DMA

If NO_DMA=y:

    sound/core/pcm_native.o: In function `snd_pcm_lib_default_mmap':
    pcm_native.c:(.text+0x144c): undefined reference to `bad_dma_ops'
    pcm_native.c:(.text+0x1474): undefined reference to `dma_common_mmap'

Add a check for HAS_DMA to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c