snd_dma_alloc_pages — allocate the buffer area according to the given type
int snd_dma_alloc_pages
(int type, struct device * device, size_t size, struct snd_dma_buffer * dmab);
the DMA buffer type
the device pointer
the buffer size to allocate
buffer allocation record to store the allocated data
Calls the memory-allocator function for the corresponding buffer type.
Returns zero if the buffer with the given size is allocated successfuly, other a negative value at error.