Lines Matching refs:pcm
220 ret = dma_mmap_writecombine(substream->pcm->card->dev, vma, in snd_imx_pcm_mmap()
241 static int imx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream) in imx_pcm_preallocate_dma_buffer() argument
243 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in imx_pcm_preallocate_dma_buffer()
248 buf->dev.dev = pcm->card->dev; in imx_pcm_preallocate_dma_buffer()
250 buf->area = dma_alloc_writecombine(pcm->card->dev, size, in imx_pcm_preallocate_dma_buffer()
262 struct snd_pcm *pcm = rtd->pcm; in imx_pcm_new() local
269 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in imx_pcm_new()
270 ret = imx_pcm_preallocate_dma_buffer(pcm, in imx_pcm_new()
276 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in imx_pcm_new()
277 ret = imx_pcm_preallocate_dma_buffer(pcm, in imx_pcm_new()
290 struct snd_pcm *pcm = rtd->pcm; in imx_pcm_fiq_new() local
298 substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in imx_pcm_fiq_new()
305 substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in imx_pcm_fiq_new()
318 static void imx_pcm_free(struct snd_pcm *pcm) in imx_pcm_free() argument
325 substream = pcm->streams[stream].substream; in imx_pcm_free()
333 dma_free_writecombine(pcm->card->dev, buf->bytes, in imx_pcm_free()
339 static void imx_pcm_fiq_free(struct snd_pcm *pcm) in imx_pcm_fiq_free() argument
343 imx_pcm_free(pcm); in imx_pcm_fiq_free()