Lines Matching refs:gus

61 	struct snd_gus_card *gus;  member
69 static int snd_gusmax_detect(struct snd_gus_card *gus) in snd_gusmax_detect() argument
73 snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 0); /* reset GF1 */ in snd_gusmax_detect()
74 d = snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET); in snd_gusmax_detect()
76 snd_printdd("[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d); in snd_gusmax_detect()
80 snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 1); /* release reset */ in snd_gusmax_detect()
82 d = snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET); in snd_gusmax_detect()
84 snd_printdd("[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d); in snd_gusmax_detect()
101 snd_gus_interrupt(irq, maxcard->gus); in snd_gusmax_interrupt()
114 struct snd_gus_card *gus) in snd_gusmax_init() argument
116 gus->equal_irq = 1; in snd_gusmax_init()
117 gus->codec_flag = 1; in snd_gusmax_init()
118 gus->joystick_dac = joystick_dac[dev]; 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()
122 gus->max_cntrl_val |= 0x10; in snd_gusmax_init()
123 if (gus->gf1.dma2 > 3) in snd_gusmax_init()
124 gus->max_cntrl_val |= 0x20; in snd_gusmax_init()
125 gus->max_cntrl_val |= 0x40; in snd_gusmax_init()
126 outb(gus->max_cntrl_val, GUSP(gus, MAXCNTRLPORT)); in snd_gusmax_init()
193 struct snd_gus_card *gus = NULL; in snd_gusmax_probe() local
236 0, &gus); in snd_gusmax_probe()
248 0, &gus); in snd_gusmax_probe()
258 err = snd_gusmax_detect(gus); in snd_gusmax_probe()
262 maxcard->gus_status_reg = gus->gf1.reg_irqstat; in snd_gusmax_probe()
263 maxcard->pcm_status_reg = gus->gf1.port + 0x10c + 2; in snd_gusmax_probe()
264 snd_gusmax_init(dev, card, gus); in snd_gusmax_probe()
265 err = snd_gus_initialize(gus); in snd_gusmax_probe()
269 if (!gus->max_flag) { in snd_gusmax_probe()
270 snd_printk(KERN_ERR PFX "GUS MAX soundcard was not detected at 0x%lx\n", gus->gf1.port); in snd_gusmax_probe()
283 gus->gf1.port + 0x10c, -1, xirq, in snd_gusmax_probe()
306 err = snd_gf1_pcm_new(gus, 1, 1); in snd_gusmax_probe()
314 err = snd_gf1_rawmidi_new(gus, 0); in snd_gusmax_probe()
318 …sprintf(card->longname + strlen(card->longname), " at 0x%lx, irq %i, dma %i", gus->gf1.port, xirq,… in snd_gusmax_probe()
326 maxcard->gus = gus; in snd_gusmax_probe()