Lines Matching refs:substream
512 static int snd_portman_midi_open(struct snd_rawmidi_substream *substream) in snd_portman_midi_open() argument
517 static int snd_portman_midi_close(struct snd_rawmidi_substream *substream) in snd_portman_midi_close() argument
522 static void snd_portman_midi_input_trigger(struct snd_rawmidi_substream *substream, in snd_portman_midi_input_trigger() argument
525 struct portman *pm = substream->rmidi->private_data; in snd_portman_midi_input_trigger()
530 pm->mode[substream->number] |= PORTMAN2X4_MODE_INPUT_TRIGGERED; in snd_portman_midi_input_trigger()
532 pm->mode[substream->number] &= ~PORTMAN2X4_MODE_INPUT_TRIGGERED; in snd_portman_midi_input_trigger()
536 static void snd_portman_midi_output_trigger(struct snd_rawmidi_substream *substream, in snd_portman_midi_output_trigger() argument
539 struct portman *pm = substream->rmidi->private_data; in snd_portman_midi_output_trigger()
545 while ((snd_rawmidi_transmit(substream, &byte, 1) == 1)) in snd_portman_midi_output_trigger()
546 portman_write_midi(pm, substream->number, byte); in snd_portman_midi_output_trigger()
568 struct snd_rawmidi_substream *substream; in snd_portman_rawmidi_create() local
594 list_for_each_entry(substream, in snd_portman_rawmidi_create()
597 sprintf(substream->name, in snd_portman_rawmidi_create()
598 "Portman2x4 %d", substream->number+1); in snd_portman_rawmidi_create()
601 list_for_each_entry(substream, in snd_portman_rawmidi_create()
604 pm->midi_input[substream->number] = substream; in snd_portman_rawmidi_create()
605 sprintf(substream->name, in snd_portman_rawmidi_create()
606 "Portman2x4 %d", substream->number+1); in snd_portman_rawmidi_create()