ALSA: usb-audio: Trim superfluous "MIDI" suffix from UMP EP name
authorTakashi Iwai <tiwai@suse.de>
Tue, 23 May 2023 07:53:32 +0000 (09:53 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 May 2023 10:11:06 +0000 (12:11 +0200)
commit51701400a94e999c3109c84f88273a9face51c4b
tree2ec2a92404c2b1d4133f4f61b3fc2f4c9929353e
parent06cf3bf09d83944382b36c7617277619f25f49e4
ALSA: usb-audio: Trim superfluous "MIDI" suffix from UMP EP name

A single USB audio device may have multiple interfaces for different
purposes (e.g. audio, MIDI and HID), where the iInterface descriptor
of each interface may contain an own suffix, e.g. "MIDI" for a MIDI
interface.  as such a suffix is superfluous as a rawmidi and UMP
Endpoint name, this patch trims the superfluous "MIDI" suffix from the
name string.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20230523075358.9672-12-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/midi2.c