Home
last modified time | relevance | path

Searched refs:opl3 (Results 1 – 25 of 42) sorted by relevance

12

/linux/sound/drivers/opl3/
H A Dopl3_lib.c36 port = (cmd & OPL3_RIGHT) ? opl3->r_port : opl3->l_port; in snd_opl2_command()
59 port = (cmd & OPL3_RIGHT) ? opl3->r_port : opl3->l_port; in snd_opl3_command()
99 opl3->command(opl3, OPL3_LEFT | OPL3_REG_TIMER1, 0xff); in snd_opl3_detect()
319 opl3->private_free(opl3); in snd_opl3_free()
323 kfree(opl3); in snd_opl3_free()
344 opl3 = kzalloc(sizeof(*opl3), GFP_KERNEL); in snd_opl3_new()
345 if (!opl3) in snd_opl3_new()
359 *ropl3 = opl3; in snd_opl3_new()
374 opl3->command(opl3, OPL3_LEFT | OPL3_REG_PERCUSSION, 0x00); in snd_opl3_init()
436 opl3->l_port, opl3->r_port); in snd_opl3_create()
[all …]
H A Dopl3_seq.c51 snd_opl3_reset(opl3); in snd_opl3_synth_setup()
58 opl3->use_time = 0; in snd_opl3_synth_setup()
62 opl3->command(opl3, OPL3_RIGHT | OPL3_REG_CONNECTION_SELECT, in snd_opl3_synth_setup()
83 hwdep = opl3->hwdep; in snd_opl3_synth_cleanup()
101 opl3->voices[6].state = opl3->voices[7].state = in snd_opl3_synth_use()
105 opl3->command(opl3, OPL3_LEFT | OPL3_REG_PERCUSSION, opl3->drum_reg); in snd_opl3_synth_use()
172 opl3->chset->private_data = opl3; in snd_opl3_synth_create_port()
185 opl3->chset->client = opl3->seq_client; in snd_opl3_synth_create_port()
216 if (opl3 == NULL) in snd_opl3_seq_probe()
227 snd_seq_create_kernel_client(opl3->card, opl3->seq_dev_num, in snd_opl3_seq_probe()
[all …]
H A Dopl3_midi.c396 opl3->command(opl3, opl3_reg, reg_val); in snd_opl3_note_on()
414 opl3->command(opl3, opl3_reg, opl3->connection_reg); in snd_opl3_note_on()
421 opl3->command(opl3, opl3_reg, opl3->connection_reg); in snd_opl3_note_on()
468 opl3->command(opl3, opl3_reg, reg_val); in snd_opl3_note_on()
473 opl3->command(opl3, opl3_reg, reg_val); in snd_opl3_note_on()
478 opl3->command(opl3, opl3_reg, reg_val); in snd_opl3_note_on()
483 opl3->command(opl3, opl3_reg, reg_val); in snd_opl3_note_on()
488 opl3->command(opl3, opl3_reg, reg_val); in snd_opl3_note_on()
500 opl3->command(opl3, opl3_reg, reg_val); in snd_opl3_note_on()
533 opl3->command(opl3, opl3_reg, fnum); in snd_opl3_note_on()
[all …]
H A Dopl3_synth.c342 memset(opl3->patch_table, 0, sizeof(opl3->patch_table)); in snd_opl3_clear_patches()
377 opl3->command(opl3, opl3_reg, 0x00); /* Note off */ in snd_opl3_reset()
418 opl3->command(opl3, opl3_reg, reg_val); in snd_opl3_play_note()
431 opl3->command(opl3, opl3_reg, reg_val); in snd_opl3_play_note()
488 opl3->command(opl3, opl3_reg, reg_val); in snd_opl3_set_voice()
497 opl3->command(opl3, opl3_reg, reg_val); in snd_opl3_set_voice()
506 opl3->command(opl3, opl3_reg, reg_val); in snd_opl3_set_voice()
515 opl3->command(opl3, opl3_reg, reg_val); in snd_opl3_set_voice()
531 opl3->command(opl3, opl3_reg, reg_val); in snd_opl3_set_voice()
536 opl3->command(opl3, opl3_reg, reg_val); in snd_opl3_set_voice()
[all …]
H A Dopl3_drums.c76 opl3->command(opl3, opl3_reg, data->am_vib); in snd_opl3_drum_voice_set()
80 opl3->command(opl3, opl3_reg, data->ksl_level); in snd_opl3_drum_voice_set()
84 opl3->command(opl3, opl3_reg, data->attack_decay); in snd_opl3_drum_voice_set()
88 opl3->command(opl3, opl3_reg, data->sustain_release); in snd_opl3_drum_voice_set()
92 opl3->command(opl3, opl3_reg, data->feedback_connection); in snd_opl3_drum_voice_set()
96 opl3->command(opl3, opl3_reg, data->wave_select); in snd_opl3_drum_voice_set()
110 opl3->command(opl3, opl3_reg, data->fnum); in snd_opl3_drum_note_set()
114 opl3->command(opl3, opl3_reg, data->octave_f); in snd_opl3_drum_note_set()
133 opl3->command(opl3, opl3_reg, reg_val); in snd_opl3_drum_vol_set()
143 opl3->command(opl3, opl3_reg, reg_val); in snd_opl3_drum_vol_set()
[all …]
H A Dopl3_oss.c58 opl3->oss_chset->private_data = opl3; in snd_opl3_oss_create_port()
69 opl3->oss_chset->client = opl3->seq_client; in snd_opl3_oss_create_port()
70 opl3->oss_chset->port = snd_seq_event_port_attach(opl3->seq_client, &callbacks, in snd_opl3_oss_create_port()
99 opl3->oss_seq_dev = dev; in snd_opl3_init_seq_oss()
111 arg->private_data = opl3; in snd_opl3_init_seq_oss()
122 if (opl3->oss_seq_dev) { in snd_opl3_free_seq_oss()
144 arg->private_data = opl3; in snd_opl3_open_seq_oss()
159 struct snd_opl3 *opl3; in snd_opl3_close_seq_oss() local
163 opl3 = arg->private_data; in snd_opl3_close_seq_oss()
179 struct snd_opl3 *opl3; in snd_opl3_load_patch_seq_oss() local
[all …]
H A Dopl3_voice.h12 int snd_opl3_synth_use_inc(struct snd_opl3 * opl3);
13 void snd_opl3_synth_use_dec(struct snd_opl3 * opl3);
14 int snd_opl3_synth_setup(struct snd_opl3 * opl3);
15 void snd_opl3_synth_cleanup(struct snd_opl3 * opl3);
30 void snd_opl3_load_drums(struct snd_opl3 *opl3);
31 void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int vel, int on_off, struct snd_midi_cha…
35 void snd_opl3_init_seq_oss(struct snd_opl3 *opl3, char *name);
36 void snd_opl3_free_seq_oss(struct snd_opl3 *opl3);
38 #define snd_opl3_init_seq_oss(opl3, name) /* NOP */ argument
39 #define snd_opl3_free_seq_oss(opl3) /* NOP */ argument
H A DMakefile7 snd-opl3-lib-y := 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/include/sound/
H A Dopl3.h290 void (*command) (struct snd_opl3 * opl3, unsigned short cmd, unsigned char val);
341 int snd_opl3_init(struct snd_opl3 *opl3);
346 struct snd_opl3 ** opl3);
347 int snd_opl3_timer_new(struct snd_opl3 * opl3, int timer1_dev, int timer2_dev);
348 int snd_opl3_hwdep_new(struct snd_opl3 * opl3, int device, int seq_device,
357 void snd_opl3_reset(struct snd_opl3 * opl3);
362 int snd_opl3_load_patch(struct snd_opl3 *opl3,
367 struct fm_patch *snd_opl3_find_patch(struct snd_opl3 *opl3, int prog, int bank,
369 void snd_opl3_clear_patches(struct snd_opl3 *opl3);
372 static inline void snd_opl3_clear_patches(struct snd_opl3 *opl3) {} in snd_opl3_clear_patches() argument
H A Dopl4.h17 struct snd_opl3 **opl3, struct snd_opl4 **opl4);
/linux/sound/isa/
H A Dadlib.c49 struct snd_opl3 *opl3; in snd_adlib_probe() local
68 error = snd_opl3_create(card, port[n], port[n] + 2, OPL3_HW_AUTO, 1, &opl3); in snd_adlib_probe()
74 error = snd_opl3_hwdep_new(opl3, 0, 0, NULL); in snd_adlib_probe()
H A Dazt2320.c170 struct snd_opl3 *opl3; in snd_card_azt2320_probe() local
219 OPL3_HW_AUTO, 0, &opl3) < 0) { in snd_card_azt2320_probe()
223 error = snd_opl3_timer_new(opl3, 1, 2); in snd_card_azt2320_probe()
226 error = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_card_azt2320_probe()
H A Dals100.c171 struct snd_opl3 *opl3; in snd_card_als100_probe() local
239 OPL3_HW_AUTO, 0, &opl3) < 0) { in snd_card_als100_probe()
243 error = snd_opl3_timer_new(opl3, 0, 1); in snd_card_als100_probe()
246 error = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_card_als100_probe()
H A Dcmi8328.c221 struct snd_opl3 *opl3; in snd_cmi8328_probe() local
359 if (snd_opl3_create(card, 0x388, 0x38a, OPL3_HW_AUTO, 0, &opl3) < 0) in snd_cmi8328_probe()
362 if (snd_opl3_hwdep_new(opl3, 0, 1, NULL) < 0) in snd_cmi8328_probe()
/linux/sound/isa/sb/
H A Dsb8.c77 struct snd_opl3 *opl3; in snd_sb8_probe() local
144 OPL3_HW_AUTO, 1, &opl3); in snd_sb8_probe()
149 OPL3_HW_AUTO, 1, &opl3); in snd_sb8_probe()
156 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_sb8_probe()
H A Djazz16.c223 struct snd_opl3 *opl3; in snd_jazz16_probe() local
302 OPL3_HW_AUTO, 1, &opl3); in snd_jazz16_probe()
307 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_jazz16_probe()
/linux/sound/drivers/opl4/
H A Dopl4_lib.c185 struct snd_opl3 *opl3; in snd_opl4_create() local
227 err = snd_opl3_create(card, fm_port, fm_port + 2, opl4->hardware, 1, &opl3); in snd_opl4_create()
246 *ropl3 = opl3; in snd_opl4_create()
/linux/sound/isa/ad1816a/
H A Dad1816a.c125 struct snd_opl3 *opl3; in snd_card_ad1816a_probe() local
175 OPL3_HW_AUTO, 0, &opl3) < 0) { in snd_card_ad1816a_probe()
178 error = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_card_ad1816a_probe()
/linux/sound/isa/gus/
H A Dgusextreme.c228 struct snd_opl3 *opl3; in snd_gusextreme_probe() local
298 OPL3_HW_OPL3, 0, &opl3) < 0) in snd_gusextreme_probe()
301 error = snd_opl3_hwdep_new(opl3, 0, 2, NULL); in snd_gusextreme_probe()
/linux/sound/pci/ymfpci/
H A Dymfpci.c163 struct snd_opl3 *opl3; in __snd_card_ymfpci_probe() local
324 OPL3_HW_OPL3, 1, &opl3); in __snd_card_ymfpci_probe()
332 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in __snd_card_ymfpci_probe()
/linux/sound/isa/es1688/
H A Des1688.c120 struct snd_opl3 *opl3; in snd_es1688_probe() local
142 OPL3_HW_OPL3, 0, &opl3) < 0) in snd_es1688_probe()
146 error = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_es1688_probe()
/linux/sound/isa/galaxy/
H A Dgalaxy.c576 struct snd_opl3 *opl3; in __snd_galaxy_probe() local
579 OPL3_HW_AUTO, 0, &opl3); in __snd_galaxy_probe()
584 err = snd_opl3_timer_new(opl3, 1, 2); in __snd_galaxy_probe()
588 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in __snd_galaxy_probe()
/linux/sound/isa/opti9xx/
H A Dopti92x-ad1848.c884 struct snd_opl3 *opl3 = NULL; local
894 2, &opl3, &opl4) < 0) {
901 if (!opl3 && snd_opl3_create(card, fm_port, fm_port + 2,
902 OPL3_HW_AUTO, 0, &opl3) < 0) {
906 if (opl3) {
907 error = snd_opl3_hwdep_new(opl3, 0, 1, &synth);
/linux/sound/pci/
H A Dcs4281.c1804 static void snd_cs4281_opl3_command(struct snd_opl3 *opl3, unsigned short cmd, in snd_cs4281_opl3_command() argument
1808 struct cs4281 *chip = opl3->private_data; in snd_cs4281_opl3_command()
1816 spin_lock_irqsave(&opl3->reg_lock, flags); in snd_cs4281_opl3_command()
1824 spin_unlock_irqrestore(&opl3->reg_lock, flags); in snd_cs4281_opl3_command()
1833 struct snd_opl3 *opl3; in __snd_cs4281_probe() local
1862 err = snd_opl3_new(card, OPL3_HW_OPL3_CS4281, &opl3); in __snd_cs4281_probe()
1865 opl3->private_data = chip; in __snd_cs4281_probe()
1866 opl3->command = snd_cs4281_opl3_command; in __snd_cs4281_probe()
1867 snd_opl3_init(opl3); in __snd_cs4281_probe()
1868 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in __snd_cs4281_probe()
/linux/sound/drivers/
H A DMakefile28 obj-$(CONFIG_SND) += opl3/ opl4/ mpu401/ vx/ pcsp/

12