Lines Matching refs:port
109 emu->ports[i] = p->chset.port; in snd_emux_init_seq()
177 p->chset.port = snd_seq_event_port_attach(emu->client, callback, in snd_emux_create_port()
223 snd_emux_reset_port(struct snd_emux_port *port) in snd_emux_reset_port() argument
228 snd_emux_sounds_off_all(port); in snd_emux_reset_port()
230 snd_midi_channel_set_clear(&port->chset); in snd_emux_reset_port()
233 snd_emux_clear_effect(port); in snd_emux_reset_port()
237 port->ctrls[EMUX_MD_DEF_BANK] = 0; in snd_emux_reset_port()
238 port->ctrls[EMUX_MD_DEF_DRUM] = 0; in snd_emux_reset_port()
239 port->ctrls[EMUX_MD_REALTIME_PAN] = 1; in snd_emux_reset_port()
241 for (i = 0; i < port->chset.max_channels; i++) { in snd_emux_reset_port()
242 struct snd_midi_channel *chan = port->chset.channels + i; in snd_emux_reset_port()
243 chan->drum_channel = ((port->drum_flags >> i) & 1) ? 1 : 0; in snd_emux_reset_port()
255 struct snd_emux_port *port; in snd_emux_event_input() local
257 port = private_data; in snd_emux_event_input()
258 if (snd_BUG_ON(!port || !ev)) in snd_emux_event_input()
261 snd_midi_process_event(&emux_ops, ev, &port->chset); in snd_emux_event_input()
386 rdev->port = emu->ports[i]; in snd_emux_init_virmidi()