Lines Matching refs:opl3

31 	struct snd_opl3 *opl3 = private_data;
34 snd_midi_process_event(&opl3_ops, ev, opl3->oss_chset);
42 struct snd_opl3 *opl3 = private_data;
44 snd_midi_channel_free_set(opl3->oss_chset);
47 static int snd_opl3_oss_create_port(struct snd_opl3 * opl3)
53 voices = (opl3->hardware < OPL3_HW_OPL3) ?
55 opl3->oss_chset = snd_midi_channel_alloc_set(voices);
56 if (opl3->oss_chset == NULL)
58 opl3->oss_chset->private_data = opl3;
64 callbacks.private_data = opl3;
66 opl_ver = (opl3->hardware & OPL3_HW_MASK) >> 8;
69 opl3->oss_chset->client = opl3->seq_client;
70 opl3->oss_chset->port = snd_seq_event_port_attach(opl3->seq_client, &callbacks,
78 if (opl3->oss_chset->port < 0) {
80 port = opl3->oss_chset->port;
81 snd_midi_channel_free_set(opl3->oss_chset);
90 void snd_opl3_init_seq_oss(struct snd_opl3 *opl3, char *name)
95 if (snd_seq_device_new(opl3->card, 0, SNDRV_SEQ_DEV_ID_OSS,
99 opl3->oss_seq_dev = dev;
103 if (opl3->hardware < OPL3_HW_OPL3) {
111 arg->private_data = opl3;
113 if (snd_opl3_oss_create_port(opl3)) {
115 snd_device_register(opl3->card, dev);
120 void snd_opl3_free_seq_oss(struct snd_opl3 *opl3)
122 if (opl3->oss_seq_dev) {
124 opl3->oss_seq_dev = NULL;
133 struct snd_opl3 *opl3 = closure;
139 err = snd_opl3_synth_setup(opl3);
144 arg->private_data = opl3;
145 arg->addr.client = opl3->oss_chset->client;
146 arg->addr.port = opl3->oss_chset->port;
148 err = snd_opl3_synth_use_inc(opl3);
152 opl3->synth_mode = SNDRV_OPL3_MODE_SYNTH;
159 struct snd_opl3 *opl3;
163 opl3 = arg->private_data;
165 snd_opl3_synth_cleanup(opl3);
167 snd_opl3_synth_use_dec(opl3);
179 struct snd_opl3 *opl3;
186 opl3 = arg->private_data;
211 err = snd_opl3_load_patch(opl3, sbi.channel, 127, type, name, NULL,