]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm - Use pgprot_noncached() for MIPS non-coherent archs
authorTakashi Iwai <tiwai@suse.de>
Wed, 12 May 2010 08:32:42 +0000 (10:32 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 12 May 2010 08:32:42 +0000 (10:32 +0200)
commit73ab69c7e52c180445da25a800220d52f66a9955
treec2cb92b7f898a68b8cbb3adb8deee265b1f06684
parent4b1cc39b7492c6b45a8ff2f34a8c89c03b73f0cb
ALSA: pcm - Use pgprot_noncached() for MIPS non-coherent archs

MIPS non-coherent archs need the noncached pgprot in mmap of PCM buffers.
But, since the coherency needs to be checked dynamically via
plat_device_is_coherent(), we need an ugly check dependent on MIPS
in ALSA core code.

This should be cleaned up in MIPS arch side (e.g. creating
dma_mmap_coherent()) in near future.

Tested-by: Wu Zhangjin <wuzhangjin@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c