| /linux/sound/drivers/opl3/ |
| H A D | opl3_oss.c | 31 struct snd_opl3 *opl3 = private_data; in snd_opl3_oss_event_input() local 34 snd_midi_process_event(&opl3_ops, ev, opl3->oss_chset); in snd_opl3_oss_event_input() 42 struct snd_opl3 *opl3 = private_data; in snd_opl3_oss_free_port() local 44 snd_midi_channel_free_set(opl3->oss_chset); in snd_opl3_oss_free_port() 47 static int snd_opl3_oss_create_port(struct snd_opl3 * opl3) in snd_opl3_oss_create_port() argument 53 voices = (opl3->hardware < OPL3_HW_OPL3) ? in snd_opl3_oss_create_port() 55 opl3->oss_chset = snd_midi_channel_alloc_set(voices); in snd_opl3_oss_create_port() 56 if (opl3->oss_chset == NULL) in snd_opl3_oss_create_port() 58 opl3->oss_chset->private_data = opl3; in snd_opl3_oss_create_port() 64 callbacks.private_data = opl3; in snd_opl3_oss_create_port() [all …]
|
| H A D | opl3_synth.c | 60 static int snd_opl3_play_note(struct snd_opl3 * opl3, struct snd_dm_fm_note * note); 61 static int snd_opl3_set_voice(struct snd_opl3 * opl3, struct snd_dm_fm_voice * voice); 62 static int snd_opl3_set_params(struct snd_opl3 * opl3, struct snd_dm_fm_params * params); 63 static int snd_opl3_set_mode(struct snd_opl3 * opl3, int mode); 64 static int snd_opl3_set_connection(struct snd_opl3 * opl3, int connection); 82 struct snd_opl3 *opl3 = hw->private_data; in snd_opl3_ioctl() local 85 if (snd_BUG_ON(!opl3)) in snd_opl3_ioctl() 96 info.fm_mode = opl3->fm_mode; in snd_opl3_ioctl() 97 info.rhythm = opl3->rhythm; in snd_opl3_ioctl() 107 snd_opl3_reset(opl3); in snd_opl3_ioctl() [all …]
|
| H A D | opl3_drums.c | 67 static void snd_opl3_drum_voice_set(struct snd_opl3 *opl3, in snd_opl3_drum_voice_set() argument 76 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() 102 static void snd_opl3_drum_note_set(struct snd_opl3 *opl3, in snd_opl3_drum_note_set() argument 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() [all …]
|
| H A D | opl3_voice.h | 12 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 D | Makefile | 7 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 D | opl3.h | 290 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 D | opl4.h | 17 struct snd_opl3 **opl3, struct snd_opl4 **opl4);
|
| /linux/sound/isa/ |
| H A D | adlib.c | 49 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 D | azt2320.c | 168 struct snd_opl3 *opl3; in snd_card_azt2320_probe() local 217 OPL3_HW_AUTO, 0, &opl3) < 0) { in snd_card_azt2320_probe() 221 error = snd_opl3_timer_new(opl3, 1, 2); in snd_card_azt2320_probe() 224 error = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_card_azt2320_probe()
|
| H A D | als100.c | 169 struct snd_opl3 *opl3; in snd_card_als100_probe() local 237 OPL3_HW_AUTO, 0, &opl3) < 0) { in snd_card_als100_probe() 241 error = snd_opl3_timer_new(opl3, 0, 1); in snd_card_als100_probe() 244 error = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_card_als100_probe()
|
| H A D | cmi8328.c | 221 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()
|
| H A D | sc6000.c | 556 struct snd_opl3 *opl3; in __snd_sc6000_probe() local 635 OPL3_HW_AUTO, 0, &opl3) < 0) { in __snd_sc6000_probe() 639 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in __snd_sc6000_probe()
|
| /linux/sound/isa/sb/ |
| H A D | sb8.c | 78 struct snd_opl3 *opl3; in snd_sb8_probe() local 145 OPL3_HW_AUTO, 1, &opl3); in snd_sb8_probe() 150 OPL3_HW_AUTO, 1, &opl3); in snd_sb8_probe() 157 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_sb8_probe()
|
| H A D | jazz16.c | 225 struct snd_opl3 *opl3; in snd_jazz16_probe() local 304 OPL3_HW_AUTO, 1, &opl3); in snd_jazz16_probe() 309 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_jazz16_probe()
|
| /linux/sound/isa/ad1816a/ |
| H A D | ad1816a.c | 123 struct snd_opl3 *opl3; in snd_card_ad1816a_probe() local 174 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/es1688/ |
| H A D | es1688.c | 120 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/pci/ymfpci/ |
| H A D | ymfpci.c | 163 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/galaxy/ |
| H A D | galaxy.c | 576 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/drivers/ |
| H A D | Makefile | 28 obj-$(CONFIG_SND) += opl3/ opl4/ mpu401/ vx/ pcsp/
|
| /linux/sound/isa/wavefront/ |
| H A D | wavefront.c | 368 struct snd_opl3 *opl3; in snd_wavefront_probe() local 371 OPL3_HW_OPL3_CS, 0, &opl3); in snd_wavefront_probe() 377 err = snd_opl3_hwdep_new(opl3, hw_dev, 1, NULL); in snd_wavefront_probe()
|
| /linux/sound/isa/cs423x/ |
| H A D | cs4236.c | 331 struct snd_opl3 *opl3; in snd_cs423x_probe() local 389 OPL3_HW_OPL3_CS, 0, &opl3) < 0) { in snd_cs423x_probe() 392 err = snd_opl3_hwdep_new(opl3, 0, 1, NULL); in snd_cs423x_probe()
|
| /linux/Documentation/sound/kernel-api/ |
| H A D | writing-an-alsa-driver.rst | 38 /opl3 107 drivers/opl3 and opl4 3227 is defined in ``<sound/opl3.h>``. 3238 struct snd_opl3 *opl3; 3240 integrated, &opl3); 3250 the opl3 module will allocate the specified ports by itself. 3253 standard I/O access, you can create opl3 instance separately with 3256 struct snd_opl3 *opl3; 3257 snd_opl3_new(card, OPL3_HW_OPL3_XXX, &opl3); 3263 ``opl3->private_data`` field. [all …]
|
| /linux/sound/pci/riptide/ |
| H A D | riptide.c | 425 struct snd_opl3 *opl3; member 2080 OPL3_HW_RIPTIDE, 0, &chip->opl3); in __snd_card_riptide_probe() 2087 err = snd_opl3_hwdep_new(chip->opl3, 0, 1, NULL); in __snd_card_riptide_probe()
|