From: Takashi Iwai Subject: Re: [PATCH 0/5] PCM mmap (temporary) fixes for non-coherent architectures Date: Thu, 14 Jan 2010 08:54:08 +0100 Message-ID: References: <1259248388-20095-1-git-send-email-tiwai@suse.de> <20100101193130.GA21510@rhlx01.hs-esslingen.de> <20100114074638.GA12266@rhlx01.hs-esslingen.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id BC81B24368 for ; Thu, 14 Jan 2010 08:54:11 +0100 (CET) In-Reply-To: <20100114074638.GA12266@rhlx01.hs-esslingen.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Andreas Mohr Cc: linux-mips@linux-mips.org, alsa-devel@alsa-project.org, Thomas Bogendoerfer , Becky Bruce , Wu Zhangjin , Benjamin Herrenschmidt , Ralf Baechle , Kumar Gala List-Id: alsa-devel@alsa-project.org At Thu, 14 Jan 2010 08:46:38 +0100, Andreas Mohr wrote: > > On Wed, Jan 13, 2010 at 10:07:32AM +0100, Takashi Iwai wrote: > > > As I mentioned in the previous followup, if your device is a > > > USB-audio, the patch doesn't help because it's for devices with > > > buffers using dma_alloc_coherent(). For USB-audio, it uses vmalloc > > > for an intermediate buffer. Maybe this should be changed to dma_*() > > > stuff for such architectures. > > > > A quick patch below (totally untested!) might do that. > > It's passing the device struct blindly, so not sure whether this would > > actually work for all dma_alloc_coherent(). > > Thanks a lot, tested, but AFAICS there isn't much of a change unfortunately > (log below). Of course, not for the crash. The patch was for improving the sound quality (if any). Takashi