Lines Matching defs:pcm
21 #include <sound/pcm.h>
733 static int cygnus_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream)
735 struct snd_pcm_substream *substream = pcm->streams[stream].substream;
743 buf->dev.dev = pcm->card->dev;
745 buf->area = dma_alloc_coherent(pcm->card->dev, size,
761 struct snd_pcm *pcm)
766 substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
770 dma_free_coherent(pcm->card->dev, buf->bytes,
776 substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
780 dma_free_coherent(pcm->card->dev, buf->bytes,
791 struct snd_pcm *pcm = rtd->pcm;
799 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
800 ret = cygnus_pcm_preallocate_dma_buffer(pcm,
806 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
807 ret = cygnus_pcm_preallocate_dma_buffer(pcm,
810 cygnus_dma_free_dma_buffers(component, pcm);