• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/isa/gus/

Lines Matching refs:gus

30 #include <sound/gus.h>
77 struct snd_gus_card *gus;
85 static int __devinit snd_gusmax_detect(struct snd_gus_card * gus)
89 snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 0); /* reset GF1 */
90 if (((d = snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET)) & 0x07) != 0) {
91 snd_printdd("[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d);
95 snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 1); /* release reset */
97 if (((d = snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET)) & 0x07) != 1) {
98 snd_printdd("[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d);
115 snd_gus_interrupt(irq, maxcard->gus);
128 struct snd_gus_card * gus)
130 gus->equal_irq = 1;
131 gus->codec_flag = 1;
132 gus->joystick_dac = joystick_dac[dev];
134 gus->max_cntrl_val = (gus->gf1.port >> 4) & 0x0f;
135 if (gus->gf1.dma1 > 3)
136 gus->max_cntrl_val |= 0x10;
137 if (gus->gf1.dma2 > 3)
138 gus->max_cntrl_val |= 0x20;
139 gus->max_cntrl_val |= 0x40;
140 outb(gus->max_cntrl_val, GUSP(gus, MAXCNTRLPORT));
194 struct snd_gus_card *gus = NULL;
238 0, &gus);
250 0, &gus);
260 if ((err = snd_gusmax_detect(gus)) < 0)
263 maxcard->gus_status_reg = gus->gf1.reg_irqstat;
264 maxcard->pcm_status_reg = gus->gf1.port + 0x10c + 2;
265 snd_gusmax_init(dev, card, gus);
266 if ((err = snd_gus_initialize(gus)) < 0)
269 if (!gus->max_flag) {
270 snd_printk(KERN_ERR PFX "GUS MAX soundcard was not detected at 0x%lx\n", gus->gf1.port);
283 gus->gf1.port + 0x10c, -1, xirq,
306 if ((err = snd_gf1_pcm_new(gus, 1, 1, NULL)) < 0)
313 err = snd_gf1_rawmidi_new(gus, 0, NULL);
317 sprintf(card->longname + strlen(card->longname), " at 0x%lx, irq %i, dma %i", gus->gf1.port, xirq, xdma1);
327 maxcard->gus = gus;