]> git.ipfire.org Git - thirdparty/linux.git/commit
usb: gadget: f_midi: allow customizing the USB MIDI interface string through configfs
authorVictor Krawiec <victor.krawiec@arturia.com>
Tue, 9 Dec 2025 16:40:06 +0000 (17:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Dec 2025 13:43:01 +0000 (14:43 +0100)
commit1c93738177d3a94d51dcb1c3ea41967f3fe946ba
treec39213cb1b36615b1e3a590e7d2914c6e701ad92
parent4dee13db29de6dd869af9b3827e1ff569644e838
usb: gadget: f_midi: allow customizing the USB MIDI interface string through configfs

When using f_midi from configfs the USB MIDI interface string is hardcoded
to 'MIDI function'.

This USB string descriptor is used by some third-party OS or software to
display the name of the MIDI device

Since we add an additional string option a new macro block was created to
factorize declarations

Signed-off-by: Victor Krawiec <victor.krawiec@arturia.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20251209164006.143219-1-victor.krawiec@arturia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/configfs-usb-gadget-midi
Documentation/usb/gadget-testing.rst
drivers/usb/gadget/function/f_midi.c
drivers/usb/gadget/function/u_midi.h