]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Make CONFIG_SND_HDA_CODEC_* tristate
authorTakashi Iwai <tiwai@suse.de>
Wed, 18 Dec 2013 06:35:11 +0000 (07:35 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 19 Dec 2013 13:36:11 +0000 (14:36 +0100)
commit7f5de5c7e21d8809880a3c4f086e0dbb7475edae
treee4eb0b979bfe2c569320d1dcfe983354e516e0a9
parent8b7a6497b1ef2a48e0797b9d8705cb109f3a3dea
ALSA: hda - Make CONFIG_SND_HDA_CODEC_* tristate

So far, CONFIG_SND_HDA_CODEC_* kconfigs have been booleans due to
historical reasons.  The major reason was that the automatic codec
driver probing wouldn't work if user sets a codec driver as a module
while the controller driver as a built-in.  And, another reason was to
avoid exporting symbols of the helper codes when all drivers are built
in.

But, this sort of "kindness" rather confuses people in the end,
especially makes the config refinement via localmodconfig unhappy.
Also, a codec module would still work if you re-bind the controller
driver via sysfs (although it's no automatic loading), so there might
be a slight use case.

That said, better to let people fallen into a pitfall than being too
smart and restrict something.  Let's make things straightforward: now
all CONFIG_SND_HDA_CODEC_* become tristate, and all symbols exported
unconditionally.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/Kconfig
sound/pci/hda/Makefile
sound/pci/hda/hda_codec.h