Lines Matching +full:0 +full:x240

31 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;	/* Index 0-MAX */
34 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x220,0x240,0x260 */
35 static long gf1_port[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS) - 1] = -1}; /* 0x210,0x220,0x230,0x240,0x…
36 static long mpu_port[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS) - 1] = -1}; /* 0x300,0x310,0x320 */
40 static int dma8[SNDRV_CARDS] = SNDRV_DEFAULT_DMA; /* 0,1,3 */
42 static int joystick_dac[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 29};
43 /* 0 to 31, (0.59V-4.52V or 0.389V-2.98V) */
44 static int channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 24};
45 static int pcm_channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2};
85 static const long possible_ports[] = {0x220, 0x240, 0x260}; in snd_gusextreme_es1688_create()
87 static const int possible_dmas[] = {1, 3, 0, -1}; in snd_gusextreme_es1688_create()
93 if (irq[n] < 0) { in snd_gusextreme_es1688_create()
100 if (dma8[n] < 0) { in snd_gusextreme_es1688_create()
110 i = 0; in snd_gusextreme_es1688_create()
115 } while (error < 0 && ++i < ARRAY_SIZE(possible_ports)); in snd_gusextreme_es1688_create()
129 if (gf1_irq[n] < 0) { in snd_gusextreme_gus_card_create()
136 if (dma1[n] < 0) { in snd_gusextreme_gus_card_create()
142 0, channels[n], pcm_channels[n], 0, rgus); in snd_gusextreme_gus_card_create()
154 * ES1688 chip in another place than 0x220. in snd_gusextreme_detect()
159 * 0x230 = 0,2,3 in snd_gusextreme_detect()
160 * 0x240 = 2,0,1 in snd_gusextreme_detect()
161 * 0x250 = 2,0,3 in snd_gusextreme_detect()
162 * 0x260 = 2,2,1 in snd_gusextreme_detect()
166 snd_es1688_mixer_write(es1688, 0x40, 0x0b); /* don't change!!! */ in snd_gusextreme_detect()
170 outb(gus->gf1.port & 0x040 ? 2 : 0, ES1688P(es1688, INIT1)); in snd_gusextreme_detect()
171 outb(0, 0x201); in snd_gusextreme_detect()
172 outb(gus->gf1.port & 0x020 ? 2 : 0, ES1688P(es1688, INIT1)); in snd_gusextreme_detect()
173 outb(0, 0x201); in snd_gusextreme_detect()
174 outb(gus->gf1.port & 0x010 ? 3 : 1, ES1688P(es1688, INIT1)); in snd_gusextreme_detect()
179 snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 0); /* reset GF1 */ in snd_gusextreme_detect()
181 if ((d & 0x07) != 0) { in snd_gusextreme_detect()
182 snd_printdd("[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d); in snd_gusextreme_detect()
189 if ((d & 0x07) != 1) { in snd_gusextreme_detect()
190 snd_printdd("[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d); in snd_gusextreme_detect()
194 return 0; in snd_gusextreme_detect()
202 memset(&id1, 0, sizeof(id1)); in snd_gusextreme_mixer()
203 memset(&id2, 0, sizeof(id2)); in snd_gusextreme_mixer()
210 if (error < 0) in snd_gusextreme_mixer()
217 if (error < 0) in snd_gusextreme_mixer()
220 return 0; in snd_gusextreme_mixer()
233 if (error < 0) in snd_gusextreme_probe()
239 mpu_port[n] = 0; in snd_gusextreme_probe()
245 if (error < 0) in snd_gusextreme_probe()
248 if (gf1_port[n] < 0) in snd_gusextreme_probe()
249 gf1_port[n] = es1688->port + 0x20; in snd_gusextreme_probe()
252 if (error < 0) in snd_gusextreme_probe()
256 if (error < 0) in snd_gusextreme_probe()
262 if (error < 0) in snd_gusextreme_probe()
268 "detected at 0x%lx\n", gus->gf1.port); in snd_gusextreme_probe()
273 error = snd_es1688_pcm(card, es1688, 0); in snd_gusextreme_probe()
274 if (error < 0) in snd_gusextreme_probe()
278 if (error < 0) in snd_gusextreme_probe()
283 if (pcm_channels[n] > 0) { in snd_gusextreme_probe()
285 if (error < 0) in snd_gusextreme_probe()
290 if (error < 0) in snd_gusextreme_probe()
294 if (error < 0) in snd_gusextreme_probe()
298 OPL3_HW_OPL3, 0, &opl3) < 0) in snd_gusextreme_probe()
299 dev_warn(dev, "opl3 not detected at 0x%lx\n", es1688->port); in snd_gusextreme_probe()
301 error = snd_opl3_hwdep_new(opl3, 0, 2, NULL); in snd_gusextreme_probe()
302 if (error < 0) in snd_gusextreme_probe()
306 if (es1688->mpu_port >= 0x300) { in snd_gusextreme_probe()
307 error = snd_mpu401_uart_new(card, 0, MPU401_HW_ES1688, in snd_gusextreme_probe()
308 es1688->mpu_port, 0, mpu_irq[n], NULL); in snd_gusextreme_probe()
309 if (error < 0) in snd_gusextreme_probe()
313 sprintf(card->longname, "Gravis UltraSound Extreme at 0x%lx, " in snd_gusextreme_probe()
318 if (error < 0) in snd_gusextreme_probe()
322 return 0; in snd_gusextreme_probe()
328 #if 0 /* FIXME */