Lines Matching refs:gus

145 static int snd_gusextreme_detect(struct snd_gus_card *gus,  in snd_gusextreme_detect()  argument
170 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()
179 snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 0); /* reset GF1 */ in snd_gusextreme_detect()
180 d = snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET); in snd_gusextreme_detect()
182 snd_printdd("[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d); in snd_gusextreme_detect()
186 snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 1); /* release reset */ in snd_gusextreme_detect()
188 d = snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET); in snd_gusextreme_detect()
190 snd_printdd("[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d); in snd_gusextreme_detect()
226 struct snd_gus_card *gus; in snd_gusextreme_probe() local
251 error = snd_gusextreme_gus_card_create(card, dev, n, &gus); in snd_gusextreme_probe()
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()
315 gus->gf1.irq, es1688->irq, gus->gf1.dma1, es1688->dma8); in snd_gusextreme_probe()