Skip to content

Commit dd50401

Browse files
tiwaimehmetb0
authored andcommitted
usb: gadget: midi2: Reverse-select at the right place
BugLink: https://bugs.launchpad.net/bugs/2106770 commit 6f660ff upstream. We should do reverse selection of other components from CONFIG_USB_F_MIDI2 which is tristate, instead of CONFIG_USB_CONFIGFS_F_MIDI2 which is bool, for satisfying subtle module dependencies. Fixes: 8b64592 ("usb: gadget: Add support for USB MIDI 2.0 function driver") Cc: stable <stable@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://lore.kernel.org/r/20250101131124.27599-1-tiwai@suse.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com> Signed-off-by: Mehmet Basaran <mehmet.basaran@canonical.com>
1 parent c6e7b38 commit dd50401

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/usb/gadget/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ config USB_F_MIDI
210210

211211
config USB_F_MIDI2
212212
tristate
213+
select SND_UMP
214+
select SND_UMP_LEGACY_RAWMIDI
213215

214216
config USB_F_HID
215217
tristate
@@ -444,8 +446,6 @@ config USB_CONFIGFS_F_MIDI2
444446
depends on USB_CONFIGFS
445447
depends on SND
446448
select USB_LIBCOMPOSITE
447-
select SND_UMP
448-
select SND_UMP_LEGACY_RAWMIDI
449449
select USB_F_MIDI2
450450
help
451451
The MIDI 2.0 function driver provides the generic emulated

0 commit comments

Comments
 (0)