]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Use imply for SND_SOC_ALL_CODECS
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 7 Feb 2020 09:13:51 +0000 (10:13 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 11 Feb 2020 11:26:58 +0000 (11:26 +0000)
commitddc1c80c9ab168a19c60776c76b610d74f09b437
treedc26fe43ee175c70ac3940eb4fd8dd0969c73fc5
parent6417a115109f655fd08a7a29b216f15f8debb584
ASoC: Use imply for SND_SOC_ALL_CODECS

Currently SND_SOC_ALL_CODECS selects the config symbols for all codec
drivers.  As "select" bypasses dependencies, lots of "select" statements
need explicit dependencies, which are hard to get right, and hard to
maintain[*].

Fix this by using "imply" instead, which is a weak version of "select",
and which obeys dependencies of target symbols.

Add dependencies to invisible symbols that are currently selected only
if their dependencies are fulfilled.

[*] See e.g. commit 06cf2267b47b5213 ("ASoC: wcd934x: Add missing
    COMMON_CLK dependency to SND_SOC_ALL_CODECS").

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20200207091351.18133-1-geert@linux-m68k.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/Kconfig