Skip to contentSkip to conversation

snd_pcm_lib_preallocate_pages_for_all in armlinux

DISCUSSION Takashi Iwai 1 participant 1 message Oct 13, 2006 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 452F53BE.07C8F5.24003

#1 lore raw

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_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