Lines Matching refs:pcm
50 static int atmel_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, in atmel_pcm_preallocate_dma_buffer() argument
53 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in atmel_pcm_preallocate_dma_buffer()
58 buf->dev.dev = pcm->card->dev; in atmel_pcm_preallocate_dma_buffer()
60 buf->area = dma_alloc_coherent(pcm->card->dev, size, in atmel_pcm_preallocate_dma_buffer()
83 struct snd_pcm *pcm = rtd->pcm; in atmel_pcm_new() local
90 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in atmel_pcm_new()
92 ret = atmel_pcm_preallocate_dma_buffer(pcm, in atmel_pcm_new()
98 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in atmel_pcm_new()
100 ret = atmel_pcm_preallocate_dma_buffer(pcm, in atmel_pcm_new()
109 static void atmel_pcm_free(struct snd_pcm *pcm) in atmel_pcm_free() argument
116 substream = pcm->streams[stream].substream; in atmel_pcm_free()
123 dma_free_coherent(pcm->card->dev, buf->bytes, in atmel_pcm_free()