MIDI messages can be filtered by channel so that multiple devices can coexist on the same MIDI bus. By default all channels should be accepted; this is important because Line6 devices seem to have different default channels. Accept all MIDI messages by default to avoid confusing users when messages are silently filtered out. If filtering is necessary due to multiple devices on the bus, users can set the midi_mask_transmit and midi_mask_receive sysfs attributes. Signed-off-by: Stefan Hajnoczi <stefanha@xxxxxxxxx> --- drivers/staging/line6/midi.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/line6/midi.c b/drivers/staging/line6/midi.c index e554a2d..2d81d2a 100644 --- a/drivers/staging/line6/midi.c +++ b/drivers/staging/line6/midi.c @@ -399,8 +399,8 @@ int line6_init_midi(struct usb_line6 *line6) return err; line6midi->line6 = line6; - line6midi->midi_mask_transmit = 1; - line6midi->midi_mask_receive = 4; + line6midi->midi_mask_transmit = 0xffff; + line6midi->midi_mask_receive = 0xffff; line6->line6midi = line6midi; err = snd_device_new(line6->card, SNDRV_DEV_RAWMIDI, line6midi, -- 1.7.7 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel