Lines Matching refs:pcm
10 #include <sound/pcm.h>
138 return dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area,
143 int pxa2xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream)
145 struct snd_pcm_substream *substream = pcm->streams[stream].substream;
149 buf->dev.dev = pcm->card->dev;
151 buf->area = dma_alloc_wc(pcm->card->dev, size, &buf->addr, GFP_KERNEL);
159 void pxa2xx_pcm_free_dma_buffers(struct snd_pcm *pcm)
166 substream = pcm->streams[stream].substream;
172 dma_free_wc(pcm->card->dev, buf->bytes, buf->area, buf->addr);
179 struct snd_pcm *pcm)
181 pxa2xx_pcm_free_dma_buffers(pcm);
189 struct snd_pcm *pcm = rtd->pcm;
196 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
197 ret = pxa2xx_pcm_preallocate_dma_buffer(pcm,
203 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
204 ret = pxa2xx_pcm_preallocate_dma_buffer(pcm,