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()
119 …printk(KERN_DEBUG " -%i- smart stop voice - volume = 0x%x\n", voice, snd_gf1_i_read16(gus, SNDRV_G… in snd_gf1_smart_stop_voice()
126 void snd_gf1_stop_voice(struct snd_gus_card * gus, unsigned short voice) in snd_gf1_stop_voice() argument
131 snd_gf1_select_voice(gus, voice); in snd_gf1_stop_voice()
133 …printk(KERN_DEBUG " -%i- stop voice - volume = 0x%x\n", voice, snd_gf1_i_read16(gus, SNDRV_GF1_VW_… in snd_gf1_stop_voice()
141 snd_gf1_lfo_shutdown(gus, voice, ULTRA_LFO_VIBRATO); in snd_gf1_stop_voice()
142 snd_gf1_lfo_shutdown(gus, voice, ULTRA_LFO_TREMOLO); in snd_gf1_stop_voice()
161 snd_gf1_ctrl_stop(gus, SNDRV_GF1_VB_ADDRESS_CONTROL); /* Voice Control Register = voice stop */ in snd_gf1_clear_voices()
164 snd_gf1_write8(gus, SNDRV_GF1_VB_MODE, gus->gf1.memory ? 0x02 : 0x82); /* Deactivate voice */ in snd_gf1_clear_voices()
274 void snd_gf1_free_voice(struct snd_gus_card * gus, struct snd_gus_voice *voice) in snd_gf1_free_voice() argument
277 void (*private_free)(struct snd_gus_voice *voice); in snd_gf1_free_voice()
279 if (voice == NULL || !voice->use) in snd_gf1_free_voice()
281 snd_gf1_set_default_handlers(gus, SNDRV_GF1_HANDLER_VOICE | voice->number); in snd_gf1_free_voice()
282 snd_gf1_clear_voices(gus, voice->number, voice->number); in snd_gf1_free_voice()
284 private_free = voice->private_free; in snd_gf1_free_voice()
285 voice->private_free = NULL; in snd_gf1_free_voice()
286 voice->private_data = NULL; in snd_gf1_free_voice()
287 if (voice->pcm) in snd_gf1_free_voice()
289 voice->use = voice->pcm = 0; in snd_gf1_free_voice()
290 voice->sample_ops = NULL; in snd_gf1_free_voice()
293 private_free(voice); in snd_gf1_free_voice()