mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4dee13db29
commit
1c93738177
@@ -368,14 +368,15 @@ Function-specific configfs interface
|
||||
The function name to use when creating the function directory is "midi".
|
||||
The MIDI function provides these attributes in its function directory:
|
||||
|
||||
=============== ====================================
|
||||
buflen MIDI buffer length
|
||||
id ID string for the USB MIDI adapter
|
||||
in_ports number of MIDI input ports
|
||||
index index value for the USB MIDI adapter
|
||||
out_ports number of MIDI output ports
|
||||
qlen USB read request queue length
|
||||
=============== ====================================
|
||||
================ ====================================
|
||||
buflen MIDI buffer length
|
||||
id ID string for the USB MIDI adapter
|
||||
in_ports number of MIDI input ports
|
||||
index index value for the USB MIDI adapter
|
||||
out_ports number of MIDI output ports
|
||||
qlen USB read request queue length
|
||||
interface_string USB AudioControl interface string
|
||||
================ ====================================
|
||||
|
||||
Testing the MIDI function
|
||||
-------------------------
|
||||
|
||||
Reference in New Issue
Block a user