Lines Matching refs:port
39 * type flags for MIDI sequencer port
90 snd_printk(KERN_ERR "can't create port\n");
96 emu->ports[i] = p->chset.port;
122 * create a sequencer port and channel_set
164 p->chset.port = snd_seq_event_port_attach(emu->client, callback,
173 * release memory block for port
194 * initialize the port specific parameters
207 * reset port
210 snd_emux_reset_port(struct snd_emux_port *port)
215 snd_emux_sounds_off_all(port);
217 snd_midi_channel_set_clear(&port->chset);
220 snd_emux_clear_effect(port);
223 /* set port specific control parameters */
224 port->ctrls[EMUX_MD_DEF_BANK] = 0;
225 port->ctrls[EMUX_MD_DEF_DRUM] = 0;
226 port->ctrls[EMUX_MD_REALTIME_PAN] = 1;
228 for (i = 0; i < port->chset.max_channels; i++) {
229 struct snd_midi_channel *chan = port->chset.channels + i;
230 chan->drum_channel = ((port->drum_flags >> i) & 1) ? 1 : 0;
242 struct snd_emux_port *port;
244 port = private_data;
245 if (snd_BUG_ON(!port || !ev))
248 snd_midi_process_event(&emux_ops, ev, &port->chset);
303 * Routine that is called upon a first use of a particular port
326 * Routine that is called upon the last unuse() of a particular port.
373 rdev->port = emu->ports[i];