Commit 6bd05db7 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: hda/realtek: Restrict prompt only for CONFIG_EXPERT

The split of Realtek HD-audio codec driver may cause confusions
especially when migrating from the previous kernel configurations
because it's hard to know which driver to be enabled.
Although we've already set default=y for those codec drivers, it may
still make people changing the stuff unnecessarily without knowing its
side effect.

This patch is for avoiding such pitfalls by marking the prompt of each
Realtek codec driver with CONFIG_EXPERT.  For "normal" users (that is,
unless CONFIG_EXPERT is set), all Realtek HD-audio codecs are enabled
together with CONFIG_SND_HDA_CODEC_REALTEK; this is the very same
situation like the previous kernels, after all.

For users who really care about the minimalistic configuration, they
can turn each driver on/off individually after setting
CONFIG_EXPERT=y.

The patch also adds the missing help text to the top-level
CONFIG_SND_HDA_CODEC_REALTEK together with the explanation of
individual choices, too.

Fixes: aeeb85f2 ("ALSA: hda: Split Realtek HD-audio codec driver")
Link: https://lore.kernel.org/10172c80-daec-4e20-ab57-a483cf1afc02@molgen.mpg.de


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250806192541.21949-2-tiwai@suse.de
parent ed426689
Loading
Loading
Loading
Loading
+16 −12
Original line number Diff line number Diff line
@@ -2,6 +2,12 @@

menuconfig SND_HDA_CODEC_REALTEK
	tristate "Realtek HD-audio codec support"
	help
	  Say Y or M here to include Realtek HD-audio codec support.

	  This will enable all Realtek HD-audio codec drivers as default,
	  but you can enable/disable each codec driver individually, too
	  (only when CONFIG_EXPERT is set).

if SND_HDA_CODEC_REALTEK

@@ -12,7 +18,7 @@ config SND_HDA_CODEC_REALTEK_LIB
	select SND_HDA_SCODEC_COMPONENT

config SND_HDA_CODEC_ALC260
	tristate "Build Realtek ALC260 HD-audio codec support"
	tristate "Build Realtek ALC260 HD-audio codec support" if EXPERT
	depends on INPUT
	select SND_HDA_CODEC_REALTEK_LIB
	default y
@@ -20,7 +26,7 @@ config SND_HDA_CODEC_ALC260
	  Say Y or M here to include Realtek ALC260 HD-audio codec support

config SND_HDA_CODEC_ALC262
	tristate "Build Realtek ALC262 HD-audio codec support"
	tristate "Build Realtek ALC262 HD-audio codec support" if EXPERT
	depends on INPUT
	select SND_HDA_CODEC_REALTEK_LIB
	default y
@@ -28,7 +34,7 @@ config SND_HDA_CODEC_ALC262
	  Say Y or M here to include Realtek ALC262 HD-audio codec support

config SND_HDA_CODEC_ALC268
	tristate "Build Realtek ALC268 HD-audio codec support"
	tristate "Build Realtek ALC268 HD-audio codec support" if EXPERT
	depends on INPUT
	select SND_HDA_CODEC_REALTEK_LIB
	default y
@@ -37,7 +43,7 @@ config SND_HDA_CODEC_ALC268
	  codec support

config SND_HDA_CODEC_ALC269
	tristate "Build Realtek ALC269 HD-audio codecs support"
	tristate "Build Realtek ALC269 HD-audio codecs support" if EXPERT
	depends on INPUT
	select SND_HDA_CODEC_REALTEK_LIB
	default y
@@ -46,7 +52,7 @@ config SND_HDA_CODEC_ALC269
	  codec support

config SND_HDA_CODEC_ALC662
	tristate "Build Realtek ALC662 HD-audio codecs support"
	tristate "Build Realtek ALC662 HD-audio codecs support" if EXPERT
	depends on INPUT
	select SND_HDA_CODEC_REALTEK_LIB
	default y
@@ -55,7 +61,7 @@ config SND_HDA_CODEC_ALC662
	  codec support

config SND_HDA_CODEC_ALC680
	tristate "Build Realtek ALC680 HD-audio codecs support"
	tristate "Build Realtek ALC680 HD-audio codecs support" if EXPERT
	depends on INPUT
	select SND_HDA_CODEC_REALTEK_LIB
	default y
@@ -63,7 +69,7 @@ config SND_HDA_CODEC_ALC680
	  Say Y or M here to include Realtek ALC680 HD-audio codec support

config SND_HDA_CODEC_ALC861
	tristate "Build Realtek ALC861 HD-audio codecs support"
	tristate "Build Realtek ALC861 HD-audio codecs support" if EXPERT
	depends on INPUT
	select SND_HDA_CODEC_REALTEK_LIB
	default y
@@ -71,7 +77,7 @@ config SND_HDA_CODEC_ALC861
	  Say Y or M here to include Realtek ALC861 HD-audio codec support

config SND_HDA_CODEC_ALC861VD
	tristate "Build Realtek ALC861-VD HD-audio codecs support"
	tristate "Build Realtek ALC861-VD HD-audio codecs support" if EXPERT
	depends on INPUT
	select SND_HDA_CODEC_REALTEK_LIB
	default y
@@ -79,7 +85,7 @@ config SND_HDA_CODEC_ALC861VD
	  Say Y or M here to include Realtek ALC861-VD HD-audio codec support

config SND_HDA_CODEC_ALC880
	tristate "Build Realtek ALC880 HD-audio codecs support"
	tristate "Build Realtek ALC880 HD-audio codecs support" if EXPERT
	depends on INPUT
	select SND_HDA_CODEC_REALTEK_LIB
	default y
@@ -87,7 +93,7 @@ config SND_HDA_CODEC_ALC880
	  Say Y or M here to include Realtek ALC880 HD-audio codec support

config SND_HDA_CODEC_ALC882
	tristate "Build Realtek ALC882 HD-audio codecs support"
	tristate "Build Realtek ALC882 HD-audio codecs support" if EXPERT
	depends on INPUT
	select SND_HDA_CODEC_REALTEK_LIB
	default y
@@ -96,5 +102,3 @@ config SND_HDA_CODEC_ALC882
	  codec support

endif