Lines Matching refs:pcm
2 // imx-pcm-fiq.c -- ALSA Soc Audio Layer
22 #include <sound/pcm.h>
31 #include "imx-pcm.h"
223 ret = dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area,
233 static int imx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream)
235 struct snd_pcm_substream *substream = pcm->streams[stream].substream;
240 buf->dev.dev = pcm->card->dev;
242 buf->area = dma_alloc_wc(pcm->card->dev, size, &buf->addr, GFP_KERNEL);
253 struct snd_pcm *pcm = rtd->pcm;
260 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
261 ret = imx_pcm_preallocate_dma_buffer(pcm,
267 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
268 ret = imx_pcm_preallocate_dma_buffer(pcm,
282 struct snd_pcm *pcm = rtd->pcm;
290 substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
297 substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
310 static void imx_pcm_free(struct snd_pcm *pcm)
317 substream = pcm->streams[stream].substream;
325 dma_free_wc(pcm->card->dev, buf->bytes, buf->area, buf->addr);
331 struct snd_pcm *pcm)
335 imx_pcm_free(pcm);