Lines Matching +full:synth +full:- +full:master

1 // SPDX-License-Identifier: GPL-2.0-or-later
31 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
35 static long gf1_port[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS) - 1] = -1}; /* 0x210,0x220,0x230,0x240,0x250,0x260,0x270 */
36 static long mpu_port[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS) - 1] = -1}; /* 0x300,0x310,0x320 */
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};
58 MODULE_PARM_DESC(mpu_port, "MPU-401 port # for " CRD_NAME " driver.");
62 MODULE_PARM_DESC(mpu_irq, "MPU-401 IRQ # for " CRD_NAME " driver.");
66 MODULE_PARM_DESC(dma8, "8-bit DMA # for " CRD_NAME " driver.");
70 MODULE_PARM_DESC(joystick_dac, "Joystick DAC level 0.59V-4.52V or 0.389V-2.98V for " CRD_NAME " driver.");
86 static const int possible_irqs[] = {5, 9, 10, 7, -1};
87 static const int possible_dmas[] = {1, 3, 0, -1};
95 return -EBUSY;
102 return -EBUSY;
124 static const int possible_irqs[] = {11, 12, 15, 9, 5, 7, 3, -1};
125 static const int possible_dmas[] = {5, 6, 7, 3, 1, -1};
131 return -EBUSY;
138 return -EBUSY;
141 return snd_gus_create(card, gf1_port[n], gf1_irq[n], dma1[n], -1,
151 * This is main stuff - enable access to GF1 chip...
155 * I used reverse-engineering in DOSEMU. [--jk]
164 scoped_guard(spinlock_irqsave, &es1688->mixer_lock) {
168 scoped_guard(spinlock_irqsave, &es1688->reg_lock) {
169 outb(gus->gf1.port & 0x040 ? 2 : 0, ES1688P(es1688, INIT1));
171 outb(gus->gf1.port & 0x020 ? 2 : 0, ES1688P(es1688, INIT1));
173 outb(gus->gf1.port & 0x010 ? 3 : 1, ES1688P(es1688, INIT1));
181 dev_dbg(gus->card->dev, "[0x%lx] check 1 failed - 0x%x\n", gus->gf1.port, d);
182 return -EIO;
189 dev_dbg(gus->card->dev, "[0x%lx] check 2 failed - 0x%x\n", gus->gf1.port, d);
190 return -EIO;
207 strscpy(id2.name, "Synth Playback Volume");
212 /* reassign Master Playback Switch to Synth Playback Switch */
213 strscpy(id1.name, "Master Playback Switch");
214 strscpy(id2.name, "Synth Playback Switch");
235 es1688 = card->private_data;
241 mpu_irq[n] = -1;
248 gf1_port[n] = es1688->port + 0x20;
258 gus->joystick_dac = joystick_dac[n];
264 error = -ENODEV;
265 if (!gus->ess_flag) {
267 "detected at 0x%lx\n", gus->gf1.port);
270 gus->codec_flag = 1;
296 if (snd_opl3_create(card, es1688->port, es1688->port + 2,
298 dev_warn(dev, "opl3 not detected at 0x%lx\n", es1688->port);
305 if (es1688->mpu_port >= 0x300) {
307 es1688->mpu_port, 0, mpu_irq[n], NULL);
312 sprintf(card->longname, "Gravis UltraSound Extreme at 0x%lx, "
313 "irq %i&%i, dma %i&%i", es1688->port,
314 gus->gf1.irq, es1688->irq, gus->gf1.dma1, es1688->dma8);