Lines Matching defs:pcm
26 #include <sound/pcm.h>
677 /* create a pcm device */
680 struct snd_pcm *pcm;
683 /* create first pcm device with one outputs and one input */
684 err = snd_pcm_new(chip->card, "SGI O2 Audio", 0, 1, 1, &pcm);
688 pcm->private_data = chip;
689 strcpy(pcm->name, "SGI O2 DAC1");
692 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
694 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE,
696 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0);
698 /* create second pcm device with one outputs and no input */
699 err = snd_pcm_new(chip->card, "SGI O2 Audio", 1, 1, 0, &pcm);
703 pcm->private_data = chip;
704 strcpy(pcm->name, "SGI O2 DAC2");
707 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK,
709 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_VMALLOC, NULL, 0, 0);