ALSA: pcm - Use dma_mmap_coherent() if available
authorTakashi Iwai <tiwai@suse.de>
Thu, 26 Nov 2009 11:40:21 +0000 (12:40 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 26 Nov 2009 14:07:14 +0000 (15:07 +0100)
commit657b1989dacf58e83e7a76bca6d4a91a9f294cf6
tree8503f4609840da79c8438d8ae1f6e4fb3df62346
parent648f4e3e50c4793d9dbf9a09afa193631f76fa26
ALSA: pcm - Use dma_mmap_coherent() if available

Use dma_mmap_coherent() for mmapping the buffers allocated via
dma_alloc_coherent() if available.  Currently, only ARM has this function,
so we do temporarily have an ifdef pcm_native.c.  This should be handled
better globally in future.

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