Lines Matching refs:pcm
214 runtime->sync.id32[0] = substream->pcm->card->number; in snd_p16v_pcm_open_playback_channel()
272 emu->p16v_voices[substream->pcm->device - emu->p16v_device_offset].use = 0; in snd_p16v_pcm_close_playback()
342 int channel = substream->pcm->device - emu->p16v_device_offset; in snd_p16v_pcm_prepare_playback()
404 int channel = substream->pcm->device - emu->p16v_device_offset; in snd_p16v_pcm_prepare_capture()
493 channel = substream->pcm->device-emu->p16v_device_offset; in snd_p16v_pcm_trigger_playback()
556 int channel = substream->pcm->device - emu->p16v_device_offset; in snd_p16v_pcm_pointer_playback()
642 struct snd_pcm *pcm; in snd_p16v_pcm() local
650 if ((err = snd_pcm_new(emu->card, "p16v", device, 1, capture, &pcm)) < 0) in snd_p16v_pcm()
653 pcm->private_data = emu; in snd_p16v_pcm()
656 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_p16v_playback_front_ops); in snd_p16v_pcm()
657 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_p16v_capture_ops); in snd_p16v_pcm()
659 pcm->info_flags = 0; in snd_p16v_pcm()
660 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; in snd_p16v_pcm()
661 strcpy(pcm->name, "p16v"); in snd_p16v_pcm()
662 emu->pcm_p16v = pcm; in snd_p16v_pcm()
664 for(substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in snd_p16v_pcm()
678 for (substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in snd_p16v_pcm()