Lines Matching full:voice
98 unsigned int voice; in snd_gf1_pcm_trigger_up() local
117 for (voice = 0; voice < pcmp->voices; voice++) { in snd_gf1_pcm_trigger_up()
118 begin = pcmp->memory + voice * (pcmp->dma_size / runtime->channels); in snd_gf1_pcm_trigger_up()
122 pan = runtime->channels == 2 ? (!voice ? 1 : 14) : 8; in snd_gf1_pcm_trigger_up()
123 vol = !voice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right; in snd_gf1_pcm_trigger_up()
125 snd_gf1_select_voice(gus, pcmp->pvoices[voice]->number); in snd_gf1_pcm_trigger_up()
143 for (voice = 0; voice < pcmp->voices; voice++) { in snd_gf1_pcm_trigger_up()
144 snd_gf1_select_voice(gus, pcmp->pvoices[voice]->number); in snd_gf1_pcm_trigger_up()
146 snd_gf1_write8(gus, SNDRV_GF1_VB_MODE, 0x00); /* deactivate voice */ in snd_gf1_pcm_trigger_up()
153 for (voice = 0; voice < pcmp->voices; voice++) { in snd_gf1_pcm_trigger_up()
154 snd_gf1_select_voice(gus, pcmp->pvoices[voice]->number); in snd_gf1_pcm_trigger_up()
156 voice_ctrl &= ~0x20; /* disable IRQ for next voice */ in snd_gf1_pcm_trigger_up()
327 static int get_bpos(struct gus_pcm_private *pcmp, int voice, unsigned int pos, in get_bpos() argument
330 unsigned int bpos = pos + (voice * (pcmp->dma_size / 2)); in get_bpos()
357 int voice, unsigned long pos, in snd_gf1_pcm_playback_copy() argument
365 bpos = get_bpos(pcmp, voice, pos, len); in snd_gf1_pcm_playback_copy()
374 int voice, unsigned long pos, in snd_gf1_pcm_playback_silence() argument
382 bpos = get_bpos(pcmp, voice, pos, len); in snd_gf1_pcm_playback_silence()
477 int voice; in snd_gf1_pcm_playback_trigger() local
485 voice = pcmp->pvoices[0]->number; in snd_gf1_pcm_playback_trigger()
486 snd_gf1_stop_voices(gus, voice, voice); in snd_gf1_pcm_playback_trigger()
488 voice = pcmp->pvoices[1]->number; in snd_gf1_pcm_playback_trigger()
489 snd_gf1_stop_voices(gus, voice, voice); in snd_gf1_pcm_playback_trigger()