Lines Matching refs:pcm
697 (long) pcm->playback.buffer, (long) gus->gf1.pcm_buffer); in snd_gf1_pcm_playback_open()
792 if (!pvoice->pcm) in snd_gf1_pcm_volume_put()
856 struct snd_pcm *pcm; in snd_gf1_pcm_new() local
867 &pcm); in snd_gf1_pcm_new()
870 pcm->private_data = gus; in snd_gf1_pcm_new()
872 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_gf1_pcm_playback_ops); in snd_gf1_pcm_new()
874 …for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; substream = substre… in snd_gf1_pcm_new()
879 pcm->info_flags = 0; in snd_gf1_pcm_new()
880 pcm->dev_subclass = SNDRV_PCM_SUBCLASS_GENERIC_MIX; in snd_gf1_pcm_new()
882 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_gf1_pcm_capture_ops); in snd_gf1_pcm_new()
884 pcm->info_flags |= SNDRV_PCM_INFO_HALF_DUPLEX; in snd_gf1_pcm_new()
885 snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream, in snd_gf1_pcm_new()
889 strcpy(pcm->name, pcm->id); in snd_gf1_pcm_new()
891 sprintf(pcm->name + strlen(pcm->name), " rev %c", gus->revision + 'A'); in snd_gf1_pcm_new()
893 strcat(pcm->name, " (synth)"); in snd_gf1_pcm_new()
894 gus->pcm = pcm; in snd_gf1_pcm_new()