Lines Matching refs:gus
126 static int __devinit snd_gusclassic_detect(struct snd_gus_card *gus) in snd_gusclassic_detect() argument
130 snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 0); /* reset GF1 */ in snd_gusclassic_detect()
131 if (((d = snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET)) & 0x07) != 0) { in snd_gusclassic_detect()
132 snd_printdd("[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d); in snd_gusclassic_detect()
136 snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 1); /* release reset */ in snd_gusclassic_detect()
138 if (((d = snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET)) & 0x07) != 1) { in snd_gusclassic_detect()
139 snd_printdd("[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d); in snd_gusclassic_detect()
148 struct snd_gus_card *gus; in snd_gusclassic_probe() local
158 error = snd_gusclassic_create(card, dev, n, &gus); in snd_gusclassic_probe()
162 error = snd_gusclassic_detect(gus); in snd_gusclassic_probe()
166 gus->joystick_dac = joystick_dac[n]; in snd_gusclassic_probe()
168 error = snd_gus_initialize(gus); in snd_gusclassic_probe()
173 if (gus->max_flag || gus->ess_flag) { in snd_gusclassic_probe()
175 "not detected at 0x%lx\n", gus->gf1.port); in snd_gusclassic_probe()
179 error = snd_gf1_new_mixer(gus); in snd_gusclassic_probe()
183 error = snd_gf1_pcm_new(gus, 0, 0, NULL); in snd_gusclassic_probe()
187 if (!gus->ace_flag) { in snd_gusclassic_probe()
188 error = snd_gf1_rawmidi_new(gus, 0, NULL); in snd_gusclassic_probe()
195 gus->gf1.port, gus->gf1.irq, gus->gf1.dma1); in snd_gusclassic_probe()
197 if (gus->gf1.dma2 >= 0) in snd_gusclassic_probe()
199 "&%d", gus->gf1.dma2); in snd_gusclassic_probe()