Lines Matching defs:gus
15 #include <sound/gus.h>
145 static int snd_gusextreme_detect(struct snd_gus_card *gus,
170 outb(gus->gf1.port & 0x040 ? 2 : 0, ES1688P(es1688, INIT1));
172 outb(gus->gf1.port & 0x020 ? 2 : 0, ES1688P(es1688, INIT1));
174 outb(gus->gf1.port & 0x010 ? 3 : 1, ES1688P(es1688, INIT1));
179 snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 0); /* reset GF1 */
180 d = snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET);
182 snd_printdd("[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d);
186 snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 1); /* release reset */
188 d = snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET);
190 snd_printdd("[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d);
226 struct snd_gus_card *gus;
251 error = snd_gusextreme_gus_card_create(card, dev, n, &gus);
255 error = snd_gusextreme_detect(gus, es1688);
259 gus->joystick_dac = joystick_dac[n];
261 error = snd_gus_initialize(gus);
266 if (!gus->ess_flag) {
268 "detected at 0x%lx\n", gus->gf1.port);
271 gus->codec_flag = 1;
284 error = snd_gf1_pcm_new(gus, 1, 1);
289 error = snd_gf1_new_mixer(gus);
315 gus->gf1.irq, es1688->irq, gus->gf1.dma1, es1688->dma8);