/Linux-v4.19/sound/drivers/opl3/ |
D | opl3_lib.c | 40 static void snd_opl2_command(struct snd_opl3 * opl3, unsigned short cmd, unsigned char val) in snd_opl2_command() argument 50 port = (cmd & OPL3_RIGHT) ? opl3->r_port : opl3->l_port; in snd_opl2_command() 52 spin_lock_irqsave(&opl3->reg_lock, flags); in snd_opl2_command() 60 spin_unlock_irqrestore(&opl3->reg_lock, flags); in snd_opl2_command() 63 static void snd_opl3_command(struct snd_opl3 * opl3, unsigned short cmd, unsigned char val) in snd_opl3_command() argument 73 port = (cmd & OPL3_RIGHT) ? opl3->r_port : opl3->l_port; in snd_opl3_command() 75 spin_lock_irqsave(&opl3->reg_lock, flags); in snd_opl3_command() 78 inb(opl3->l_port); in snd_opl3_command() 79 inb(opl3->l_port); in snd_opl3_command() 82 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 | 124 static void debug_alloc(struct snd_opl3 *opl3, char *s, int voice) { in debug_alloc() argument 128 printk(KERN_DEBUG "time %.5i: %s [%.2i]: ", opl3->use_time, s, voice); in debug_alloc() 129 for (i = 0; i < opl3->max_voices; i++) in debug_alloc() 130 printk(KERN_CONT "%c", *(str + opl3->voices[i].state + 1)); in debug_alloc() 138 static int opl3_get_voice(struct snd_opl3 *opl3, int instr_4op, in opl3_get_voice() argument 169 for (i = 0; i < opl3->max_voices; i++) { in opl3_get_voice() 170 vp = &opl3->voices[i]; in opl3_get_voice() 193 vp2 = &opl3->voices[i + 3]; in opl3_get_voice() 240 struct snd_opl3 *opl3 = from_timer(opl3, t, tlist); in snd_opl3_timer_func() local 245 spin_lock_irqsave(&opl3->voice_lock, flags); in snd_opl3_timer_func() [all …]
|
D | opl3_drums.c | 81 static void snd_opl3_drum_voice_set(struct snd_opl3 *opl3, in snd_opl3_drum_voice_set() argument 90 opl3->command(opl3, opl3_reg, data->am_vib); in snd_opl3_drum_voice_set() 94 opl3->command(opl3, opl3_reg, data->ksl_level); in snd_opl3_drum_voice_set() 98 opl3->command(opl3, opl3_reg, data->attack_decay); in snd_opl3_drum_voice_set() 102 opl3->command(opl3, opl3_reg, data->sustain_release); in snd_opl3_drum_voice_set() 106 opl3->command(opl3, opl3_reg, data->feedback_connection); in snd_opl3_drum_voice_set() 110 opl3->command(opl3, opl3_reg, data->wave_select); in snd_opl3_drum_voice_set() 116 static void snd_opl3_drum_note_set(struct snd_opl3 *opl3, in snd_opl3_drum_note_set() argument 124 opl3->command(opl3, opl3_reg, data->fnum); in snd_opl3_drum_note_set() 128 opl3->command(opl3, opl3_reg, data->octave_f); in snd_opl3_drum_note_set() [all …]
|
D | opl3_synth.c | 74 static int snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note); 75 static int snd_opl3_set_voice(struct snd_opl3 * opl3, struct snd_dm_fm_voice * voice); 76 static int snd_opl3_set_params(struct snd_opl3 * opl3, struct snd_dm_fm_params * params); 77 static int snd_opl3_set_mode(struct snd_opl3 * opl3, int mode); 78 static int snd_opl3_set_connection(struct snd_opl3 * opl3, int connection); 96 struct snd_opl3 *opl3 = hw->private_data; in snd_opl3_ioctl() local 99 if (snd_BUG_ON(!opl3)) in snd_opl3_ioctl() 108 info.fm_mode = opl3->fm_mode; in snd_opl3_ioctl() 109 info.rhythm = opl3->rhythm; in snd_opl3_ioctl() 119 snd_opl3_reset(opl3); in snd_opl3_ioctl() [all …]
|
D | opl3_oss.c | 44 struct snd_opl3 *opl3 = private_data; in snd_opl3_oss_event_input() local 47 snd_midi_process_event(&opl3_ops, ev, opl3->oss_chset); in snd_opl3_oss_event_input() 55 struct snd_opl3 *opl3 = private_data; in snd_opl3_oss_free_port() local 57 snd_midi_channel_free_set(opl3->oss_chset); in snd_opl3_oss_free_port() 60 static int snd_opl3_oss_create_port(struct snd_opl3 * opl3) in snd_opl3_oss_create_port() argument 66 voices = (opl3->hardware < OPL3_HW_OPL3) ? in snd_opl3_oss_create_port() 68 opl3->oss_chset = snd_midi_channel_alloc_set(voices); in snd_opl3_oss_create_port() 69 if (opl3->oss_chset == NULL) in snd_opl3_oss_create_port() 71 opl3->oss_chset->private_data = opl3; in snd_opl3_oss_create_port() 77 callbacks.private_data = opl3; in snd_opl3_oss_create_port() [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); 51 #define snd_opl3_init_seq_oss(opl3, name) /* NOP */ argument 52 #define snd_opl3_free_seq_oss(opl3) /* NOP */ argument
|
D | Makefile | 7 snd-opl3-lib-objs := opl3_lib.o opl3_synth.o 8 snd-opl3-synth-y := opl3_seq.o opl3_midi.o opl3_drums.o 10 snd-opl3-synth-y += opl3_oss.o 13 obj-$(CONFIG_SND_OPL3_LIB) += snd-opl3-lib.o 14 obj-$(CONFIG_SND_OPL4_LIB) += snd-opl3-lib.o 15 obj-$(CONFIG_SND_OPL3_LIB_SEQ) += snd-opl3-synth.o
|
/Linux-v4.19/include/sound/ |
D | opl3.h | 306 void (*command) (struct snd_opl3 * opl3, unsigned short cmd, unsigned char val); 357 int snd_opl3_init(struct snd_opl3 *opl3); 362 struct snd_opl3 ** opl3); 363 int snd_opl3_timer_new(struct snd_opl3 * opl3, int timer1_dev, int timer2_dev); 364 int snd_opl3_hwdep_new(struct snd_opl3 * opl3, int device, int seq_device, 373 void snd_opl3_reset(struct snd_opl3 * opl3); 378 int snd_opl3_load_patch(struct snd_opl3 *opl3, 383 struct fm_patch *snd_opl3_find_patch(struct snd_opl3 *opl3, int prog, int bank, 385 void snd_opl3_clear_patches(struct snd_opl3 *opl3); 388 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-v4.19/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 267 OPL3_HW_AUTO, 0, &opl3) < 0) { in snd_card_als100_probe() 271 if ((error = snd_opl3_timer_new(opl3, 0, 1)) < 0) { in snd_card_als100_probe() 275 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()
|
/Linux-v4.19/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()
|
/Linux-v4.19/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-v4.19/sound/drivers/opl4/ |
D | opl4_lib.c | 198 struct snd_opl3 *opl3; in snd_opl4_create() local 240 err = snd_opl3_create(card, fm_port, fm_port + 2, opl4->hardware, 1, &opl3); in snd_opl4_create() 259 *ropl3 = opl3; in snd_opl4_create()
|
/Linux-v4.19/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-v4.19/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-v4.19/sound/pci/ymfpci/ |
D | ymfpci.c | 182 struct snd_opl3 *opl3; in snd_card_ymfpci_probe() local 327 OPL3_HW_OPL3, 1, &opl3)) < 0) { in snd_card_ymfpci_probe() 333 } else if ((err = snd_opl3_hwdep_new(opl3, 0, 1, NULL)) < 0) { in snd_card_ymfpci_probe()
|
/Linux-v4.19/sound/isa/galaxy/ |
D | galaxy.c | 595 struct snd_opl3 *opl3; in snd_galaxy_probe() local 598 OPL3_HW_AUTO, 0, &opl3); in snd_galaxy_probe() 603 err = snd_opl3_timer_new(opl3, 1, 2); in snd_galaxy_probe() 607 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_galaxy_probe()
|
/Linux-v4.19/sound/isa/opti9xx/ |
D | opti92x-ad1848.c | 907 struct snd_opl3 *opl3 = NULL; local 917 2, &opl3, &opl4) < 0) { 924 if (!opl3 && snd_opl3_create(card, fm_port, fm_port + 2, 925 OPL3_HW_AUTO, 0, &opl3) < 0) { 929 if (opl3) { 930 error = snd_opl3_hwdep_new(opl3, 0, 1, &synth);
|
/Linux-v4.19/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()
|
/Linux-v4.19/sound/drivers/ |
D | Makefile | 26 obj-$(CONFIG_SND) += opl3/ opl4/ mpu401/ vx/ pcsp/
|