Home
last modified time | relevance | path

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

/linux-2.6.39/sound/isa/gus/
Dgus_dma.c51 if (gus->gf1.dma1 > 3) { in snd_gf1_dma_program()
52 if (gus->gf1.enh_mode) { in snd_gf1_dma_program()
73 if (gus->gf1.dma1 > 3) { in snd_gf1_dma_program()
79 …snd_dma_program(gus->gf1.dma1, buf_addr, count, dma_cmd & SNDRV_GF1_DMA_READ ? DMA_MODE_READ : DMA… in snd_gf1_dma_program()
85 if (gus->gf1.enh_mode) { in snd_gf1_dma_program()
100 if (gus->gf1.dma_data_pcm) { in snd_gf1_dma_next_block()
101 block = gus->gf1.dma_data_pcm; in snd_gf1_dma_next_block()
102 if (gus->gf1.dma_data_pcm_last == block) { in snd_gf1_dma_next_block()
103 gus->gf1.dma_data_pcm = in snd_gf1_dma_next_block()
104 gus->gf1.dma_data_pcm_last = NULL; in snd_gf1_dma_next_block()
[all …]
Dgus_irq.c40 status = inb(gus->gf1.reg_irqstat); in snd_gus_interrupt()
46 STAT_ADD(gus->gf1.interrupt_stat_midi_in); in snd_gus_interrupt()
47 if (gus->gf1.interrupt_handler_midi_in) in snd_gus_interrupt()
48 gus->gf1.interrupt_handler_midi_in(gus); in snd_gus_interrupt()
51 STAT_ADD(gus->gf1.interrupt_stat_midi_out); in snd_gus_interrupt()
52 if (gus->gf1.interrupt_handler_midi_out) in snd_gus_interrupt()
53 gus->gf1.interrupt_handler_midi_out(gus); in snd_gus_interrupt()
72 pvoice = &gus->gf1.voices[voice]; in snd_gus_interrupt()
83 STAT_ADD(gus->gf1.interrupt_stat_voice_lost); in snd_gus_interrupt()
90 STAT_ADD(gus->gf1.interrupt_stat_timer1); in snd_gus_interrupt()
[all …]
Dgus_main.c104 if (gus->gf1.res_port2 == NULL) in snd_gus_free()
109 release_and_free_resource(gus->gf1.res_port1); in snd_gus_free()
110 release_and_free_resource(gus->gf1.res_port2); in snd_gus_free()
111 if (gus->gf1.irq >= 0) in snd_gus_free()
112 free_irq(gus->gf1.irq, (void *) gus); in snd_gus_free()
113 if (gus->gf1.dma1 >= 0) { in snd_gus_free()
114 disable_dma(gus->gf1.dma1); in snd_gus_free()
115 free_dma(gus->gf1.dma1); in snd_gus_free()
117 if (!gus->equal_dma && gus->gf1.dma2 >= 0) { in snd_gus_free()
118 disable_dma(gus->gf1.dma2); in snd_gus_free()
[all …]
Dgus_io.c50 outb(reg | 0x80, gus->gf1.reg_regsel); in __snd_gf1_ctrl_stop()
52 value = inb(gus->gf1.reg_data8); in __snd_gf1_ctrl_stop()
54 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_ctrl_stop()
56 outb((value | 0x03) & ~(0x80 | 0x20), gus->gf1.reg_data8); in __snd_gf1_ctrl_stop()
64 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_write8()
66 outb(data, gus->gf1.reg_data8); in __snd_gf1_write8()
73 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_look8()
75 return inb(gus->gf1.reg_data8); in __snd_gf1_look8()
81 outb(reg, gus->gf1.reg_regsel); in __snd_gf1_write16()
83 outw((unsigned short) data, gus->gf1.reg_data16); in __snd_gf1_write16()
[all …]
Dgus_uart.c45 if (!(gus->gf1.uart_cmd & 0x80)) { in snd_gf1_interrupt_midi_in()
50 gus->gf1.uart_framing++; in snd_gf1_interrupt_midi_in()
58 gus->gf1.uart_overrun++; in snd_gf1_interrupt_midi_in()
75 snd_gf1_uart_cmd(gus, gus->gf1.uart_cmd & ~0x20); /* disable Tx interrupt */ in snd_gf1_interrupt_midi_out()
99 if (!(gus->gf1.uart_cmd & 0x80)) { /* input active? */ in snd_gf1_uart_output_open()
102 gus->gf1.interrupt_handler_midi_out = snd_gf1_interrupt_midi_out; in snd_gf1_uart_output_open()
106 …snd_printk(KERN_DEBUG "write init - cmd = 0x%x, stat = 0x%x\n", gus->gf1.uart_cmd, snd_gf1_uart_st… in snd_gf1_uart_output_open()
119 if (gus->gf1.interrupt_handler_midi_out != snd_gf1_interrupt_midi_out) { in snd_gf1_uart_input_open()
122 gus->gf1.interrupt_handler_midi_in = snd_gf1_interrupt_midi_in; in snd_gf1_uart_input_open()
134 gus->uart_enable, gus->gf1.uart_cmd, snd_gf1_uart_stat(gus)); in snd_gf1_uart_input_open()
[all …]
Dgus_reset.c38 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()
[all …]
Dgus_timer.c42 tmp = (gus->gf1.timer_enabled |= 4); in snd_gf1_timer1_start()
58 tmp = (gus->gf1.timer_enabled &= ~4); in snd_gf1_timer1_stop()
78 tmp = (gus->gf1.timer_enabled |= 8); in snd_gf1_timer2_start()
94 tmp = (gus->gf1.timer_enabled &= ~8); in snd_gf1_timer2_stop()
106 struct snd_timer *timer = gus->gf1.timer1; in snd_gf1_interrupt_timer1()
115 struct snd_timer *timer = gus->gf1.timer2; in snd_gf1_interrupt_timer2()
147 gus->gf1.timer1 = NULL; in snd_gf1_timer1_free()
153 gus->gf1.timer2 = NULL; in snd_gf1_timer2_free()
161 if (gus->gf1.timer1 != NULL || gus->gf1.timer2 != NULL) in snd_gf1_timers_init()
164 gus->gf1.interrupt_handler_timer1 = snd_gf1_interrupt_timer1; in snd_gf1_timers_init()
[all …]
Dgus_instr.c41 block = snd_gf1_mem_alloc(&gus->gf1.mem_alloc, in snd_gus_iwffff_put_sample()
51 snd_gf1_mem_lock(&gus->gf1.mem_alloc, 0); in snd_gus_iwffff_put_sample()
52 snd_gf1_mem_xfree(&gus->gf1.mem_alloc, block); in snd_gus_iwffff_put_sample()
53 snd_gf1_mem_lock(&gus->gf1.mem_alloc, 1); in snd_gus_iwffff_put_sample()
76 return snd_gf1_mem_free(&gus->gf1.mem_alloc, wave->address.memory); in snd_gus_iwffff_remove_sample()
92 block = snd_gf1_mem_alloc(&gus->gf1.mem_alloc, in snd_gus_gf1_put_sample()
102 snd_gf1_mem_lock(&gus->gf1.mem_alloc, 0); in snd_gus_gf1_put_sample()
103 snd_gf1_mem_xfree(&gus->gf1.mem_alloc, block); in snd_gus_gf1_put_sample()
104 snd_gf1_mem_lock(&gus->gf1.mem_alloc, 1); in snd_gus_gf1_put_sample()
124 return snd_gf1_mem_free(&gus->gf1.mem_alloc, wave->address.memory); in snd_gus_gf1_remove_sample()
[all …]
Dgus_pcm.c147 vol = !voice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right; in snd_gf1_pcm_trigger_up()
160 if (!gus->gf1.enh_mode) { in snd_gf1_pcm_trigger_up()
169 if (gus->gf1.enh_mode) in snd_gf1_pcm_trigger_up()
175 if (!gus->gf1.enh_mode) { in snd_gf1_pcm_trigger_up()
244 if (!gus->gf1.enh_mode) { in snd_gf1_pcm_interrupt_wave()
292 vol = !cvoice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right; in snd_gf1_pcm_interrupt_volume()
431 snd_gf1_mem_free(&gus->gf1.mem_alloc, pcmp->memory); in snd_gf1_pcm_playback_hw_params()
434 if ((block = snd_gf1_mem_alloc(&gus->gf1.mem_alloc, in snd_gf1_pcm_playback_hw_params()
482 snd_gf1_mem_free(&pcmp->gus->gf1.mem_alloc, pcmp->memory); in snd_gf1_pcm_playback_hw_free()
568 gus->gf1.pcm_rcntrl_reg = 0x21; /* IRQ at end, enable & start */ in snd_gf1_pcm_capture_hw_params()
[all …]
Dinterwave.c224 if (gus->gf1.port == 0x250) { in snd_interwave_detect_stb()
266 snd_printdd("[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d); in snd_interwave_detect()
273 snd_printdd("[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d); in snd_interwave_detect()
282 snd_printdd("[0x%lx] InterWave check - rev1=0x%x, rev2=0x%x\n", gus->gf1.port, rev1, rev2); in snd_interwave_detect()
285 snd_printdd("[0x%lx] InterWave check - passed\n", gus->gf1.port); in snd_interwave_detect()
295 snd_printdd("[0x%lx] InterWave check - failed\n", gus->gf1.port); in snd_interwave_detect()
425 if (i >= ARRAY_SIZE(lmc) && !gus->gf1.enh_mode) in snd_interwave_detect_memory()
428 gus->gf1.mem_alloc.banks_8[i].address = in snd_interwave_detect_memory()
429 gus->gf1.mem_alloc.banks_16[i].address = i << 22; in snd_interwave_detect_memory()
430 gus->gf1.mem_alloc.banks_8[i].size = in snd_interwave_detect_memory()
[all …]
Dgusclassic.c132 snd_printdd("[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d); in snd_gusclassic_detect()
139 snd_printdd("[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d); in snd_gusclassic_detect()
175 "not detected at 0x%lx\n", gus->gf1.port); in snd_gusclassic_probe()
195 gus->gf1.port, gus->gf1.irq, gus->gf1.dma1); in snd_gusclassic_probe()
197 if (gus->gf1.dma2 >= 0) in snd_gusclassic_probe()
199 "&%d", gus->gf1.dma2); in snd_gusclassic_probe()
Dgus_mem_proc.c67 if (gus->gf1.mem_alloc.banks_8[idx].size > 0) { in snd_gf1_mem_proc_init()
78 priv->address = gus->gf1.mem_alloc.banks_8[idx].address; in snd_gf1_mem_proc_init()
79 priv->size = entry->size = gus->gf1.mem_alloc.banks_8[idx].size; in snd_gf1_mem_proc_init()
84 if (gus->gf1.rom_present & (1 << idx)) { in snd_gf1_mem_proc_init()
97 priv->size = entry->size = gus->gf1.rom_memory; in snd_gf1_mem_proc_init()
Dgusmax.c91 snd_printdd("[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d); in snd_gusmax_detect()
98 snd_printdd("[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d); in snd_gusmax_detect()
134 gus->max_cntrl_val = (gus->gf1.port >> 4) & 0x0f; in snd_gusmax_init()
135 if (gus->gf1.dma1 > 3) in snd_gusmax_init()
137 if (gus->gf1.dma2 > 3) in snd_gusmax_init()
282 maxcard->gus_status_reg = gus->gf1.reg_irqstat; in snd_gusmax_probe()
283 maxcard->pcm_status_reg = gus->gf1.port + 0x10c + 2; in snd_gusmax_probe()
289 snd_printk(KERN_ERR PFX "GUS MAX soundcard was not detected at 0x%lx\n", gus->gf1.port); in snd_gusmax_probe()
302 gus->gf1.port + 0x10c, -1, xirq, in snd_gusmax_probe()
336 …sprintf(card->longname + strlen(card->longname), " at 0x%lx, irq %i, dma %i", gus->gf1.port, xirq,… in snd_gusmax_probe()
Dgus_mixer.c70 outb(gus->gf1.active_voice = 0, GUSP(gus, GF1PAGE)); in snd_gf1_put_single()
98 left = gus->gf1.ics_regs[addr][0]; in snd_ics_get_double()
99 right = gus->gf1.ics_regs[addr][1]; in snd_ics_get_double()
117 oval1 = gus->gf1.ics_regs[addr][0]; in snd_ics_put_double()
118 oval2 = gus->gf1.ics_regs[addr][1]; in snd_ics_put_double()
120 gus->gf1.ics_regs[addr][0] = val1; in snd_ics_put_double()
121 gus->gf1.ics_regs[addr][1] = val2; in snd_ics_put_double()
Dgus_mem.c245 alloc = &gus->gf1.mem_alloc; in snd_gf1_mem_init()
248 if (!gus->gf1.memory) in snd_gf1_mem_init()
253 if (gus->gf1.enh_mode) { in snd_gf1_mem_init()
260 block.ptr = gus->gf1.default_voice_address; in snd_gf1_mem_init()
277 alloc = &gus->gf1.mem_alloc; in snd_gf1_mem_done()
298 alloc = &gus->gf1.mem_alloc; in snd_gf1_mem_info_read()
346 ultra_memory_free_size(card, &card->gf1.mem_alloc), in snd_gf1_mem_info_read()
347 ultra_memory_free_block(card, &card->gf1.mem_alloc, 0), in snd_gf1_mem_info_read()
348 ultra_memory_free_block(card, &card->gf1.mem_alloc, 1)); in snd_gf1_mem_info_read()
Dgusextreme.c184 outb(gus->gf1.port & 0x040 ? 2 : 0, ES1688P(es1688, INIT1)); in snd_gusextreme_detect()
186 outb(gus->gf1.port & 0x020 ? 2 : 0, ES1688P(es1688, INIT1)); in snd_gusextreme_detect()
188 outb(gus->gf1.port & 0x010 ? 3 : 1, ES1688P(es1688, INIT1)); in snd_gusextreme_detect()
195 snd_printdd("[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d); in snd_gusextreme_detect()
202 snd_printdd("[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d); in snd_gusextreme_detect()
280 "detected at 0x%lx\n", gus->gf1.port); in snd_gusextreme_probe()
328 gus->gf1.irq, es1688->irq, gus->gf1.dma1, es1688->dma8); in snd_gusextreme_probe()
Dgus_volume.c94 value = gus->gf1.enh_mode ?
96 vol_rates[gus->gf1.active_voices - 14];
123 return ((freq16 << 9) + (gus->gf1.playback_freq >> 1)) / gus->gf1.playback_freq; in snd_gf1_translate_freq()
/linux-2.6.39/include/sound/
Dgus.h34 #define GUSP(gus, x) ((gus)->gf1.port + SNDRV_g_u_s_##x)
427 struct snd_gf1 gf1; /* gf1 specific variables */ member
456 if (voice != gus->gf1.active_voice) { in snd_gf1_select_voice()
457 gus->gf1.active_voice = voice; in snd_gf1_select_voice()
465 outb(gus->gf1.uart_cmd = b, GUSP(gus, MIDICTRL)); in snd_gf1_uart_cmd()