Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/sound/drivers/opl3/
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
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
A DMakefile7 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-6.3-rc2/include/sound/
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
A Dopl4.h17 struct snd_opl3 **opl3, struct snd_opl4 **opl4);
/linux-6.3-rc2/sound/isa/
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()
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()
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()
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-6.3-rc2/sound/isa/sb/
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()
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-6.3-rc2/sound/drivers/opl4/
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-6.3-rc2/sound/isa/ad1816a/
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-6.3-rc2/sound/pci/ymfpci/
A Dymfpci.c161 struct snd_opl3 *opl3; in snd_card_ymfpci_probe() local
309 OPL3_HW_OPL3, 1, &opl3); in snd_card_ymfpci_probe()
317 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_card_ymfpci_probe()
/linux-6.3-rc2/sound/isa/es1688/
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-6.3-rc2/sound/isa/gus/
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-6.3-rc2/sound/isa/galaxy/
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-6.3-rc2/sound/isa/opti9xx/
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-6.3-rc2/sound/pci/
A Dcs4281.c1807 static void snd_cs4281_opl3_command(struct snd_opl3 *opl3, unsigned short cmd, in snd_cs4281_opl3_command() argument
1811 struct cs4281 *chip = opl3->private_data; in snd_cs4281_opl3_command()
1819 spin_lock_irqsave(&opl3->reg_lock, flags); in snd_cs4281_opl3_command()
1827 spin_unlock_irqrestore(&opl3->reg_lock, flags); in snd_cs4281_opl3_command()
1836 struct snd_opl3 *opl3; in __snd_cs4281_probe() local
1865 err = snd_opl3_new(card, OPL3_HW_OPL3_CS4281, &opl3); in __snd_cs4281_probe()
1868 opl3->private_data = chip; in __snd_cs4281_probe()
1869 opl3->command = snd_cs4281_opl3_command; in __snd_cs4281_probe()
1870 snd_opl3_init(opl3); in __snd_cs4281_probe()
1871 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in __snd_cs4281_probe()
/linux-6.3-rc2/sound/drivers/
A DMakefile26 obj-$(CONFIG_SND) += opl3/ opl4/ mpu401/ vx/ pcsp/

Completed in 39 milliseconds

12