ALSA: usb-audio: Get UMP EP name string from USB interface
authorTakashi Iwai <tiwai@suse.de>
Tue, 23 May 2023 07:53:31 +0000 (09:53 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 23 May 2023 10:11:05 +0000 (12:11 +0200)
commit06cf3bf09d83944382b36c7617277619f25f49e4
treed950957bbd1a39a178f0278bf0fcaaf9ff8d6a1f
parentff49d1df79aef7580fe3ac99d17c3f886655d080
ALSA: usb-audio: Get UMP EP name string from USB interface

USB descriptor may provide a nicer name for USB interface, and we may
take it as the UMP Endpoint name.  The UMP EP name is copied as the
rawmidi name, too.

Also, fill the UMP block product_id field from the iSerialNumber
string of the USB device descriptor as a recommended unique id, too.

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