Lines Matching defs:gus
30 #include <sound/gus.h>
159 static int __devinit snd_gusextreme_detect(struct snd_gus_card *gus,
184 outb(gus->gf1.port & 0x040 ? 2 : 0, ES1688P(es1688, INIT1));
186 outb(gus->gf1.port & 0x020 ? 2 : 0, ES1688P(es1688, INIT1));
188 outb(gus->gf1.port & 0x010 ? 3 : 1, ES1688P(es1688, INIT1));
193 snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 0); /* reset GF1 */
194 if (((d = snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET)) & 0x07) != 0) {
195 snd_printdd("[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d);
199 snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 1); /* release reset */
201 if (((d = snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET)) & 0x07) != 1) {
202 snd_printdd("[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d);
238 struct snd_gus_card *gus;
263 error = snd_gusextreme_gus_card_create(card, dev, n, &gus);
267 error = snd_gusextreme_detect(gus, es1688);
271 gus->joystick_dac = joystick_dac[n];
273 error = snd_gus_initialize(gus);
278 if (!gus->ess_flag) {
280 "detected at 0x%lx\n", gus->gf1.port);
283 gus->codec_flag = 1;
296 error = snd_gf1_pcm_new(gus, 1, 1, NULL);
301 error = snd_gf1_new_mixer(gus);
328 gus->gf1.irq, es1688->irq, gus->gf1.dma1, es1688->dma8);