summary refs log tree commit diff
path: root/sound/usb/midi.h
diff options
context:
space:
mode:
authorGeorge Harker <george@george-graphics.co.uk>2021-02-26 21:26:16 +0000
committerTakashi Iwai <tiwai@suse.de>2021-03-01 09:21:54 +0100
commiteb596e0fd13c83b4a66559a45b57b71aac340d30 (patch)
treee2c0b379fab3ff41f744fcefcb562b9c4482c880 /sound/usb/midi.h
parentd6e68c57e35b69b31d9fa5a61b37c840973db362 (diff)
downloadlinux-eb596e0fd13c83b4a66559a45b57b71aac340d30.tar.gz
ALSA: usb-audio: generate midi streaming substream names from jack names
A number of devices have named substreams which are hard to remember /
decypher from <device> MIDI n names. Eg. Korg puts a pass through on
one substream and iConnectivity devices name the connections.

This makes it easier to connect to the correct device.  Devices which
handle naming through quirks are unaffected by this change.

Addresses TODO comment in sound/usb/midi.c

Signed-off-by: George Harker <george@george-graphics.co.uk>
Link: https://lore.kernel.org/r/20210226212617.24616-1-george@george-graphics.co.uk
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/midi.h')
-rw-r--r--sound/usb/midi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/usb/midi.h b/sound/usb/midi.h
index 8c38aec22999..3f153195c841 100644
--- a/sound/usb/midi.h
+++ b/sound/usb/midi.h
@@ -13,6 +13,8 @@ struct snd_usb_midi_endpoint_info {
 	uint8_t  in_interval;
 	uint16_t out_cables;	/* bitmask */
 	uint16_t in_cables;	/* bitmask */
+	int16_t  assoc_in_jacks[16];
+	int16_t  assoc_out_jacks[16];
 };
 
 /* for QUIRK_MIDI_YAMAHA, data is NULL */