[alsa-devel] Non-cacheable memory to alsa ring buffer
2 Jan
2012
2 Jan
'12
1:09 p.m.
Hi
How can I allocate non-cacheable region for ring buffer?
I have an issue, where my DMA is not fetching right data from Memory. I suspect that caching might be issue here.
I am using the below api to allocate memory:
retval = snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_CONTINUOUS, snd_dma_continuous_data(GFP_KERNEL), RING_MIN_BUFFER, RING_MAX_BUFFER);
Where, RING_MIN_BUFFER = RING_MAX_BUFFER = (8*1024)
Thanks Ramesh
4738
Age (days ago)
4738
Last active (days ago)
0 comments
1 participants
participants (1)
-
Babu, Ramesh