snd_pcm_lib_malloc_pages — allocate the DMA buffer
int snd_pcm_lib_malloc_pages (
)
substream
the substream to allocate the DMA buffer to
size
the requested buffer size in bytes
Allocates the DMA buffer on the BUS type given earlier to snd_pcm_lib_preallocate_xxx_pages.
snd_pcm_lib_preallocate_xxx_pages
1 if the buffer is changed, 0 if not changed, or a negative code on failure.