Lines Matching defs:gus
15 #include <sound/gus.h>
145 static int snd_gusextreme_detect(struct snd_gus_card *gus,
169 outb(gus->gf1.port & 0x040 ? 2 : 0, ES1688P(es1688, INIT1));
171 outb(gus->gf1.port & 0x020 ? 2 : 0, ES1688P(es1688, INIT1));
173 outb(gus->gf1.port & 0x010 ? 3 : 1, ES1688P(es1688, INIT1));
178 snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 0); /* reset GF1 */
179 d = snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET);
181 dev_dbg(gus->card->dev, "[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d);
185 snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 1); /* release reset */
187 d = snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET);
189 dev_dbg(gus->card->dev, "[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d);
225 struct snd_gus_card *gus;
250 error = snd_gusextreme_gus_card_create(card, dev, n, &gus);
254 error = snd_gusextreme_detect(gus, es1688);
258 gus->joystick_dac = joystick_dac[n];
260 error = snd_gus_initialize(gus);
265 if (!gus->ess_flag) {
267 "detected at 0x%lx\n", gus->gf1.port);
270 gus->codec_flag = 1;
283 error = snd_gf1_pcm_new(gus, 1, 1);
288 error = snd_gf1_new_mixer(gus);
314 gus->gf1.irq, es1688->irq, gus->gf1.dma1, es1688->dma8);