[Top] [All Lists]

Re: ALSA on MIPS platform

To: Ralf Baechle <>
Subject: Re: ALSA on MIPS platform
From: Songmao Tian <>
Date: Thu, 09 Aug 2007 09:24:45 +0800
Cc: Atsushi Nemoto <>,,,,,
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <> <>
User-agent: Icedove (X11/20061116)
Ralf Baechle wrote:
On Tue, Aug 07, 2007 at 11:01:57PM +0900, Atsushi Nemoto wrote:

On Tue, 7 Aug 2007 10:18:04 +0400, "Dajie Tan" <> wrote:
 static inline unsigned long virt_to_phys(volatile const void *address)
-       return (unsigned long)address - PAGE_OFFSET + PHYS_OFFSET;
+       return ((unsigned long)address & 0x1fffffff) + PHYS_OFFSET;
This makes virt_to_phys() a bit slower, and more importantly, breaks
64-bit kernel.

It's ALSA that is doing funny things here so there is no point in fixing
the arch code to work for ALSA.


arm has made a dma_mmap_coherent, but I don't quite understand the code and I am not sure the situation is the same.


<Prev in Thread] Current Thread [Next in Thread>