[alsa-devel] Getting physical address of the DMA buffer

Clemens Ladisch cladisch at fastmail.net
Wed Jun 27 08:38:26 CEST 2007

Pharaoh . wrote:
> I have allocated the DMA buffer using snd_pcm_lib_malloc_pages() and
> it was preallocated as:
> snd_pcm_lib_preallocate_pages_for_all(pcm,
>                                       SNDRV_DMA_TYPE_CONTINUOUS,
>                                       snd_dma_continuous_data
>                                       (GFP_KERNEL),

SNDRV_DMA_TYPE_CONTINUOUS is for a buffer that cannot be accessed
over DMA.

What kind of bus does your hardware use, and how would you
allocate memory for it?


More information about the Alsa-devel mailing list