snd_pcm_lib_preallocate_pages_for_all in armlinux
A message that is not in the archive (sent off-list or not yet received): 452F53BE.07C8F5.24003
At Fri, 13 Oct 2006 16:54:34 +0800,
Quoted 8 lines · littertiger
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_tsize,size_tmax)
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