[alsa-devel] Can I mmap buffer allocated using SNDRV_DMA_TYPE_CONTINUOUS?

Pharaoh . pharaoh137 at gmail.com
Wed Jul 11 14:43:51 CEST 2007


Hi,
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),
                                             128 * 1024, 128 * 1024);

Can I mmap such a dma buffer? I think yes...

-pharaoh.


More information about the Alsa-devel mailing list