Lines Matching refs:emu

29 static void emuspec_control(struct snd_emux *emu, struct snd_emux_port *port,
31 static void gusspec_control(struct snd_emux *emu, struct snd_emux_port *port,
33 static void fake_event(struct snd_emux *emu, struct snd_emux_port *port,
52 snd_emux_init_seq_oss(struct snd_emux *emu) in snd_emux_init_seq_oss() argument
58 if (snd_seq_device_new(emu->card, 1, SNDRV_SEQ_DEV_ID_OSS, in snd_emux_init_seq_oss()
62 emu->oss_synth = dev; in snd_emux_init_seq_oss()
63 strcpy(dev->name, emu->name); in snd_emux_init_seq_oss()
67 arg->nvoices = emu->max_voices; in snd_emux_init_seq_oss()
69 arg->private_data = emu; in snd_emux_init_seq_oss()
72 snd_device_register(emu->card, dev); in snd_emux_init_seq_oss()
80 snd_emux_detach_seq_oss(struct snd_emux *emu) in snd_emux_detach_seq_oss() argument
82 if (emu->oss_synth) { in snd_emux_detach_seq_oss()
83 snd_device_free(emu->card, emu->oss_synth); in snd_emux_detach_seq_oss()
84 emu->oss_synth = NULL; in snd_emux_detach_seq_oss()
98 struct snd_emux *emu; in snd_emux_open_seq_oss() local
103 emu = closure; in snd_emux_open_seq_oss()
104 if (snd_BUG_ON(!arg || !emu)) in snd_emux_open_seq_oss()
107 if (!snd_emux_inc_count(emu)) in snd_emux_open_seq_oss()
114 sprintf(tmpname, "%s OSS Port", emu->name); in snd_emux_open_seq_oss()
115 p = snd_emux_create_port(emu, tmpname, 32, in snd_emux_open_seq_oss()
119 snd_emux_dec_count(emu); in snd_emux_open_seq_oss()
164 struct snd_emux *emu; in snd_emux_close_seq_oss() local
173 emu = p->emu; in snd_emux_close_seq_oss()
174 if (snd_BUG_ON(!emu)) in snd_emux_close_seq_oss()
178 snd_soundfont_close_check(emu->sflist, SF_CLIENT_NO(p->chset.port)); in snd_emux_close_seq_oss()
180 snd_emux_dec_count(emu); in snd_emux_close_seq_oss()
193 struct snd_emux *emu; in snd_emux_load_patch_seq_oss() local
203 emu = p->emu; in snd_emux_load_patch_seq_oss()
204 if (snd_BUG_ON(!emu)) in snd_emux_load_patch_seq_oss()
208 rc = snd_soundfont_load_guspatch(emu->sflist, buf, count, in snd_emux_load_patch_seq_oss()
218 rc = snd_soundfont_load(emu->sflist, buf, count, SF_CLIENT_NO(p->chset.port)); in snd_emux_load_patch_seq_oss()
220 if (emu->ops.load_fx) in snd_emux_load_patch_seq_oss()
221 rc = emu->ops.load_fx(emu, patch.type, patch.optarg, buf, count); in snd_emux_load_patch_seq_oss()
238 struct snd_emux *emu; in snd_emux_ioctl_seq_oss() local
246 emu = p->emu; in snd_emux_ioctl_seq_oss()
247 if (snd_BUG_ON(!emu)) in snd_emux_ioctl_seq_oss()
252 snd_soundfont_remove_samples(emu->sflist); in snd_emux_ioctl_seq_oss()
256 if (emu->memhdr) in snd_emux_ioctl_seq_oss()
257 return snd_util_mem_avail(emu->memhdr); in snd_emux_ioctl_seq_oss()
290 struct snd_emux *emu; in snd_emux_event_oss_input() local
297 emu = p->emu; in snd_emux_event_oss_input()
298 if (snd_BUG_ON(!emu)) in snd_emux_event_oss_input()
309 emuspec_control(emu, p, cmd, data, atomic, hop); in snd_emux_event_oss_input()
311 gusspec_control(emu, p, cmd, data, atomic, hop); in snd_emux_event_oss_input()
320 emuspec_control(struct snd_emux *emu, struct snd_emux_port *port, int cmd, in emuspec_control() argument
341 snd_soundfont_remove_unlocked(emu->sflist); in emuspec_control()
350 snd_emux_terminate_all(emu); in emuspec_control()
361 fake_event(emu, port, voice, MIDI_CTL_ALL_NOTES_OFF, 0, atomic, hop); in emuspec_control()
364 fake_event(emu, port, voice, MIDI_CTL_ALL_SOUNDS_OFF, 0, atomic, hop); in emuspec_control()
402 if (emu->ops.oss_ioctl) in emuspec_control()
403 emu->ops.oss_ioctl(emu, cmd, p1, p2); in emuspec_control()
415 gusspec_control(struct snd_emux *emu, struct snd_emux_port *port, int cmd, in gusspec_control() argument
481 fake_event(struct snd_emux *emu, struct snd_emux_port *port, int ch, int param, int val, int atomic… in fake_event() argument