Lines Matching defs:pcm
247 static int kirkwood_dma_preallocate_dma_buffer(struct snd_pcm *pcm,
250 struct snd_pcm_substream *substream = pcm->streams[stream].substream;
255 buf->dev.dev = pcm->card->dev;
256 buf->area = dma_alloc_coherent(pcm->card->dev, size,
270 struct snd_pcm *pcm = rtd->pcm;
277 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
278 ret = kirkwood_dma_preallocate_dma_buffer(pcm,
284 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
285 ret = kirkwood_dma_preallocate_dma_buffer(pcm,
295 struct snd_pcm *pcm)
302 substream = pcm->streams[stream].substream;
309 dma_free_coherent(pcm->card->dev, buf->bytes,