7 #include <linux/slab.h>
8 #include <linux/module.h>
29 .period_bytes_min = 32,
30 .period_bytes_max = 8192 - 32,
43 size_t period = params_period_bytes(params);
47 snd_pcm_set_runtime_buffer(substream, &substream->
dma_buffer);
55 dma_desc->
ddadr = next_desc_phys;
57 dma_desc->
dsadr = dma_buff_phys;
61 dma_desc->
dtadr = dma_buff_phys;
68 }
while (totsize -= period);
82 snd_pcm_set_runtime_buffer(substream,
NULL);
140 if (!prtd || !prtd->
params)
168 rtd->
params->name, dma_ch, dcsr);
180 runtime->
hw = pxa2xx_pcm_hardware;
239 return dma_mmap_writecombine(substream->
pcm->card->dev, vma,
269 for (stream = 0; stream < 2; stream++) {
270 substream = pcm->
streams[stream].substream;