• Home
  • Raw
  • Download

Lines Matching +full:0 +full:x260

26 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;	/* Index 0-MAX */
29 static long port[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; /* 0x220,0x230,0x240,0x250,0x260 */
33 static int joystick_dac[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 29};
34 /* 0 to 31, (0.59V-4.52V or 0.389V-2.98V) */
35 static int channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 24};
36 static int pcm_channels[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2};
74 snd_gf1_i_write8(gus, SNDRV_GF1_GB_RESET, 0); /* reset GF1 */ in snd_gusmax_detect()
75 if (((d = snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET)) & 0x07) != 0) { in snd_gusmax_detect()
76 snd_printdd("[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d); in snd_gusmax_detect()
82 if (((d = snd_gf1_i_look8(gus, SNDRV_GF1_GB_RESET)) & 0x07) != 1) { in snd_gusmax_detect()
83 snd_printdd("[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d); in snd_gusmax_detect()
87 return 0; in snd_gusmax_detect()
94 int handled = 0; in snd_gusmax_interrupt()
97 loop = 0; in snd_gusmax_interrupt()
103 if (inb(maxcard->pcm_status_reg) & 0x01) { /* IRQ bit is set? */ in snd_gusmax_interrupt()
108 } while (loop && --max > 0); in snd_gusmax_interrupt()
119 gus->max_cntrl_val = (gus->gf1.port >> 4) & 0x0f; in snd_gusmax_init()
121 gus->max_cntrl_val |= 0x10; in snd_gusmax_init()
123 gus->max_cntrl_val |= 0x20; in snd_gusmax_init()
124 gus->max_cntrl_val |= 0x40; in snd_gusmax_init()
134 memset(&id1, 0, sizeof(id1)); in snd_gusmax_mixer()
135 memset(&id2, 0, sizeof(id2)); in snd_gusmax_mixer()
140 if ((err = snd_ctl_rename_id(card, &id1, &id2)) < 0) in snd_gusmax_mixer()
144 if ((err = snd_ctl_rename_id(card, &id1, &id2)) < 0) in snd_gusmax_mixer()
149 if ((err = snd_ctl_rename_id(card, &id1, &id2)) < 0) in snd_gusmax_mixer()
153 if ((err = snd_ctl_rename_id(card, &id1, &id2)) < 0) in snd_gusmax_mixer()
155 #if 0 in snd_gusmax_mixer()
158 SNDRV_MIXER_IN_MONO, 0, in snd_gusmax_mixer()
159 SNDRV_MIXER_IN_MIC, 0) < 0) in snd_gusmax_mixer()
162 SNDRV_MIXER_IN_MONO, 0, SNDRV_MIXER_ETYPE_INPUT, in snd_gusmax_mixer()
163 SNDRV_MIXER_IN_MIC, 0) < 0) in snd_gusmax_mixer()
166 "Mono Capture Volume", 0, SNDRV_MIXER_ETYPE_VOLUME1, in snd_gusmax_mixer()
167 "Mic Capture Volume", 0) < 0) in snd_gusmax_mixer()
170 "Mono Capture Switch", 0, SNDRV_MIXER_ETYPE_SWITCH1, in snd_gusmax_mixer()
171 "Mic Capture Switch", 0) < 0) in snd_gusmax_mixer()
174 return 0; in snd_gusmax_mixer()
183 if (maxcard->irq >= 0) in snd_gusmax_free()
204 if (err < 0) in snd_gusmax_probe()
213 if ((xirq = snd_legacy_find_free_irq(possible_irqs)) < 0) { in snd_gusmax_probe()
221 if ((xdma1 = snd_legacy_find_free_dma(possible_dmas)) < 0) { in snd_gusmax_probe()
229 if ((xdma2 = snd_legacy_find_free_dma(possible_dmas)) < 0) { in snd_gusmax_probe()
240 0, channels[dev], in snd_gusmax_probe()
242 0, &gus); in snd_gusmax_probe()
245 0x220, 0x230, 0x240, 0x250, 0x260 in snd_gusmax_probe()
248 for (i = 0; i < ARRAY_SIZE(possible_ports); i++) { in snd_gusmax_probe()
252 0, channels[dev], in snd_gusmax_probe()
254 0, &gus); in snd_gusmax_probe()
255 if (err >= 0) { in snd_gusmax_probe()
261 if (err < 0) in snd_gusmax_probe()
264 if ((err = snd_gusmax_detect(gus)) < 0) in snd_gusmax_probe()
268 maxcard->pcm_status_reg = gus->gf1.port + 0x10c + 2; in snd_gusmax_probe()
270 if ((err = snd_gus_initialize(gus)) < 0) in snd_gusmax_probe()
274 snd_printk(KERN_ERR PFX "GUS MAX soundcard was not detected at 0x%lx\n", gus->gf1.port); in snd_gusmax_probe()
279 if (request_irq(xirq, snd_gusmax_interrupt, 0, "GUS MAX", (void *)maxcard)) { in snd_gusmax_probe()
288 gus->gf1.port + 0x10c, -1, xirq, in snd_gusmax_probe()
289 xdma2 < 0 ? xdma1 : xdma2, xdma1, in snd_gusmax_probe()
295 if (err < 0) in snd_gusmax_probe()
298 err = snd_wss_pcm(wss, 0); in snd_gusmax_probe()
299 if (err < 0) in snd_gusmax_probe()
303 if (err < 0) in snd_gusmax_probe()
307 if (err < 0) in snd_gusmax_probe()
310 if (pcm_channels[dev] > 0) { in snd_gusmax_probe()
311 if ((err = snd_gf1_pcm_new(gus, 1, 1)) < 0) in snd_gusmax_probe()
315 if (err < 0) in snd_gusmax_probe()
318 err = snd_gf1_rawmidi_new(gus, 0); in snd_gusmax_probe()
319 if (err < 0) in snd_gusmax_probe()
322 …sprintf(card->longname + strlen(card->longname), " at 0x%lx, irq %i, dma %i", gus->gf1.port, xirq,… in snd_gusmax_probe()
323 if (xdma2 >= 0) in snd_gusmax_probe()
327 if (err < 0) in snd_gusmax_probe()
334 return 0; in snd_gusmax_probe()
344 return 0; in snd_gusmax_remove()