Lines Matching refs:opl3

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()
66 opl_ver = (opl3->hardware & OPL3_HW_MASK) >> 8; 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()
78 if (opl3->oss_chset->port < 0) { in snd_opl3_oss_create_port()
80 port = opl3->oss_chset->port; in snd_opl3_oss_create_port()
81 snd_midi_channel_free_set(opl3->oss_chset); in snd_opl3_oss_create_port()
90 void snd_opl3_init_seq_oss(struct snd_opl3 *opl3, char *name) in snd_opl3_init_seq_oss() argument
95 if (snd_seq_device_new(opl3->card, 0, SNDRV_SEQ_DEV_ID_OSS, in snd_opl3_init_seq_oss()
99 opl3->oss_seq_dev = dev; in snd_opl3_init_seq_oss()
103 if (opl3->hardware < OPL3_HW_OPL3) { in snd_opl3_init_seq_oss()
111 arg->private_data = opl3; in snd_opl3_init_seq_oss()
113 if (snd_opl3_oss_create_port(opl3)) { in snd_opl3_init_seq_oss()
115 snd_device_register(opl3->card, dev); in snd_opl3_init_seq_oss()
120 void snd_opl3_free_seq_oss(struct snd_opl3 *opl3) in snd_opl3_free_seq_oss() argument
122 if (opl3->oss_seq_dev) { in snd_opl3_free_seq_oss()
124 opl3->oss_seq_dev = NULL; in snd_opl3_free_seq_oss()
133 struct snd_opl3 *opl3 = closure; in snd_opl3_open_seq_oss() local
139 err = snd_opl3_synth_setup(opl3); in snd_opl3_open_seq_oss()
144 arg->private_data = opl3; in snd_opl3_open_seq_oss()
145 arg->addr.client = opl3->oss_chset->client; in snd_opl3_open_seq_oss()
146 arg->addr.port = opl3->oss_chset->port; in snd_opl3_open_seq_oss()
148 err = snd_opl3_synth_use_inc(opl3); in snd_opl3_open_seq_oss()
152 opl3->synth_mode = SNDRV_OPL3_MODE_SYNTH; 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()
165 snd_opl3_synth_cleanup(opl3); in snd_opl3_close_seq_oss()
167 snd_opl3_synth_use_dec(opl3); in snd_opl3_close_seq_oss()
179 struct snd_opl3 *opl3; in snd_opl3_load_patch_seq_oss() local
186 opl3 = arg->private_data; in snd_opl3_load_patch_seq_oss()
211 err = snd_opl3_load_patch(opl3, sbi.channel, 127, type, name, NULL, in snd_opl3_load_patch_seq_oss()