Lines Matching defs:pcm
12 #include "pcm.h"
32 enum { /* settings for pcm */
36 enum { /* pcm streaming states */
37 STREAM_DISABLED, /* no pcm streaming */
38 STREAM_STARTING, /* pcm streaming requested, waiting to become ready */
39 STREAM_RUNNING, /* pcm streaming running */
126 dev_err(&rt->chip->dev->dev, "error getting pcm substream slot.\n");
290 struct pcm_runtime *rt = in_urb->chip->pcm;
378 struct pcm_runtime *rt = urb->chip->pcm;
486 "could not start pcm stream.\n");
601 struct snd_pcm *pcm;
634 ret = snd_pcm_new(chip->card, "DMX6FireUSB", 0, 1, 1, &pcm);
638 dev_err(&chip->dev->dev, "cannot create pcm instance.\n");
642 pcm->private_data = rt;
643 strcpy(pcm->name, "DMX 6Fire USB");
644 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &pcm_ops);
645 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &pcm_ops);
646 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0);
648 rt->instance = pcm;
650 chip->pcm = rt;
656 struct pcm_runtime *rt = chip->pcm;
678 struct pcm_runtime *rt = chip->pcm;
682 chip->pcm = NULL;