Lines Matching defs:pcm
85 #include <sound/pcm.h>
177 substream->pcm->device, channel_id);
200 runtime->sync.id32[0] = substream->pcm->card->number;
225 substream->pcm->device, channel_id);
258 emu->p16v_voices[substream->pcm->device - emu->p16v_device_offset].use = 0;
290 int channel = substream->pcm->device - emu->p16v_device_offset;
352 int channel = substream->pcm->device - emu->p16v_device_offset;
441 channel = substream->pcm->device-emu->p16v_device_offset;
504 int channel = substream->pcm->device - emu->p16v_device_offset;
584 struct snd_pcm *pcm;
592 if ((err = snd_pcm_new(emu->card, "p16v", device, 1, capture, &pcm)) < 0)
595 pcm->private_data = emu;
598 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_p16v_playback_front_ops);
599 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_p16v_capture_ops);
601 pcm->info_flags = 0;
602 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX;
603 strcpy(pcm->name, "p16v");
604 emu->pcm_p16v = pcm;
606 for(substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
619 for (substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;