Lines Matching defs:pcm
25 #include <sound/pcm.h>
30 #include "jz4740-pcm.h"
259 static int jz4740_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream)
261 struct snd_pcm_substream *substream = pcm->streams[stream].substream;
266 buf->dev.dev = pcm->card->dev;
269 buf->area = dma_alloc_noncoherent(pcm->card->dev, size,
279 static void jz4740_pcm_free(struct snd_pcm *pcm)
286 substream = pcm->streams[stream].substream;
294 dma_free_noncoherent(pcm->card->dev, buf->bytes, buf->area,
303 struct snd_pcm *pcm)
314 ret = jz4740_pcm_preallocate_dma_buffer(pcm,
321 ret = jz4740_pcm_preallocate_dma_buffer(pcm,
332 .name = "jz4740-pcm",
354 .name = "jz4740-pcm",