Lines Matching full: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, in snd_imx_pcm_mmap()
233 static int imx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) in imx_pcm_preallocate_dma_buffer() argument
235 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in imx_pcm_preallocate_dma_buffer()
240 buf->dev.dev = pcm->card->dev; in imx_pcm_preallocate_dma_buffer()
242 buf->area = dma_alloc_wc(pcm->card->dev, size, &buf->addr, GFP_KERNEL); in imx_pcm_preallocate_dma_buffer()
253 struct snd_pcm *pcm = rtd->pcm; in imx_pcm_new() local
260 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in imx_pcm_new()
261 ret = imx_pcm_preallocate_dma_buffer(pcm, in imx_pcm_new()
267 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in imx_pcm_new()
268 ret = imx_pcm_preallocate_dma_buffer(pcm, in imx_pcm_new()
282 struct snd_pcm *pcm = rtd->pcm; in snd_imx_pcm_new() local
290 substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in snd_imx_pcm_new()
297 substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in snd_imx_pcm_new()
310 static void imx_pcm_free(struct snd_pcm *pcm) in imx_pcm_free() argument
317 substream = pcm->streams[stream].substream; in imx_pcm_free()
325 dma_free_wc(pcm->card->dev, buf->bytes, buf->area, buf->addr); in imx_pcm_free()
331 struct snd_pcm *pcm) in snd_imx_pcm_free() argument
335 imx_pcm_free(pcm); in snd_imx_pcm_free()