Home
last modified time | relevance | path

Searched refs:gus (Results 1 – 25 of 26) sorted by relevance

12

/openbmc/linux/sound/isa/gus/
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()
137 if (gus->gf1.enh_mode) in snd_gf1_stop_voice()
248 if (gus->gf1.pcm_alloc_voices >= gus->gf1.pcm_channels) { in snd_gf1_alloc_voice()
325 snd_gf1_delay(gus); in snd_gf1_start()
326 gus->gf1.default_voice_address = gus->gf1.memory > 0 ? 0 : 512 - 8; in snd_gf1_start()
328 if (gus->gf1.enh_mode && gus->gf1.memory) { in snd_gf1_start()
339 snd_gf1_poke(gus, gus->gf1.default_voice_address + i, 0); in snd_gf1_start()
354 outb(gus->gf1.active_voice = 0, GUSP(gus, GF1PAGE)); in snd_gf1_start()
355 outb(gus->mix_cntrl_reg, GUSP(gus, MIXCNTRLREG)); in snd_gf1_start()
[all …]
H A Dgus_io.c18 inb(GUSP(gus, DRAM)); in snd_gf1_delay()
94 if (gus->gf1.enh_mode) { in __snd_gf1_write_addr()
111 if (gus->gf1.enh_mode) { in __snd_gf1_read_addr()
329 if (!gus->interwave)
353 if (!gus->interwave)
379 if (!gus->interwave)
417 if (gus->gf1.enh_mode) in snd_gf1_select_active_voices()
442 if (gus->interwave && snd_gf1_i_read8(gus, 0x19) & 0x01) { /* enhanced mode */ in snd_gf1_print_voice_registers()
469 if (gus->interwave) {
479 if (!gus->interwave)
[all …]
H A Dgus_main.c98 free_irq(gus->gf1.irq, (void *) gus); in snd_gus_free()
103 if (!gus->equal_dma && gus->gf1.dma2 >= 0) { in snd_gus_free()
133 gus = kzalloc(sizeof(*gus), GFP_KERNEL); in snd_gus_create()
150 gus->gf1.reg_page = GUSP(gus, GF1PAGE); in snd_gus_create()
151 gus->gf1.reg_regsel = GUSP(gus, GF1REGSEL); in snd_gus_create()
152 gus->gf1.reg_data8 = GUSP(gus, GF1DATAHIGH); in snd_gus_create()
153 gus->gf1.reg_data16 = GUSP(gus, GF1DATALOW); in snd_gus_create()
154 gus->gf1.reg_irqstat = GUSP(gus, IRQSTAT); in snd_gus_create()
155 gus->gf1.reg_dram = GUSP(gus, DRAM); in snd_gus_create()
192 gus->gf1.dma2 = gus->gf1.dma1; in snd_gus_create()
[all …]
H A Dgus_uart.c36 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()
81 struct snd_gus_card *gus; in snd_gf1_uart_output_open() local
110 if (gus->uart_enable) { in snd_gf1_uart_input_open()
120 gus->uart_enable, gus->gf1.uart_cmd, snd_gf1_uart_stat(gus)); in snd_gf1_uart_input_open()
124 gus->gf1.port + 0x100, inb(gus->gf1.port + 0x100), in snd_gf1_uart_input_open()
125 inb(gus->gf1.port + 0x101), inb(gus->gf1.port + 0x102)); in snd_gf1_uart_input_open()
170 snd_gf1_uart_cmd(gus, gus->gf1.uart_cmd | 0x80); /* enable Rx interrupts */ in snd_gf1_uart_input_trigger()
207 snd_gf1_uart_cmd(gus, gus->gf1.uart_cmd | 0x20); /* enable Tx interrupt */ in snd_gf1_uart_output_trigger()
[all …]
H A Dgus_dma.c36 if (gus->gf1.dma1 > 3) { in snd_gf1_dma_program()
37 if (gus->gf1.enh_mode) { in snd_gf1_dma_program()
58 if (gus->gf1.dma1 > 3) { in snd_gf1_dma_program()
63 snd_gf1_dma_ack(gus); in snd_gf1_dma_program()
70 if (gus->gf1.enh_mode) { in snd_gf1_dma_program()
116 snd_gf1_dma_ack(gus); in snd_gf1_dma_interrupt()
117 if (gus->gf1.dma_ack) in snd_gf1_dma_interrupt()
118 gus->gf1.dma_ack(gus, gus->gf1.dma_private_data); in snd_gf1_dma_interrupt()
143 gus->gf1.dma_shared++; in snd_gf1_dma_init()
162 gus->gf1.dma_shared--; in snd_gf1_dma_done()
[all …]
H A Dgus_timer.c22 struct snd_gus_card *gus; in snd_gf1_timer1_start() local
24 gus = snd_timer_chip(timer); in snd_gf1_timer1_start()
39 struct snd_gus_card *gus; in snd_gf1_timer1_stop() local
58 struct snd_gus_card *gus; in snd_gf1_timer2_start() local
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()
180 if (gus->gf1.timer1) { in snd_gf1_timers_done()
181 snd_device_free(gus->card, gus->gf1.timer1); in snd_gf1_timers_done()
184 if (gus->gf1.timer2) { in snd_gf1_timers_done()
[all …]
H A Dgus_irq.c19 struct snd_gus_card * gus = dev_id; in snd_gus_interrupt() local
25 status = inb(gus->gf1.reg_irqstat); in snd_gus_interrupt()
33 gus->gf1.interrupt_handler_midi_in(gus); in snd_gus_interrupt()
38 gus->gf1.interrupt_handler_midi_out(gus); in snd_gus_interrupt()
77 gus->gf1.interrupt_handler_timer1(gus); in snd_gus_interrupt()
82 gus->gf1.interrupt_handler_timer2(gus); in snd_gus_interrupt()
88 gus->gf1.interrupt_handler_dma_write(gus); in snd_gus_interrupt()
93 gus->gf1.interrupt_handler_dma_read(gus); in snd_gus_interrupt()
105 struct snd_gus_card *gus; in snd_gus_irq_info_read() local
109 gus = entry->private_data; in snd_gus_irq_info_read()
[all …]
H A Dgus_pcm.c95 struct snd_gus_card * gus = pcmp->gus; in snd_gf1_pcm_trigger_up() local
191 gus = pcmp->gus; in snd_gf1_pcm_interrupt_wave()
357 struct snd_gus_card *gus = pcmp->gus; in playback_copy_ack() local
552 gus->c_pos = 0; in snd_gf1_pcm_capture_hw_params()
599 int pos = snd_dma_pointer(gus->gf1.dma2, gus->c_period_size); in snd_gf1_pcm_capture_pointer()
611 gus->c_pos += gus->c_period_size; in snd_gf1_pcm_interrupt_dma_read()
667 pcmp->gus = gus; in snd_gf1_pcm_playback_open()
838 card = gus->card; in snd_gf1_pcm_new()
839 capture = !gus->interwave && !gus->ess_flag && !gus->ace_flag ? 1 : 0; in snd_gf1_pcm_new()
861 if (gus->gf1.dma2 == gus->gf1.dma1) in snd_gf1_pcm_new()
[all …]
H A Dgus_mixer.c51 oval = gus->mix_cntrl_reg; in snd_gf1_put_single()
54 outb(gus->mix_cntrl_reg = nval, GUSP(gus, MIXCNTRLREG)); in snd_gf1_put_single()
55 outb(gus->gf1.active_voice = 0, GUSP(gus, GF1PAGE)); in snd_gf1_put_single()
107 if (gus->ics_flag && gus->ics_flipped && in snd_ics_put_double()
112 outb(1, GUSP(gus, MIXDATAPORT)); in snd_ics_put_double()
116 outb(2, GUSP(gus, MIXDATAPORT)); in snd_ics_put_double()
146 if (snd_BUG_ON(!gus)) in snd_gf1_new_mixer()
148 card = gus->card; in snd_gf1_new_mixer()
152 if (gus->ics_flag) in snd_gf1_new_mixer()
157 if (gus->ics_flag) in snd_gf1_new_mixer()
[all …]
H A Dinterwave.c272 gus->interwave = 1; in snd_interwave_detect()
391 if (snd_gf1_peek(gus, 0) == 0x55 && snd_gf1_peek(gus, 1) == 0xaa) in snd_interwave_detect_memory()
440 gus->gf1.rom_memory = snd_gf1_peek(gus, bank_pos + 40) | in snd_interwave_detect_memory()
447 if (gus->gf1.rom_banks == 1 && gus->gf1.rom_present == 8) in snd_interwave_detect_memory()
471 gus->equal_irq = 1; in snd_interwave_init()
472 gus->codec_flag = 1; in snd_interwave_init()
473 gus->interwave = 1; in snd_interwave_init()
474 gus->max_flag = 1; in snd_interwave_init()
735 if (gus->gf1.rom_banks == 1 && gus->gf1.rom_present == 8) in snd_interwave_probe()
744 gus->gf1.port, in snd_interwave_probe()
[all …]
H A Dgus_dram.c24 if (gus->interwave) { in snd_gus_dram_poke()
25 spin_lock_irqsave(&gus->reg_lock, flags); in snd_gus_dram_poke()
27 snd_gf1_dram_addr(gus, address); in snd_gus_dram_poke()
28 outsb(GUSP(gus, DRAM), buffer, size1); in snd_gus_dram_poke()
29 spin_unlock_irqrestore(&gus->reg_lock, flags); in snd_gus_dram_poke()
35 snd_gf1_poke(gus, address++, *pbuffer++); in snd_gus_dram_poke()
60 if (gus->interwave) { in snd_gus_dram_peek()
61 spin_lock_irqsave(&gus->reg_lock, flags); in snd_gus_dram_peek()
63 snd_gf1_dram_addr(gus, address); in snd_gus_dram_peek()
64 insb(GUSP(gus, DRAM), buffer, size1); in snd_gus_dram_peek()
[all …]
H A Dgusmax.c61 struct snd_gus_card *gus; member
116 gus->equal_irq = 1; in snd_gusmax_init()
117 gus->codec_flag = 1; in snd_gusmax_init()
120 gus->max_cntrl_val = (gus->gf1.port >> 4) & 0x0f; in snd_gusmax_init()
121 if (gus->gf1.dma1 > 3) in snd_gusmax_init()
123 if (gus->gf1.dma2 > 3) in snd_gusmax_init()
126 outb(gus->max_cntrl_val, GUSP(gus, MAXCNTRLPORT)); in snd_gusmax_init()
236 0, &gus); in snd_gusmax_probe()
248 0, &gus); in snd_gusmax_probe()
269 if (!gus->max_flag) { in snd_gusmax_probe()
[all …]
H A Dgusclassic.c135 struct snd_gus_card *gus; in snd_gusclassic_probe() local
149 error = snd_gusclassic_detect(gus); in snd_gusclassic_probe()
153 gus->joystick_dac = joystick_dac[n]; in snd_gusclassic_probe()
155 error = snd_gus_initialize(gus); in snd_gusclassic_probe()
160 if (gus->max_flag || gus->ess_flag) { in snd_gusclassic_probe()
166 error = snd_gf1_new_mixer(gus); in snd_gusclassic_probe()
170 error = snd_gf1_pcm_new(gus, 0, 0); in snd_gusclassic_probe()
174 if (!gus->ace_flag) { 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()
[all …]
H A Dgus_mem_proc.c16 struct snd_gus_card * gus; member
25 struct snd_gus_card *gus = priv->gus; in snd_gf1_mem_proc_dump() local
28 err = snd_gus_dram_read(gus, buf, pos, count, priv->rom); in snd_gf1_mem_proc_dump()
44 int snd_gf1_mem_proc_init(struct snd_gus_card * gus) in snd_gf1_mem_proc_init() argument
52 if (gus->gf1.mem_alloc.banks_8[idx].size > 0) { in snd_gf1_mem_proc_init()
56 priv->gus = gus; in snd_gf1_mem_proc_init()
58 if (! snd_card_proc_new(gus->card, name, &entry)) { in snd_gf1_mem_proc_init()
69 if (gus->gf1.rom_present & (1 << idx)) { in snd_gf1_mem_proc_init()
74 priv->gus = gus; in snd_gf1_mem_proc_init()
76 if (! snd_card_proc_new(gus->card, name, &entry)) { in snd_gf1_mem_proc_init()
[all …]
H A Dgusextreme.c180 d = snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET); in snd_gusextreme_detect()
226 struct snd_gus_card *gus; in snd_gusextreme_probe() local
255 error = snd_gusextreme_detect(gus, es1688); in snd_gusextreme_probe()
259 gus->joystick_dac = joystick_dac[n]; in snd_gusextreme_probe()
261 error = snd_gus_initialize(gus); in snd_gusextreme_probe()
266 if (!gus->ess_flag) { in snd_gusextreme_probe()
268 "detected at 0x%lx\n", gus->gf1.port); in snd_gusextreme_probe()
271 gus->codec_flag = 1; in snd_gusextreme_probe()
284 error = snd_gf1_pcm_new(gus, 1, 1); in snd_gusextreme_probe()
289 error = snd_gf1_new_mixer(gus); in snd_gusextreme_probe()
[all …]
H A DMakefile7 snd-gus-lib-objs := gus_main.o \
21 obj-$(CONFIG_SND_GUSCLASSIC) += snd-gusclassic.o snd-gus-lib.o
22 obj-$(CONFIG_SND_GUSMAX) += snd-gusmax.o snd-gus-lib.o
23 obj-$(CONFIG_SND_GUSEXTREME) += snd-gusextreme.o snd-gus-lib.o
24 obj-$(CONFIG_SND_INTERWAVE) += snd-interwave.o snd-gus-lib.o
25 obj-$(CONFIG_SND_INTERWAVE_STB) += snd-interwave-stb.o snd-gus-lib.o
H A Dgus_volume.c60 unsigned int snd_gf1_calc_ramp_rate(struct snd_gus_card * gus,
80 value = gus->gf1.enh_mode ?
82 vol_rates[gus->gf1.active_voices - 14];
100 unsigned short snd_gf1_translate_freq(struct snd_gus_card * gus, unsigned int freq16) in snd_gf1_translate_freq() argument
109 return ((freq16 << 9) + (gus->gf1.playback_freq >> 1)) / gus->gf1.playback_freq; in snd_gf1_translate_freq()
H A Dgus_mem.c229 int snd_gf1_mem_init(struct snd_gus_card * gus) in snd_gf1_mem_init() argument
234 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()
253 snd_card_ro_proc_new(gus->card, "gusmem", gus, snd_gf1_mem_info_read); in snd_gf1_mem_init()
258 int snd_gf1_mem_done(struct snd_gus_card * gus) in snd_gf1_mem_done() argument
263 alloc = &gus->gf1.mem_alloc; in snd_gf1_mem_done()
277 struct snd_gus_card *gus; in snd_gf1_mem_info_read() local
283 gus = entry->private_data; in snd_gf1_mem_info_read()
[all …]
/openbmc/linux/include/sound/
H A Dgus.h19 #define GUSP(gus, x) ((gus)->gf1.port + SNDRV_g_u_s_##x) argument
208 struct snd_gus_card * gus; member
441 if (voice != gus->gf1.active_voice) { in snd_gf1_select_voice()
442 gus->gf1.active_voice = voice; in snd_gf1_select_voice()
443 outb(voice, GUSP(gus, GF1PAGE)); in snd_gf1_select_voice()
450 outb(gus->gf1.uart_cmd = b, GUSP(gus, MIDICTRL)); in snd_gf1_uart_cmd()
455 return inb(GUSP(gus, MIDISTAT)); in snd_gf1_uart_stat()
460 outb(b, GUSP(gus, MIDIDATA)); in snd_gf1_uart_put()
465 return inb(GUSP(gus, MIDIDATA)); in snd_gf1_uart_get()
476 return snd_gf1_look8(gus, reg | 0x80); in snd_gf1_read8()
[all …]
/openbmc/qemu/docs/system/
H A Dtarget-i386-desc.rst.inc55 |qemu_system_x86| dos.img -device gus -parallel none
61 |qemu_system_x86| dos.img -device gus,irq=5
/openbmc/linux/sound/isa/
H A DMakefile28 obj-$(CONFIG_SND) += ad1816a/ ad1848/ cs423x/ es1688/ galaxy/ gus/ msnd/ opti9xx/ \
/openbmc/qemu/hw/audio/
H A Dmeson.build8 system_ss.add(when: 'CONFIG_GUS', if_true: files('gus.c', 'gusemu_hal.c', 'gusemu_mixer.c'))
/openbmc/qemu/docs/
H A Dqdev-device-use.txt324 gus -device gus,iobase=IOADDR,irq=IRQ,dma=DMA,freq=F
/openbmc/linux/Documentation/sound/kernel-api/
H A Dwriting-an-alsa-driver.rst3518 details, please check ``isa/gus/gus_pcm.c`` or ``pci/rme9652/rme9652.c``
3543 for each channel. See, for example, ``isa/gus/gus_pcm.c``.
/openbmc/
H A Dopengrok1.0.log19145 …ilelessChildren: not file-less due to: /opengrok/data/xref/openbmc/linux/sound/isa/gus/gus_mem.c.gz
19146 ….findFilelessChildren: its children prevent delete: /opengrok/data/xref/openbmc/linux/sound/isa/gus

12