Lines Matching defs:pcm
3 * atmel-pcm.c -- ALSA PCM interface for the Atmel atmel SoC.
10 * Based on at91-pcm. by:
14 * Based on pxa2xx-pcm.c by:
30 #include <sound/pcm.h>
34 #include "atmel-pcm.h"
37 static int atmel_pcm_preallocate_dma_buffer(struct snd_pcm *pcm,
40 struct snd_pcm_substream *substream = pcm->streams[stream].substream;
45 buf->dev.dev = pcm->card->dev;
47 buf->area = dma_alloc_coherent(pcm->card->dev, size,
49 pr_debug("atmel-pcm: alloc dma buffer: area=%p, addr=%p, size=%zu\n",
72 struct snd_pcm *pcm = rtd->pcm;
79 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
80 pr_debug("atmel-pcm: allocating PCM playback DMA buffer\n");
81 ret = atmel_pcm_preallocate_dma_buffer(pcm,
87 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
88 pr_debug("atmel-pcm: allocating PCM capture DMA buffer\n");
89 ret = atmel_pcm_preallocate_dma_buffer(pcm,
99 struct snd_pcm *pcm)
106 substream = pcm->streams[stream].substream;
113 dma_free_coherent(pcm->card->dev, buf->bytes,
163 pr_warn("atmel-pcm: buffer %s on %s (SSC_SR=%#x, count=%d)\n",
223 pr_debug("atmel-pcm: "
268 pr_debug("atmel-pcm:buffer_size = %ld,"
287 pr_debug("atmel-pcm: trigger: "