From: Takashi Iwai Date: Thu, 26 Nov 2009 11:50:01 +0000 (+0100) Subject: ALSA: pcm - fix page conversion on non-coherent MIPS arch X-Git-Tag: v2.6.33-rc1~390^2~3^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66b6cfacfc5aa2fda37b0d40cd54931ca5ef8cd7;p=pandora-kernel.git ALSA: pcm - fix page conversion on non-coherent MIPS arch The non-coherent MIPS arch doesn't give the correct address by a simple virt_to_page() for pages allocated via dma_alloc_coherent(). Original patch by Wu Zhangjin . [Ralf mentioned: "The origins of this patch go back far further. The oldest patch I could find which is a superset of this was written by Atsushi Nemoto and various incarnations of it have been sumitted to and reject by me a number of times through the years."] A proper check of the buffer allocation type was added to avoid the wrong conversion. Note that this doesn't fix perfectly: the pages should be marked with proper pgprot value. This will be done in a future implementation like the conversion to dma_mmap_coherent(). Acked-by: Ralf Baechle Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed