]> git.ipfire.org Git - thirdparty/linux.git/commit - sound/pci/hda/patch_realtek.c
ALSA: hda - Use IS_REACHABLE() for dependency on input
authorTakashi Iwai <tiwai@suse.de>
Mon, 15 Jan 2018 09:44:35 +0000 (10:44 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 15 Jan 2018 19:16:54 +0000 (20:16 +0100)
commitc469652bb5e8fb715db7d152f46d33b3740c9b87
tree93217db0de08f1ca2cf41dc55fe1debaaa70725e
parent671ec859e5ee06ab0bf968e639a25576b18865ad
ALSA: hda - Use IS_REACHABLE() for dependency on input

The commit ffcd28d88e4f ("ALSA: hda - Select INPUT for Realtek
HD-audio codec") introduced the reverse-selection of CONFIG_INPUT for
Realtek codec in order to avoid the mess with dependency between
built-in and modules.  Later on, we obtained IS_REACHABLE() macro
exactly for this kind of problems, and now we can remove th INPUT
selection in Kconfig and put IS_REACHABLE(INPUT) to the appropriate
places in the code, so that the driver doesn't need to select other
subsystem forcibly.

Fixes: ffcd28d88e4f ("ALSA: hda - Select INPUT for Realtek HD-audio codec")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # and build-tested
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/Kconfig
sound/pci/hda/patch_realtek.c