From: Takashi Iwai Subject: Re: snd_pcm_lib_preallocate_pages_for_all in armlinux Date: Fri, 13 Oct 2006 12:36:05 +0200 Message-ID: References: <452F53BE.07C8F5.24003> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <452F53BE.07C8F5.24003> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: littertiger Cc: alsa-devel List-Id: alsa-devel@alsa-project.org At Fri, 13 Oct 2006 16:54:34 +0800, littertiger wrote: > > Hi,all > > In armlinux, there's no isa,pci... > What should I set type and data to in the following function: > int snd_pcm_lib_preallocate_pages_for_all(snd_pcm_t *pcm, > int type, void *data, > size_t size, size_t max) In that case, avoid the standard preallocation method and use dma_alloc_coherent() and dma_free_coherent() in hw_params and hw_free callback. Or, you can preallocate by yourself, as found in arm/* drivers and soc/* drivers on HG tree. Note that the mmap can (should) be done via dma_mmap_coherent() on such an architecture, too. Takashi ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642