Lines Matching defs:pcm
26 #include <sound/pcm.h>
229 struct snd_pcm *pcm;
409 epcm->voice = &epcm->emu->voices[substream->pcm->device];
815 struct snd_pcm *pcm;
823 err = snd_pcm_new(emu->card, "emu10k1x", device, 1, capture, &pcm);
827 pcm->private_data = emu;
831 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1x_playback_ops);
832 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_emu10k1x_capture_ops);
836 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_emu10k1x_playback_ops);
840 pcm->info_flags = 0;
843 strcpy(pcm->name, "EMU10K1X Front");
847 strcpy(pcm->name, "EMU10K1X Rear");
851 strcpy(pcm->name, "EMU10K1X Center/LFE");
855 emu->pcm = pcm;
857 snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
860 return snd_pcm_add_chmap_ctls(pcm, SNDRV_PCM_STREAM_PLAYBACK, map, 2,