Home
last modified time | relevance | path

Searched refs:gf1 (Results 1 – 17 of 17) sorted by relevance

/linux/sound/isa/gus/
H A Dgus_dma.c37 if (gus->gf1.dma1 > 3) { in snd_gf1_dma_program()
38 if (gus->gf1.enh_mode) { in snd_gf1_dma_program()
61 if (gus->gf1.dma1 > 3) { in snd_gf1_dma_program()
67 …snd_dma_program(gus->gf1.dma1, buf_addr, count, dma_cmd & SNDRV_GF1_DMA_READ ? DMA_MODE_READ : DMA… in snd_gf1_dma_program()
74 if (gus->gf1.enh_mode) { in snd_gf1_dma_program()
89 if (gus->gf1.dma_data_pcm) { in snd_gf1_dma_next_block()
90 block = gus->gf1.dma_data_pcm; in snd_gf1_dma_next_block()
91 if (gus->gf1.dma_data_pcm_last == block) { in snd_gf1_dma_next_block()
92 gus->gf1.dma_data_pcm = in snd_gf1_dma_next_block()
93 gus->gf1.dma_data_pcm_last = NULL; in snd_gf1_dma_next_block()
[all …]
H A Dgus_irq.c25 status = inb(gus->gf1.reg_irqstat); in snd_gus_interrupt()
30 STAT_ADD(gus->gf1.interrupt_stat_midi_in); in snd_gus_interrupt()
31 if (gus->gf1.interrupt_handler_midi_in) in snd_gus_interrupt()
32 gus->gf1.interrupt_handler_midi_in(gus); in snd_gus_interrupt()
35 STAT_ADD(gus->gf1.interrupt_stat_midi_out); in snd_gus_interrupt()
36 if (gus->gf1.interrupt_handler_midi_out) in snd_gus_interrupt()
37 gus->gf1.interrupt_handler_midi_out(gus); in snd_gus_interrupt()
56 pvoice = &gus->gf1.voices[voice]; in snd_gus_interrupt()
67 STAT_ADD(gus->gf1.interrupt_stat_voice_lost); in snd_gus_interrupt()
74 STAT_ADD(gus->gf1.interrupt_stat_timer1); in snd_gus_interrupt()
[all …]
H A Dgus_io.c35 outb(reg | 0x80, gus->gf1.reg_regsel); in __snd_gf1_ctrl_stop()
37 value = inb(gus->gf1.reg_data8); in __snd_gf1_ctrl_stop()
39 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_ctrl_stop()
41 outb((value | 0x03) & ~(0x80 | 0x20), gus->gf1.reg_data8); in __snd_gf1_ctrl_stop()
49 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_write8()
51 outb(data, gus->gf1.reg_data8); in __snd_gf1_write8()
58 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_look8()
60 return inb(gus->gf1.reg_data8); in __snd_gf1_look8()
66 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_write16()
68 outw((unsigned short) data, gus->gf1.reg_data16); in __snd_gf1_write16()
[all …]
H A Dgus_main.c90 if (gus->gf1.res_port2 == NULL) in snd_gus_free()
95 release_and_free_resource(gus->gf1.res_port1); in snd_gus_free()
96 release_and_free_resource(gus->gf1.res_port2); in snd_gus_free()
97 if (gus->gf1.irq >= 0) in snd_gus_free()
98 free_irq(gus->gf1.irq, (void *) gus); in snd_gus_free()
99 if (gus->gf1.dma1 >= 0) { in snd_gus_free()
100 disable_dma(gus->gf1.dma1); in snd_gus_free()
101 free_dma(gus->gf1.dma1); in snd_gus_free()
103 if (!gus->equal_dma && gus->gf1.dma2 >= 0) { in snd_gus_free()
104 disable_dma(gus->gf1.dma2); in snd_gus_free()
[all …]
H A Dgus_reset.c21 snd_gf1_uart_cmd(gus, gus->gf1.uart_cmd &= ~0x20); in snd_gf1_default_interrupt_handler_midi_out()
26 snd_gf1_uart_cmd(gus, gus->gf1.uart_cmd &= ~0x80); in snd_gf1_default_interrupt_handler_midi_in()
31 snd_gf1_i_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, gus->gf1.timer_enabled &= ~4); in snd_gf1_default_interrupt_handler_timer1()
36 snd_gf1_i_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, gus->gf1.timer_enabled &= ~8); in snd_gf1_default_interrupt_handler_timer2()
58 gus->gf1.interrupt_handler_midi_out = snd_gf1_default_interrupt_handler_midi_out; in snd_gf1_set_default_handlers()
60 gus->gf1.interrupt_handler_midi_in = snd_gf1_default_interrupt_handler_midi_in; in snd_gf1_set_default_handlers()
62 gus->gf1.interrupt_handler_timer1 = snd_gf1_default_interrupt_handler_timer1; in snd_gf1_set_default_handlers()
64 gus->gf1.interrupt_handler_timer2 = snd_gf1_default_interrupt_handler_timer2; in snd_gf1_set_default_handlers()
68 voice = &gus->gf1.voices[what & 0xffff]; in snd_gf1_set_default_handlers()
75 gus->gf1.interrupt_handler_dma_write = snd_gf1_default_interrupt_handler_dma_write; in snd_gf1_set_default_handlers()
[all …]
H A Dgus_uart.c31 if (!(gus->gf1.uart_cmd & 0x80)) { in snd_gf1_interrupt_midi_in()
36 gus->gf1.uart_framing++; in snd_gf1_interrupt_midi_in()
44 gus->gf1.uart_overrun++; in snd_gf1_interrupt_midi_in()
61 snd_gf1_uart_cmd(gus, gus->gf1.uart_cmd & ~0x20); /* disable Tx interrupt */ in snd_gf1_interrupt_midi_out()
85 if (!(gus->gf1.uart_cmd & 0x80)) { /* input active? */ in snd_gf1_uart_output_open()
88 gus->gf1.interrupt_handler_midi_out = snd_gf1_interrupt_midi_out; in snd_gf1_uart_output_open()
94 gus->gf1.uart_cmd, snd_gf1_uart_stat(gus)); in snd_gf1_uart_output_open()
107 if (gus->gf1.interrupt_handler_midi_out != snd_gf1_interrupt_midi_out) { in snd_gf1_uart_input_open()
110 gus->gf1.interrupt_handler_midi_in = snd_gf1_interrupt_midi_in; in snd_gf1_uart_input_open()
122 gus->uart_enable, gus->gf1.uart_cmd, snd_gf1_uart_stat(gus)); in snd_gf1_uart_input_open()
[all …]
H A Dgus_timer.c27 tmp = (gus->gf1.timer_enabled |= 4); in snd_gf1_timer1_start()
43 tmp = (gus->gf1.timer_enabled &= ~4); in snd_gf1_timer1_stop()
63 tmp = (gus->gf1.timer_enabled |= 8); in snd_gf1_timer2_start()
79 tmp = (gus->gf1.timer_enabled &= ~8); in snd_gf1_timer2_stop()
91 struct snd_timer *timer = gus->gf1.timer1; in snd_gf1_interrupt_timer1()
100 struct snd_timer *timer = gus->gf1.timer2; in snd_gf1_interrupt_timer2()
132 gus->gf1.timer1 = NULL; in snd_gf1_timer1_free()
138 gus->gf1.timer2 = NULL; in snd_gf1_timer2_free()
146 if (gus->gf1.timer1 != NULL || gus->gf1.timer2 != NULL) in snd_gf1_timers_init()
149 gus->gf1.interrupt_handler_timer1 = snd_gf1_interrupt_timer1; in snd_gf1_timers_init()
[all …]
H A Dgus_pcm.c123 vol = !voice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right; in snd_gf1_pcm_trigger_up()
136 if (!gus->gf1.enh_mode) { in snd_gf1_pcm_trigger_up()
145 if (gus->gf1.enh_mode) in snd_gf1_pcm_trigger_up()
151 if (!gus->gf1.enh_mode) { in snd_gf1_pcm_trigger_up()
220 if (!gus->gf1.enh_mode) { in snd_gf1_pcm_interrupt_wave()
268 vol = !cvoice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right; in snd_gf1_pcm_interrupt_volume()
400 snd_gf1_mem_free(&gus->gf1.mem_alloc, pcmp->memory); in snd_gf1_pcm_playback_hw_params()
403 block = snd_gf1_mem_alloc(&gus->gf1 in snd_gf1_pcm_playback_hw_params()
[all...]
H A Dinterwave.c201 if (gus->gf1.port == 0x250) { in snd_interwave_detect_stb()
249 dev_dbg(gus->card->dev, "[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d); in snd_interwave_detect()
257 dev_dbg(gus->card->dev, "[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d); in snd_interwave_detect()
268 gus->gf1.port, rev1, rev2); in snd_interwave_detect()
272 "[0x%lx] InterWave check - passed\n", gus->gf1.port); in snd_interwave_detect()
282 dev_dbg(gus->card->dev, "[0x%lx] InterWave check - failed\n", gus->gf1.port); in snd_interwave_detect()
412 if (i >= ARRAY_SIZE(lmc) && !gus->gf1.enh_mode) in snd_interwave_detect_memory()
415 gus->gf1.mem_alloc.banks_8[i].address = in snd_interwave_detect_memory()
416 gus->gf1.mem_alloc.banks_16[i].address = i << 22; in snd_interwave_detect_memory()
417 gus->gf1.mem_alloc.banks_8[i].size = in snd_interwave_detect_memory()
[all …]
H A Dgusclassic.c118 dev_dbg(gus->card->dev, "[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d); in snd_gusclassic_detect()
126 dev_dbg(gus->card->dev, "[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d); in snd_gusclassic_detect()
162 "not detected at 0x%lx\n", gus->gf1.port); in snd_gusclassic_probe()
182 gus->gf1.port, gus->gf1.irq, gus->gf1.dma1); in snd_gusclassic_probe()
184 if (gus->gf1.dma2 >= 0) in snd_gusclassic_probe()
186 "&%d", gus->gf1.dma2); in snd_gusclassic_probe()
H A Dgusmax.c74 dev_dbg(gus->card->dev, "[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d); in snd_gusmax_detect()
82 dev_dbg(gus->card->dev, "[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d); in snd_gusmax_detect()
118 gus->max_cntrl_val = (gus->gf1.port >> 4) & 0x0f; in snd_gusmax_init()
119 if (gus->gf1.dma1 > 3) in snd_gusmax_init()
121 if (gus->gf1.dma2 > 3) in snd_gusmax_init()
260 maxcard->gus_status_reg = gus->gf1.reg_irqstat; in snd_gusmax_probe()
261 maxcard->pcm_status_reg = gus->gf1.port + 0x10c + 2; in snd_gusmax_probe()
268 dev_err(pdev, "GUS MAX soundcard was not detected at 0x%lx\n", gus->gf1.port); in snd_gusmax_probe()
281 gus->gf1.port + 0x10c, -1, xirq, in snd_gusmax_probe()
316 …sprintf(card->longname + strlen(card->longname), " at 0x%lx, irq %i, dma %i", gus->gf1.port, xirq,… in snd_gusmax_probe()
H A Dgus_mem_proc.c52 if (gus->gf1.mem_alloc.banks_8[idx].size > 0) { in snd_gf1_mem_proc_init()
63 priv->address = gus->gf1.mem_alloc.banks_8[idx].address; in snd_gf1_mem_proc_init()
64 priv->size = entry->size = gus->gf1.mem_alloc.banks_8[idx].size; in snd_gf1_mem_proc_init()
69 if (gus->gf1.rom_present & (1 << idx)) { in snd_gf1_mem_proc_init()
82 priv->size = entry->size = gus->gf1.rom_memory; in snd_gf1_mem_proc_init()
H A Dgus_mixer.c55 outb(gus->gf1.active_voice = 0, GUSP(gus, GF1PAGE)); in snd_gf1_put_single()
83 left = gus->gf1.ics_regs[addr][0]; in snd_ics_get_double()
84 right = gus->gf1.ics_regs[addr][1]; in snd_ics_get_double()
102 oval1 = gus->gf1.ics_regs[addr][0]; in snd_ics_put_double()
103 oval2 = gus->gf1.ics_regs[addr][1]; in snd_ics_put_double()
105 gus->gf1.ics_regs[addr][0] = val1; in snd_ics_put_double()
106 gus->gf1.ics_regs[addr][1] = val2; in snd_ics_put_double()
H A Dgusextreme.c170 outb(gus->gf1.port & 0x040 ? 2 : 0, ES1688P(es1688, INIT1)); in snd_gusextreme_detect()
172 outb(gus->gf1.port & 0x020 ? 2 : 0, ES1688P(es1688, INIT1)); in snd_gusextreme_detect()
174 outb(gus->gf1.port & 0x010 ? 3 : 1, ES1688P(es1688, INIT1)); in snd_gusextreme_detect()
182 dev_dbg(gus->card->dev, "[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d); in snd_gusextreme_detect()
190 dev_dbg(gus->card->dev, "[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d); in snd_gusextreme_detect()
268 "detected at 0x%lx\n", gus->gf1.port); in snd_gusextreme_probe()
315 gus->gf1.irq, es1688->irq, gus->gf1.dma1, es1688->dma8); in snd_gusextreme_probe()
H A Dgus_mem.c234 alloc = &gus->gf1.mem_alloc; in snd_gf1_mem_init()
237 if (!gus->gf1.memory) in snd_gf1_mem_init()
242 if (gus->gf1.enh_mode) { in snd_gf1_mem_init()
248 block.ptr = gus->gf1.default_voice_address; in snd_gf1_mem_init()
263 alloc = &gus->gf1.mem_alloc; in snd_gf1_mem_done()
284 alloc = &gus->gf1.mem_alloc; in snd_gf1_mem_info_read()
332 ultra_memory_free_size(card, &card->gf1.mem_alloc), in snd_gf1_mem_info_read()
333 ultra_memory_free_block(card, &card->gf1.mem_alloc, 0), in snd_gf1_mem_info_read()
334 ultra_memory_free_block(card, &card->gf1.mem_alloc, 1)); in snd_gf1_mem_info_read()
H A Dgus_volume.c80 value = gus->gf1.enh_mode ?
82 vol_rates[gus->gf1.active_voices - 14];
110 return ((freq16 << 9) + (gus->gf1.playback_freq >> 1)) / gus->gf1.playback_freq; in snd_gf1_translate_freq()
/linux/include/sound/
H A Dgus.h19 #define GUSP(gus, x) ((gus)->gf1.port + SNDRV_g_u_s_##x)
412 struct snd_gf1 gf1; /* gf1 specific variables */ member
441 if (voice != gus->gf1.active_voice) { in snd_gf1_select_voice()
442 gus->gf1.active_voice = voice; in snd_gf1_select_voice()
450 outb(gus->gf1.uart_cmd = b, GUSP(gus, MIDICTRL)); in snd_gf1_uart_cmd()