Lines Matching +full:0 +full:x240
27 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
30 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x220,0x230,0x240,0x250,0x260 */
34 static int joystick_dac[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 29};
35 /* 0 to 31, (0.59V-4.52V or 0.389V-2.98V) */
36 static int channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 24};
37 static int pcm_channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2};
69 static const long possible_ports[] = {0x220, 0x230, 0x240, 0x250, 0x260}; in snd_gusclassic_create()
77 if (irq[n] < 0) { in snd_gusclassic_create()
84 if (dma1[n] < 0) { in snd_gusclassic_create()
91 if (dma2[n] < 0) { in snd_gusclassic_create()
99 0, channels[n], pcm_channels[n], 0, rgus); in snd_gusclassic_create()
101 i = 0; in snd_gusclassic_create()
105 0, channels[n], pcm_channels[n], 0, rgus); in snd_gusclassic_create()
106 } while (error < 0 && ++i < ARRAY_SIZE(possible_ports)); in snd_gusclassic_create()
115 snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 0); /* reset GF1 */ in snd_gusclassic_detect()
117 if ((d & 0x07) != 0) { in snd_gusclassic_detect()
118 dev_dbg(gus->card->dev, "[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d); in snd_gusclassic_detect()
125 if ((d & 0x07) != 1) { in snd_gusclassic_detect()
126 dev_dbg(gus->card->dev, "[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d); in snd_gusclassic_detect()
129 return 0; in snd_gusclassic_detect()
138 error = snd_devm_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card); in snd_gusclassic_probe()
139 if (error < 0) in snd_gusclassic_probe()
146 if (error < 0) in snd_gusclassic_probe()
150 if (error < 0) in snd_gusclassic_probe()
156 if (error < 0) in snd_gusclassic_probe()
162 "not detected at 0x%lx\n", gus->gf1.port); in snd_gusclassic_probe()
167 if (error < 0) in snd_gusclassic_probe()
170 error = snd_gf1_pcm_new(gus, 0, 0); in snd_gusclassic_probe()
171 if (error < 0) in snd_gusclassic_probe()
175 error = snd_gf1_rawmidi_new(gus, 0); in snd_gusclassic_probe()
176 if (error < 0) in snd_gusclassic_probe()
181 " at 0x%lx, irq %d, dma %d", in snd_gusclassic_probe()
184 if (gus->gf1.dma2 >= 0) in snd_gusclassic_probe()
189 if (error < 0) in snd_gusclassic_probe()
193 return 0; in snd_gusclassic_probe()
199 #if 0 /* FIXME */