Skip to contentSkip to conversation

snd_pcm_lib_malloc_pages()

DISCUSSION Timur Tabi 2 participants 2 messages Jun 11, 2007 – Jun 12, 2007

lore
Share & tools
lore

Timur Tabi

author
#0 lore raw

(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.

Signature · 2 lines
Timur Tabi
Linux Kernel Developer @ Freescale
#1 lore raw

At Mon, 11 Jun 2007 18:49:04 -0500,

Quoted 7 lines · Timur Tabi

(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