Lines Matching refs:pcm
142 return dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area, in pxa2xx_pcm_mmap()
147 int pxa2xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) in pxa2xx_pcm_preallocate_dma_buffer() argument
149 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in pxa2xx_pcm_preallocate_dma_buffer()
153 buf->dev.dev = pcm->card->dev; in pxa2xx_pcm_preallocate_dma_buffer()
155 buf->area = dma_alloc_wc(pcm->card->dev, size, &buf->addr, GFP_KERNEL); in pxa2xx_pcm_preallocate_dma_buffer()
163 void pxa2xx_pcm_free_dma_buffers(struct snd_pcm *pcm) in pxa2xx_pcm_free_dma_buffers() argument
170 substream = pcm->streams[stream].substream; in pxa2xx_pcm_free_dma_buffers()
176 dma_free_wc(pcm->card->dev, buf->bytes, buf->area, buf->addr); in pxa2xx_pcm_free_dma_buffers()
185 struct snd_pcm *pcm = rtd->pcm; in pxa2xx_soc_pcm_new() local
192 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in pxa2xx_soc_pcm_new()
193 ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, in pxa2xx_soc_pcm_new()
199 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in pxa2xx_soc_pcm_new()
200 ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, in pxa2xx_soc_pcm_new()