• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/sound/synth/emux/

Lines Matching refs:emu

44 static void emuspec_control(struct snd_emux *emu, struct snd_emux_port *port,
46 static void gusspec_control(struct snd_emux *emu, struct snd_emux_port *port,
48 static void fake_event(struct snd_emux *emu, struct snd_emux_port *port,
67 snd_emux_init_seq_oss(struct snd_emux *emu)
72 if (snd_seq_device_new(emu->card, 0, SNDRV_SEQ_DEV_ID_OSS,
76 emu->oss_synth = dev;
77 strcpy(dev->name, emu->name);
81 arg->nvoices = emu->max_voices;
83 arg->private_data = emu;
86 snd_device_register(emu->card, dev);
94 snd_emux_detach_seq_oss(struct snd_emux *emu)
96 if (emu->oss_synth) {
97 snd_device_free(emu->card, emu->oss_synth);
98 emu->oss_synth = NULL;
112 struct snd_emux *emu;
117 emu = closure;
118 snd_assert(arg != NULL && emu != NULL, return -ENXIO);
120 mutex_lock(&emu->register_mutex);
122 if (!snd_emux_inc_count(emu)) {
123 mutex_unlock(&emu->register_mutex);
131 sprintf(tmpname, "%s OSS Port", emu->name);
132 p = snd_emux_create_port(emu, tmpname, 32,
136 snd_emux_dec_count(emu);
137 mutex_unlock(&emu->register_mutex);
151 mutex_unlock(&emu->register_mutex);
184 struct snd_emux *emu;
191 emu = p->emu;
192 snd_assert(emu != NULL, return -ENXIO);
194 mutex_lock(&emu->register_mutex);
196 snd_soundfont_close_check(emu->sflist, SF_CLIENT_NO(p->chset.port));
198 snd_emux_dec_count(emu);
200 mutex_unlock(&emu->register_mutex);
212 struct snd_emux *emu;
220 emu = p->emu;
221 snd_assert(emu != NULL, return -ENXIO);
224 rc = snd_soundfont_load_guspatch(emu->sflist, buf, count,
234 rc = snd_soundfont_load(emu->sflist, buf, count, SF_CLIENT_NO(p->chset.port));
236 if (emu->ops.load_fx)
237 rc = emu->ops.load_fx(emu, patch.type, patch.optarg, buf, count);
254 struct snd_emux *emu;
260 emu = p->emu;
261 snd_assert(emu != NULL, return -ENXIO);
265 snd_soundfont_remove_samples(emu->sflist);
269 if (emu->memhdr)
270 return snd_util_mem_avail(emu->memhdr);
301 struct snd_emux *emu;
307 emu = p->emu;
308 snd_assert(emu != NULL, return -EINVAL);
318 emuspec_control(emu, p, cmd, data, atomic, hop);
320 gusspec_control(emu, p, cmd, data, atomic, hop);
329 emuspec_control(struct snd_emux *emu, struct snd_emux_port *port, int cmd,
354 snd_emux_terminate_all(emu);
358 /*snd_emux_mute_channel(emu, chan);*/
365 fake_event(emu, port, voice, MIDI_CTL_ALL_NOTES_OFF, 0, atomic, hop);
368 fake_event(emu, port, voice, MIDI_CTL_ALL_SOUNDS_OFF, 0, atomic, hop);
406 if (emu->ops.oss_ioctl)
407 emu->ops.oss_ioctl(emu, cmd, p1, p2);
419 gusspec_control(struct snd_emux *emu, struct snd_emux_port *port, int cmd,
487 fake_event(struct snd_emux *emu, struct snd_emux_port *port, int ch, int param, int val, int atomic, int hop)