Commit 532d41a2 authored by Takashi Iwai's avatar Takashi Iwai Committed by Wen Zhiwei
Browse files

usb: gadget: midi2: Reverse-select at the right place

stable inclusion
from stable-v6.6.72
commit 43c204b22dd894a7f41b0ecf80f1cf3446604a79
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IBQN9L

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=43c204b22dd894a7f41b0ecf80f1cf3446604a79



--------------------------------

commit 6f660ffce7c938f2a5d8473c0e0b45e4fb25ef7f 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: 8b645922 ("usb: gadget: Add support for USB MIDI 2.0 function driver")
Cc: stable <stable@kernel.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20250101131124.27599-1-tiwai@suse.de


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarWen Zhiwei <wenzhiwei@kylinos.cn>
parent 9bdf7003
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -210,6 +210,8 @@ config USB_F_MIDI

config USB_F_MIDI2
	tristate
	select SND_UMP
	select SND_UMP_LEGACY_RAWMIDI

config USB_F_HID
	tristate
@@ -444,8 +446,6 @@ config USB_CONFIGFS_F_MIDI2
	depends on USB_CONFIGFS
	depends on SND
	select USB_LIBCOMPOSITE
	select SND_UMP
	select SND_UMP_LEGACY_RAWMIDI
	select USB_F_MIDI2
	help
	  The MIDI 2.0 function driver provides the generic emulated