Lines Matching refs:gf1
38 snd_gf1_uart_cmd(gus, gus->gf1.uart_cmd &= ~0x20); in snd_gf1_default_interrupt_handler_midi_out()
43 snd_gf1_uart_cmd(gus, gus->gf1.uart_cmd &= ~0x80); in snd_gf1_default_interrupt_handler_midi_in()
48 snd_gf1_i_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, gus->gf1.timer_enabled &= ~4); in snd_gf1_default_interrupt_handler_timer1()
53 snd_gf1_i_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, gus->gf1.timer_enabled &= ~8); in snd_gf1_default_interrupt_handler_timer2()
75 gus->gf1.interrupt_handler_midi_out = snd_gf1_default_interrupt_handler_midi_out; in snd_gf1_set_default_handlers()
77 gus->gf1.interrupt_handler_midi_in = snd_gf1_default_interrupt_handler_midi_in; in snd_gf1_set_default_handlers()
79 gus->gf1.interrupt_handler_timer1 = snd_gf1_default_interrupt_handler_timer1; in snd_gf1_set_default_handlers()
81 gus->gf1.interrupt_handler_timer2 = snd_gf1_default_interrupt_handler_timer2; in snd_gf1_set_default_handlers()
85 voice = &gus->gf1.voices[what & 0xffff]; in snd_gf1_set_default_handlers()
92 gus->gf1.interrupt_handler_dma_write = snd_gf1_default_interrupt_handler_dma_write; in snd_gf1_set_default_handlers()
94 gus->gf1.interrupt_handler_dma_read = snd_gf1_default_interrupt_handler_dma_read; in snd_gf1_set_default_handlers()
154 if (gus->gf1.enh_mode) in snd_gf1_stop_voice()
170 daddr = gus->gf1.default_voice_address << 4; in snd_gf1_clear_voices()
173 if (gus->gf1.syn_voices) in snd_gf1_clear_voices()
174 gus->gf1.syn_voices[i].flags = ~VFLG_DYNAMIC; in snd_gf1_clear_voices()
180 if (gus->gf1.enh_mode) in snd_gf1_clear_voices()
181 snd_gf1_write8(gus, SNDRV_GF1_VB_MODE, gus->gf1.memory ? 0x02 : 0x82); /* Deactivate voice */ in snd_gf1_clear_voices()
192 if (gus->gf1.enh_mode) { in snd_gf1_clear_voices()
222 if (gus->gf1.enh_mode) { in snd_gf1_stop_voices()
241 gus->gf1.pcm_alloc_voices++; in snd_gf1_alloc_voice_use()
265 if (gus->gf1.pcm_alloc_voices >= gus->gf1.pcm_channels) { in snd_gf1_alloc_voice()
271 pvoice = &gus->gf1.voices[idx]; in snd_gf1_alloc_voice()
279 pvoice = &gus->gf1.voices[idx]; in snd_gf1_alloc_voice()
307 gus->gf1.pcm_alloc_voices--; in snd_gf1_free_voice()
332 gus->gf1.voices[i].number = i; in snd_gf1_start()
338 if (gus->gf1.enh_mode) { /* enhanced mode !!!! */ in snd_gf1_start()
345 gus->gf1.default_voice_address = gus->gf1.memory > 0 ? 0 : 512 - 8; in snd_gf1_start()
347 if (gus->gf1.enh_mode && gus->gf1.memory) { in snd_gf1_start()
348 gus->gf1.hw_lfo = 1; in snd_gf1_start()
349 gus->gf1.default_voice_address += 1024; in snd_gf1_start()
351 gus->gf1.sw_lfo = 1; in snd_gf1_start()
356 if (gus->gf1.memory > 0) in snd_gf1_start()
358 snd_gf1_poke(gus, gus->gf1.default_voice_address + i, 0); in snd_gf1_start()
366 if (gus->gf1.enh_mode) { /* enhanced mode !!!! */ in snd_gf1_start()
373 outb(gus->gf1.active_voice = 0, GUSP(gus, GF1PAGE)); in snd_gf1_start()