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