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