/linux-4.1.27/sound/drivers/opl3/ |
D | opl3_lib.c | 41 static void snd_opl2_command(struct snd_opl3 * opl3, unsigned short cmd, unsigned char val) in snd_opl2_command() argument 51 port = (cmd & OPL3_RIGHT) ? opl3->r_port : opl3->l_port; in snd_opl2_command() 53 spin_lock_irqsave(&opl3->reg_lock, flags); in snd_opl2_command() 61 spin_unlock_irqrestore(&opl3->reg_lock, flags); in snd_opl2_command() 64 static void snd_opl3_command(struct snd_opl3 * opl3, unsigned short cmd, unsigned char val) in snd_opl3_command() argument 74 port = (cmd & OPL3_RIGHT) ? opl3->r_port : opl3->l_port; in snd_opl3_command() 76 spin_lock_irqsave(&opl3->reg_lock, flags); in snd_opl3_command() 79 inb(opl3->l_port); in snd_opl3_command() 80 inb(opl3->l_port); in snd_opl3_command() 83 inb(opl3->l_port); in snd_opl3_command() [all …]
|
D | opl3_seq.c | 39 int snd_opl3_synth_use_inc(struct snd_opl3 * opl3) in snd_opl3_synth_use_inc() argument 41 if (!try_module_get(opl3->card->module)) in snd_opl3_synth_use_inc() 47 void snd_opl3_synth_use_dec(struct snd_opl3 * opl3) in snd_opl3_synth_use_dec() argument 49 module_put(opl3->card->module); in snd_opl3_synth_use_dec() 52 int snd_opl3_synth_setup(struct snd_opl3 * opl3) in snd_opl3_synth_setup() argument 55 struct snd_hwdep *hwdep = opl3->hwdep; in snd_opl3_synth_setup() 65 snd_opl3_reset(opl3); in snd_opl3_synth_setup() 68 opl3->voices[idx].state = SNDRV_OPL3_ST_OFF; in snd_opl3_synth_setup() 69 opl3->voices[idx].time = 0; in snd_opl3_synth_setup() 70 opl3->voices[idx].keyon_reg = 0x00; in snd_opl3_synth_setup() [all …]
|
D | opl3_midi.c | 128 static void debug_alloc(struct snd_opl3 *opl3, char *s, int voice) { in debug_alloc() argument 132 printk(KERN_DEBUG "time %.5i: %s [%.2i]: ", opl3->use_time, s, voice); in debug_alloc() 133 for (i = 0; i < opl3->max_voices; i++) in debug_alloc() 134 printk("%c", *(str + opl3->voices[i].state + 1)); in debug_alloc() 142 static int opl3_get_voice(struct snd_opl3 *opl3, int instr_4op, in opl3_get_voice() argument 173 for (i = 0; i < opl3->max_voices; i++) { in opl3_get_voice() 174 vp = &opl3->voices[i]; in opl3_get_voice() 197 vp2 = &opl3->voices[i + 3]; in opl3_get_voice() 244 struct snd_opl3 *opl3 = (struct snd_opl3 *)data; in snd_opl3_timer_func() local 249 spin_lock_irqsave(&opl3->voice_lock, flags); in snd_opl3_timer_func() [all …]
|
D | opl3_oss.c | 60 struct snd_opl3 *opl3 = private_data; in snd_opl3_oss_event_input() local 63 snd_midi_process_event(&opl3_ops, ev, opl3->oss_chset); in snd_opl3_oss_event_input() 71 struct snd_opl3 *opl3 = private_data; in snd_opl3_oss_free_port() local 73 snd_midi_channel_free_set(opl3->oss_chset); in snd_opl3_oss_free_port() 76 static int snd_opl3_oss_create_port(struct snd_opl3 * opl3) in snd_opl3_oss_create_port() argument 82 voices = (opl3->hardware < OPL3_HW_OPL3) ? in snd_opl3_oss_create_port() 84 opl3->oss_chset = snd_midi_channel_alloc_set(voices); in snd_opl3_oss_create_port() 85 if (opl3->oss_chset == NULL) in snd_opl3_oss_create_port() 87 opl3->oss_chset->private_data = opl3; in snd_opl3_oss_create_port() 93 callbacks.private_data = opl3; in snd_opl3_oss_create_port() [all …]
|
D | opl3_drums.c | 83 static void snd_opl3_drum_voice_set(struct snd_opl3 *opl3, in snd_opl3_drum_voice_set() argument 92 opl3->command(opl3, opl3_reg, data->am_vib); in snd_opl3_drum_voice_set() 96 opl3->command(opl3, opl3_reg, data->ksl_level); in snd_opl3_drum_voice_set() 100 opl3->command(opl3, opl3_reg, data->attack_decay); in snd_opl3_drum_voice_set() 104 opl3->command(opl3, opl3_reg, data->sustain_release); in snd_opl3_drum_voice_set() 108 opl3->command(opl3, opl3_reg, data->feedback_connection); in snd_opl3_drum_voice_set() 112 opl3->command(opl3, opl3_reg, data->wave_select); in snd_opl3_drum_voice_set() 118 static void snd_opl3_drum_note_set(struct snd_opl3 *opl3, in snd_opl3_drum_note_set() argument 126 opl3->command(opl3, opl3_reg, data->fnum); in snd_opl3_drum_note_set() 130 opl3->command(opl3, opl3_reg, data->octave_f); in snd_opl3_drum_note_set() [all …]
|
D | opl3_synth.c | 72 static int snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note); 73 static int snd_opl3_set_voice(struct snd_opl3 * opl3, struct snd_dm_fm_voice * voice); 74 static int snd_opl3_set_params(struct snd_opl3 * opl3, struct snd_dm_fm_params * params); 75 static int snd_opl3_set_mode(struct snd_opl3 * opl3, int mode); 76 static int snd_opl3_set_connection(struct snd_opl3 * opl3, int connection); 94 struct snd_opl3 *opl3 = hw->private_data; in snd_opl3_ioctl() local 97 if (snd_BUG_ON(!opl3)) in snd_opl3_ioctl() 106 info.fm_mode = opl3->fm_mode; in snd_opl3_ioctl() 107 info.rhythm = opl3->rhythm; in snd_opl3_ioctl() 117 snd_opl3_reset(opl3); in snd_opl3_ioctl() [all …]
|
D | opl3_voice.h | 25 int snd_opl3_synth_use_inc(struct snd_opl3 * opl3); 26 void snd_opl3_synth_use_dec(struct snd_opl3 * opl3); 27 int snd_opl3_synth_setup(struct snd_opl3 * opl3); 28 void snd_opl3_synth_cleanup(struct snd_opl3 * opl3); 43 void snd_opl3_load_drums(struct snd_opl3 *opl3); 44 void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int on_off, int vel, struct snd_midi_cha… 48 void snd_opl3_init_seq_oss(struct snd_opl3 *opl3, char *name); 49 void snd_opl3_free_seq_oss(struct snd_opl3 *opl3);
|
D | Makefile | 6 snd-opl3-lib-objs := opl3_lib.o opl3_synth.o 7 snd-opl3-synth-y := opl3_seq.o opl3_midi.o opl3_drums.o 8 snd-opl3-synth-$(CONFIG_SND_SEQUENCER_OSS) += opl3_oss.o 10 obj-$(CONFIG_SND_OPL3_LIB) += snd-opl3-lib.o 11 obj-$(CONFIG_SND_OPL4_LIB) += snd-opl3-lib.o 12 obj-$(CONFIG_SND_OPL3_LIB_SEQ) += snd-opl3-synth.o
|
/linux-4.1.27/include/sound/ |
D | opl3.h | 308 void (*command) (struct snd_opl3 * opl3, unsigned short cmd, unsigned char val); 359 int snd_opl3_init(struct snd_opl3 *opl3); 364 struct snd_opl3 ** opl3); 365 int snd_opl3_timer_new(struct snd_opl3 * opl3, int timer1_dev, int timer2_dev); 366 int snd_opl3_hwdep_new(struct snd_opl3 * opl3, int device, int seq_device, 375 void snd_opl3_reset(struct snd_opl3 * opl3); 380 int snd_opl3_load_patch(struct snd_opl3 *opl3, 385 struct fm_patch *snd_opl3_find_patch(struct snd_opl3 *opl3, int prog, int bank, 387 void snd_opl3_clear_patches(struct snd_opl3 *opl3); 390 static inline void snd_opl3_clear_patches(struct snd_opl3 *opl3) {} in snd_opl3_clear_patches() argument
|
D | opl4.h | 30 struct snd_opl3 **opl3, struct snd_opl4 **opl4);
|
/linux-4.1.27/Documentation/sound/oss/ |
D | Tropez+ | 11 post-install wavefront modprobe "-k" "opl3" 14 options opl3 io=0x388 21 you can do without the opl3 module if you don't 24 the opl3 io parameter is conventionally not adjustable.
|
D | ESS1868 | 51 /sbin/insmod opl3 io=0x388 54 opl3 is the FM synthesizer 55 /sbin/insmod opl3 io=0x388
|
D | AudioExcelDSP16 | 46 options opl3 io=0x388 50 Where the aedsp16 options are the options for this driver while opl3 and 58 softdep opl3 pre: aedsp16 61 sound -> aedsp16 -> [ ad1848, opl3 ] 63 With the above configuration, loading ad1848 or opl3 modules, will
|
D | PAS16 | 124 "opl3=<io>" to the kernel command line. 129 insmod opl3 132 options opl3 io=0x388 134 opl3=0x388 151 append="pas2=0x388,10,3,-1,0x220,5,1,-1 sb=0x220,5,1,-1 opl3=0x388" 158 append="pas2=0x388,10,3,-1,0,-1,-1,-1 opl3=0x388" 161 specified in /etc/modprobe.d/*.conf for pas2, sb and opl3
|
D | OPL3 | 3 insmod opl3 io=0x388
|
D | Opti | 75 alias synth0 opl3 78 options opl3 io=0x388 94 alias synth0 opl3 103 by the opl3 driver. 117 options opl3 io=0x388 121 This sets resources and options for the mad16 and opl3 drivers.
|
D | ALS | 30 synth device can be accessed using the "opl3" module. 33 of the card's resources should be passed to the kernel modules ("sb", "opl3" 41 "mpu_io" should be set to 0. The "io" parameter of the "opl3" module should
|
D | Soundblaster | 35 You may well want to load the opl3 driver for synth music on most SB and 38 insmod opl3 io=0x388
|
D | CMI8330 | 150 alias synth0 opl3 152 options opl3 io=0x388
|
D | SoundPro | 63 modprobe opl3 io=0x388 84 post-install sound modprobe -k ad1848; modprobe -k mpu401; modprobe -k opl3 88 options opl3 io=0x388
|
D | oss-parameters.txt | 27 opl3= [HW,OSS]
|
D | VIBRA16 | 70 modprobe opl3=0x388
|
D | README.modules | 56 opl3.o # The OPL3 driver
|
/linux-4.1.27/sound/isa/ |
D | adlib.c | 53 struct snd_opl3 *opl3; in snd_adlib_probe() local 74 error = snd_opl3_create(card, port[n], port[n] + 2, OPL3_HW_AUTO, 1, &opl3); in snd_adlib_probe() 80 error = snd_opl3_hwdep_new(opl3, 0, 0, NULL); in snd_adlib_probe()
|
D | azt2320.c | 185 struct snd_opl3 *opl3; in snd_card_azt2320_probe() local 244 OPL3_HW_AUTO, 0, &opl3) < 0) { in snd_card_azt2320_probe() 248 if ((error = snd_opl3_timer_new(opl3, 1, 2)) < 0) { in snd_card_azt2320_probe() 252 if ((error = snd_opl3_hwdep_new(opl3, 0, 1, NULL)) < 0) { in snd_card_azt2320_probe()
|
D | als100.c | 194 struct snd_opl3 *opl3; in snd_card_als100_probe() local 266 OPL3_HW_AUTO, 0, &opl3) < 0) { in snd_card_als100_probe() 270 if ((error = snd_opl3_timer_new(opl3, 0, 1)) < 0) { in snd_card_als100_probe() 274 if ((error = snd_opl3_hwdep_new(opl3, 0, 1, NULL)) < 0) { in snd_card_als100_probe()
|
D | cmi8328.c | 220 struct snd_opl3 *opl3; in snd_cmi8328_probe() local 358 if (snd_opl3_create(card, 0x388, 0x38a, OPL3_HW_AUTO, 0, &opl3) < 0) in snd_cmi8328_probe() 361 if (snd_opl3_hwdep_new(opl3, 0, 1, NULL) < 0) in snd_cmi8328_probe()
|
D | sc6000.c | 557 struct snd_opl3 *opl3; in snd_sc6000_probe() local 646 OPL3_HW_AUTO, 0, &opl3) < 0) { in snd_sc6000_probe() 650 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_sc6000_probe()
|
D | cmi8330.c | 540 struct snd_opl3 *opl3; in snd_cmi8330_probe() local 587 OPL3_HW_AUTO, 0, &opl3) < 0) { in snd_cmi8330_probe() 592 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_cmi8330_probe()
|
D | opl3sa2.c | 655 struct snd_opl3 *opl3; in snd_opl3sa2_probe() local 701 OPL3_HW_OPL3, 0, &opl3)) < 0) in snd_opl3sa2_probe() 703 if ((err = snd_opl3_timer_new(opl3, 1, 2)) < 0) in snd_opl3sa2_probe() 705 if ((err = snd_opl3_hwdep_new(opl3, 0, 1, &chip->synth)) < 0) in snd_opl3sa2_probe()
|
D | es18xx.c | 2128 struct snd_opl3 *opl3; in snd_audiodrive_probe() local 2161 OPL3_HW_OPL3, 0, &opl3) < 0) { in snd_audiodrive_probe() 2166 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_audiodrive_probe()
|
/linux-4.1.27/sound/isa/sb/ |
D | sb8.c | 102 struct snd_opl3 *opl3; in snd_sb8_probe() local 169 &opl3)) < 0) { in snd_sb8_probe() 175 &opl3)) < 0) { in snd_sb8_probe() 181 if ((err = snd_opl3_hwdep_new(opl3, 0, 1, NULL)) < 0) in snd_sb8_probe()
|
D | jazz16.c | 226 struct snd_opl3 *opl3; in snd_jazz16_probe() local 308 OPL3_HW_AUTO, 1, &opl3); in snd_jazz16_probe() 313 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_jazz16_probe()
|
D | sb16.c | 346 struct snd_opl3 *opl3; in snd_sb16_probe() local 414 &opl3) < 0) { in snd_sb16_probe() 423 if ((err = snd_opl3_hwdep_new(opl3, 0, seqdev, &synth)) < 0) in snd_sb16_probe()
|
/linux-4.1.27/sound/isa/ad1816a/ |
D | ad1816a.c | 144 struct snd_opl3 *opl3; in snd_card_ad1816a_probe() local 200 OPL3_HW_AUTO, 0, &opl3) < 0) { in snd_card_ad1816a_probe() 203 error = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_card_ad1816a_probe()
|
/linux-4.1.27/sound/drivers/opl4/ |
D | opl4_lib.c | 200 struct snd_opl3 *opl3; in snd_opl4_create() local 242 err = snd_opl3_create(card, fm_port, fm_port + 2, opl4->hardware, 1, &opl3); in snd_opl4_create() 263 *ropl3 = opl3; in snd_opl4_create()
|
/linux-4.1.27/sound/pci/ymfpci/ |
D | ymfpci.c | 182 struct snd_opl3 *opl3; in snd_card_ymfpci_probe() local 332 OPL3_HW_OPL3, 1, &opl3)) < 0) { in snd_card_ymfpci_probe() 338 } else if ((err = snd_opl3_hwdep_new(opl3, 0, 1, NULL)) < 0) { in snd_card_ymfpci_probe()
|
/linux-4.1.27/sound/isa/es1688/ |
D | es1688.c | 140 struct snd_opl3 *opl3; in snd_es1688_probe() local 162 OPL3_HW_OPL3, 0, &opl3) < 0) in snd_es1688_probe() 166 error = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_es1688_probe()
|
/linux-4.1.27/sound/isa/galaxy/ |
D | galaxy.c | 592 struct snd_opl3 *opl3; in snd_galaxy_probe() local 595 OPL3_HW_AUTO, 0, &opl3); in snd_galaxy_probe() 600 err = snd_opl3_timer_new(opl3, 1, 2); in snd_galaxy_probe() 604 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_galaxy_probe()
|
/linux-4.1.27/sound/isa/gus/ |
D | gusextreme.c | 242 struct snd_opl3 *opl3; in snd_gusextreme_probe() local 312 OPL3_HW_OPL3, 0, &opl3) < 0) in snd_gusextreme_probe() 315 error = snd_opl3_hwdep_new(opl3, 0, 2, NULL); in snd_gusextreme_probe()
|
/linux-4.1.27/sound/isa/opti9xx/ |
D | opti92x-ad1848.c | 902 struct snd_opl3 *opl3 = NULL; local 912 2, &opl3, &opl4) < 0) { 919 if (!opl3 && snd_opl3_create(card, fm_port, fm_port + 2, 920 OPL3_HW_AUTO, 0, &opl3) < 0) { 924 if (opl3) { 925 error = snd_opl3_hwdep_new(opl3, 0, 1, &synth);
|
D | miro.c | 1371 struct snd_opl3 *opl3 = NULL; in snd_miro_probe() local 1375 2, &opl3, &opl4) < 0) in snd_miro_probe()
|
/linux-4.1.27/sound/drivers/ |
D | Makefile | 25 obj-$(CONFIG_SND) += opl3/ opl4/ mpu401/ vx/ pcsp/
|
/linux-4.1.27/sound/pci/ |
D | cs4281.c | 1878 static void snd_cs4281_opl3_command(struct snd_opl3 *opl3, unsigned short cmd, in snd_cs4281_opl3_command() argument 1882 struct cs4281 *chip = opl3->private_data; in snd_cs4281_opl3_command() 1890 spin_lock_irqsave(&opl3->reg_lock, flags); in snd_cs4281_opl3_command() 1898 spin_unlock_irqrestore(&opl3->reg_lock, flags); in snd_cs4281_opl3_command() 1907 struct snd_opl3 *opl3; in snd_cs4281_probe() local 1940 if ((err = snd_opl3_new(card, OPL3_HW_OPL3_CS4281, &opl3)) < 0) { in snd_cs4281_probe() 1944 opl3->private_data = chip; in snd_cs4281_probe() 1945 opl3->command = snd_cs4281_opl3_command; in snd_cs4281_probe() 1946 snd_opl3_init(opl3); in snd_cs4281_probe() 1947 if ((err = snd_opl3_hwdep_new(opl3, 0, 1, NULL)) < 0) { in snd_cs4281_probe()
|
D | als4000.c | 858 struct snd_opl3 *opl3; in snd_card_als4000_probe() local 956 OPL3_HW_AUTO, 1, &opl3) < 0) { in snd_card_als4000_probe() 961 if ((err = snd_opl3_hwdep_new(opl3, 0, 1, NULL)) < 0) { in snd_card_als4000_probe()
|
D | azt3328.c | 2521 struct snd_opl3 *opl3; in snd_azf3328_probe() local 2572 OPL3_HW_AUTO, 1, &opl3) < 0) { in snd_azf3328_probe() 2578 err = snd_opl3_timer_new(opl3, 1, 2); in snd_azf3328_probe() 2581 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_azf3328_probe() 2584 opl3->private_data = chip; in snd_azf3328_probe()
|
D | es1938.c | 1770 struct snd_opl3 *opl3; in snd_es1938_probe() local 1815 OPL3_HW_OPL3, 1, &opl3) < 0) { in snd_es1938_probe() 1819 if ((err = snd_opl3_timer_new(opl3, 0, 1)) < 0) { in snd_es1938_probe() 1823 if ((err = snd_opl3_hwdep_new(opl3, 0, 1, NULL)) < 0) { in snd_es1938_probe()
|
D | fm801.c | 1283 struct snd_opl3 *opl3; in snd_card_fm801_probe() local 1330 OPL3_HW_OPL3_FM801, 1, &opl3)) < 0) { in snd_card_fm801_probe() 1334 if ((err = snd_opl3_hwdep_new(opl3, 0, 1, NULL)) < 0) { in snd_card_fm801_probe()
|
D | sonicvibes.c | 1453 struct snd_opl3 *opl3; in snd_sonic_probe() local 1509 OPL3_HW_OPL3_SV, 1, &opl3)) < 0) { in snd_sonic_probe() 1513 if ((err = snd_opl3_hwdep_new(opl3, 0, 1, NULL)) < 0) { in snd_sonic_probe()
|
D | als300.c | 126 struct snd_opl3 *opl3; member
|
D | cmipci.c | 2966 struct snd_opl3 *opl3; in snd_cmipci_create_fm() local 2976 OPL3_HW_OPL3, 1, &opl3); in snd_cmipci_create_fm() 2997 OPL3_HW_OPL3, 0, &opl3) < 0) { in snd_cmipci_create_fm() 3004 if ((err = snd_opl3_hwdep_new(opl3, 0, 1, NULL)) < 0) { in snd_cmipci_create_fm()
|
/linux-4.1.27/sound/isa/wavefront/ |
D | wavefront.c | 394 struct snd_opl3 *opl3; in snd_wavefront_probe() local 397 OPL3_HW_OPL3_CS, 0, &opl3); in snd_wavefront_probe() 403 err = snd_opl3_hwdep_new(opl3, hw_dev, 1, NULL); in snd_wavefront_probe()
|
/linux-4.1.27/sound/isa/cs423x/ |
D | cs4236.c | 386 struct snd_opl3 *opl3; in snd_cs423x_probe() local 439 OPL3_HW_OPL3_CS, 0, &opl3) < 0) { in snd_cs423x_probe() 442 if ((err = snd_opl3_hwdep_new(opl3, 0, 1, NULL)) < 0) in snd_cs423x_probe()
|
/linux-4.1.27/sound/oss/ |
D | Makefile | 21 obj-$(CONFIG_SOUND_YM3812) += opl3.o
|
D | Kconfig | 448 "opl3=<io>" to the kernel command line.
|
/linux-4.1.27/sound/pci/riptide/ |
D | riptide.c | 439 struct snd_opl3 *opl3; member 2122 OPL3_HW_RIPTIDE, 0, &chip->opl3); in snd_card_riptide_probe() 2129 err = snd_opl3_hwdep_new(chip->opl3, 0, 1, NULL); in snd_card_riptide_probe()
|