14 #include <linux/module.h>
25 ret = dma_mmap_writecombine(substream->
pcm->card->dev, vma,
28 pr_debug(
"%s: ret: %d %p 0x%08x 0x%08x\n", __func__, ret,
36 static int imx_pcm_preallocate_dma_buffer(
struct snd_pcm *pcm,
int stream)
62 if (!card->
dev->dma_mask)
63 card->
dev->dma_mask = &imx_pcm_dmamask;
64 if (!card->
dev->coherent_dma_mask)
67 ret = imx_pcm_preallocate_dma_buffer(pcm,
74 ret = imx_pcm_preallocate_dma_buffer(pcm,
91 for (stream = 0; stream < 2; stream++) {
92 substream = pcm->
streams[stream].substream;