Lines Matching defs:pcm
294 static int kirkwood_dma_preallocate_dma_buffer(struct snd_pcm *pcm,
297 struct snd_pcm_substream *substream = pcm->streams[stream].substream;
302 buf->dev.dev = pcm->card->dev;
303 buf->area = dma_alloc_coherent(pcm->card->dev, size,
314 struct snd_soc_dai *dai, struct snd_pcm *pcm)
324 ret = kirkwood_dma_preallocate_dma_buffer(pcm,
331 ret = kirkwood_dma_preallocate_dma_buffer(pcm,
340 static void kirkwood_dma_free_dma_buffers(struct snd_pcm *pcm)
347 substream = pcm->streams[stream].substream;
354 dma_free_coherent(pcm->card->dev, buf->bytes,