Lines Matching full:voice
102 unsigned int voice; in snd_gf1_pcm_trigger_up() local
121 for (voice = 0; voice < pcmp->voices; voice++) { in snd_gf1_pcm_trigger_up()
122 begin = pcmp->memory + voice * (pcmp->dma_size / runtime->channels); in snd_gf1_pcm_trigger_up()
131 pan = runtime->channels == 2 ? (!voice ? 1 : 14) : 8; in snd_gf1_pcm_trigger_up()
132 vol = !voice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right; in snd_gf1_pcm_trigger_up()
134 snd_gf1_select_voice(gus, pcmp->pvoices[voice]->number); in snd_gf1_pcm_trigger_up()
152 for (voice = 0; voice < pcmp->voices; voice++) { in snd_gf1_pcm_trigger_up()
153 snd_gf1_select_voice(gus, pcmp->pvoices[voice]->number); in snd_gf1_pcm_trigger_up()
155 snd_gf1_write8(gus, SNDRV_GF1_VB_MODE, 0x00); /* deactivate voice */ in snd_gf1_pcm_trigger_up()
162 for (voice = 0; voice < pcmp->voices; voice++) { in snd_gf1_pcm_trigger_up()
163 snd_gf1_select_voice(gus, pcmp->pvoices[voice]->number); in snd_gf1_pcm_trigger_up()
165 voice_ctrl &= ~0x20; /* disable IRQ for next voice */ in snd_gf1_pcm_trigger_up()
341 static int get_bpos(struct gus_pcm_private *pcmp, int voice, unsigned int pos, in get_bpos() argument
344 unsigned int bpos = pos + (voice * (pcmp->dma_size / 2)); in get_bpos()
371 int voice, unsigned long pos, in snd_gf1_pcm_playback_copy() argument
379 bpos = get_bpos(pcmp, voice, pos, len); in snd_gf1_pcm_playback_copy()
388 int voice, unsigned long pos, in snd_gf1_pcm_playback_copy_kernel() argument
396 bpos = get_bpos(pcmp, voice, pos, len); in snd_gf1_pcm_playback_copy_kernel()
404 int voice, unsigned long pos, in snd_gf1_pcm_playback_silence() argument
412 bpos = get_bpos(pcmp, voice, pos, len); in snd_gf1_pcm_playback_silence()
504 int voice; in snd_gf1_pcm_playback_trigger() local
512 voice = pcmp->pvoices[0]->number; in snd_gf1_pcm_playback_trigger()
513 snd_gf1_stop_voices(gus, voice, voice); in snd_gf1_pcm_playback_trigger()
515 voice = pcmp->pvoices[1]->number; in snd_gf1_pcm_playback_trigger()
516 snd_gf1_stop_voices(gus, voice, voice); in snd_gf1_pcm_playback_trigger()