Lines Matching defs:pcm
2 // linux/sound/bcm/bcm63xx-pcm-whistler.c
3 // BCM63xx whistler pcm interface
199 return dma_mmap_wc(substream->pcm->card->dev, vma,
365 static int bcm63xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream)
367 struct snd_pcm_substream *substream = pcm->streams[stream].substream;
372 buf->dev.dev = pcm->card->dev;
375 buf->area = dma_alloc_wc(pcm->card->dev,
387 struct snd_pcm *pcm = rtd->pcm;
393 of_dma_configure(pcm->card->dev, pcm->card->dev->of_node, 1);
395 ret = dma_coerce_mask_and_coherent(pcm->card->dev, DMA_BIT_MASK(32));
399 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
400 ret = bcm63xx_pcm_preallocate_dma_buffer(pcm,
406 pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
409 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
410 ret = bcm63xx_pcm_preallocate_dma_buffer(pcm,
415 pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
423 struct snd_pcm *pcm)
430 substream = pcm->streams[stream].substream;
436 dma_free_wc(pcm->card->dev, buf->bytes,