Lines Matching full:voice

39 …_default_interrupt_handler_wave_and_volume(struct snd_gus_card * gus, struct snd_gus_voice * voice)  in snd_gf1_default_interrupt_handler_wave_and_volume()  argument
66 struct snd_gus_voice *voice; in snd_gf1_set_default_handlers() local
68 voice = &gus->gf1.voices[what & 0xffff]; in snd_gf1_set_default_handlers()
69 voice->handler_wave = in snd_gf1_set_default_handlers()
70 voice->handler_volume = snd_gf1_default_interrupt_handler_wave_and_volume; in snd_gf1_set_default_handlers()
71 voice->handler_effect = NULL; in snd_gf1_set_default_handlers()
72 voice->volume_change = NULL; in snd_gf1_set_default_handlers()
112 void snd_gf1_smart_stop_voice(struct snd_gus_card * gus, unsigned short voice) in snd_gf1_smart_stop_voice() argument
117 snd_gf1_select_voice(gus, voice); in snd_gf1_smart_stop_voice()
120 " -%i- smart stop voice - volume = 0x%x\n", in snd_gf1_smart_stop_voice()
121 voice, snd_gf1_i_read16(gus, SNDRV_GF1_VW_VOLUME)); in snd_gf1_smart_stop_voice()
128 void snd_gf1_stop_voice(struct snd_gus_card * gus, unsigned short voice) in snd_gf1_stop_voice() argument
133 snd_gf1_select_voice(gus, voice); in snd_gf1_stop_voice()
136 " -%i- stop voice - volume = 0x%x\n", in snd_gf1_stop_voice()
137 voice, snd_gf1_i_read16(gus, SNDRV_GF1_VW_VOLUME)); in snd_gf1_stop_voice()
145 snd_gf1_lfo_shutdown(gus, voice, ULTRA_LFO_VIBRATO); in snd_gf1_stop_voice()
146 snd_gf1_lfo_shutdown(gus, voice, ULTRA_LFO_TREMOLO); in snd_gf1_stop_voice()
165 snd_gf1_ctrl_stop(gus, SNDRV_GF1_VB_ADDRESS_CONTROL); /* Voice Control Register = voice stop */ in snd_gf1_clear_voices()
168 snd_gf1_write8(gus, SNDRV_GF1_VB_MODE, gus->gf1.memory ? 0x02 : 0x82); /* Deactivate voice */ in snd_gf1_clear_voices()
278 void snd_gf1_free_voice(struct snd_gus_card * gus, struct snd_gus_voice *voice) in snd_gf1_free_voice() argument
281 void (*private_free)(struct snd_gus_voice *voice); in snd_gf1_free_voice()
283 if (voice == NULL || !voice->use) in snd_gf1_free_voice()
285 snd_gf1_set_default_handlers(gus, SNDRV_GF1_HANDLER_VOICE | voice->number); in snd_gf1_free_voice()
286 snd_gf1_clear_voices(gus, voice->number, voice->number); in snd_gf1_free_voice()
288 private_free = voice->private_free; in snd_gf1_free_voice()
289 voice->private_free = NULL; in snd_gf1_free_voice()
290 voice->private_data = NULL; in snd_gf1_free_voice()
291 if (voice->pcm) in snd_gf1_free_voice()
293 voice->use = voice->pcm = 0; in snd_gf1_free_voice()
294 voice->sample_ops = NULL; in snd_gf1_free_voice()
297 private_free(voice); in snd_gf1_free_voice()