void snd_gf1_clear_voices(snd_gus_card_t * gus, unsigned short v_min, unsigned short v_max) 
static void snd_gf1_clear_voices(snd_gus_card_t * gus, unsigned short v_min, unsigned short v_max) 
void snd_gf1_clear_voices(snd_gus_card_t * gus, unsigned short v_min, unsigned short v_max){	unsigned long flags;	unsigned int daddr;	unsigned short i, w_16;	daddr = gus->gf1.default_voice_address << 4;	for (i = v_min; i <= v_max; i++) {#if 0		if (gus->gf1.syn_voices)			gus->gf1.syn_voices[i].flags = ~VFLG_DYNAMIC;#endif		spin_lock_irqsave(&gus->reg_lock, flags);		snd_gf1_select_voice(gus, i);		snd_gf1_ctrl_stop(gus, SNDRV_GF1_VB_ADDRESS_CONTROL);	/* Voice Control Register = voice stop */		snd_gf1_ctrl_stop(gus, SNDRV_GF1_VB_VOLUME_CONTROL);	/* Volume Ramp Control Register = ramp off */		if (gus->gf1.enh_mode)			snd_gf1_write8(gus, SNDRV_GF1_VB_MODE, gus->gf1.memory ? 0x02 : 0x82);	/* Deactivate voice */		w_16 = snd_gf1_read8(gus, SNDRV_GF1_VB_ADDRESS_CONTROL) & 0x04;		snd_gf1_write16(gus, SNDRV_GF1_VW_FREQUENCY, 0x400);		snd_gf1_write_addr(gus, SNDRV_GF1_VA_START, daddr, w_16);		snd_gf1_write_addr(gus, SNDRV_GF1_VA_END, daddr, w_16);		snd_gf1_write8(gus, SNDRV_GF1_VB_VOLUME_START, 0);		snd_gf1_write8(gus, SNDRV_GF1_VB_VOLUME_END, 0);		snd_gf1_write8(gus, SNDRV_GF1_VB_VOLUME_RATE, 0);		snd_gf1_write16(gus, SNDRV_GF1_VW_VOLUME, 0);		snd_gf1_write_addr(gus, SNDRV_GF1_VA_CURRENT, daddr, w_16);		snd_gf1_write8(gus, SNDRV_GF1_VB_PAN, 7);		if (gus->gf1.enh_mode) {			snd_gf1_write8(gus, SNDRV_GF1_VB_ACCUMULATOR, 0);			snd_gf1_write16(gus, SNDRV_GF1_VW_EFFECT_VOLUME, 0);			snd_gf1_write16(gus, SNDRV_GF1_VW_EFFECT_VOLUME_FINAL, 0);		}		spin_unlock_irqrestore(&gus->reg_lock, flags);#if 0		snd_gf1_lfo_shutdown(gus, i, ULTRA_LFO_VIBRATO);		snd_gf1_lfo_shutdown(gus, i, ULTRA_LFO_TREMOLO);#endif	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/209ac85d76e4edf05779b4bd5c2a92b059e9ab4d/gus_reset.c/buggy/sound/isa/gus/gus_reset.c