From: Takashi Iwai Subject: Re: snd_pcm_lib_malloc_pages() Date: Tue, 12 Jun 2007 14:25:08 +0200 Message-ID: References: <466DDF70.9000508@freescale.com> 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 48AE32458B for ; Tue, 12 Jun 2007 14:25:13 +0200 (CEST) In-Reply-To: <466DDF70.9000508@freescale.com> 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: Timur Tabi Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Mon, 11 Jun 2007 18:49:04 -0500, Timur Tabi wrote: > > (resending since I haven't gotten a reply yet) > > Liam > > Why do none of the ASoC drivers use snd_pcm_lib_malloc_pages()? They all allocate their > DMA buffers by hand. Maybe because the common ALSA allocator doesn't do always good for ARM. For example, it doesn't provide a way to allocate via dma_alloc_writecombine(). Since long time ago, I'm inclined to get rid of ALSA common allocator and replace with normal dma_alloc_* in each driver. But, I haven't finished it because of lack of necessary functions like dma_mmap_coherent() for all architectures... Takashi