]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tegra: SND_SOC_TEGRA_AUDIO_GRAPH_CARD should depend on SND_SOC_TEGRA
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 29 Jan 2021 12:59:15 +0000 (13:59 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 1 Feb 2021 13:19:46 +0000 (13:19 +0000)
commitf179641411a1f9a70744fd0b28994367a873c6b9
treefc62899484e20ea1e9dbd6b4c37cb1ad5e3cfaef
parentc1525b9a3076d609e3e43c270dc5daba15877df7
ASoC: tegra: SND_SOC_TEGRA_AUDIO_GRAPH_CARD should depend on SND_SOC_TEGRA

Audio Graph Card based Tegra driver is only useful on NVIDIA Tegra SoCs.
Hence add a dependency on SND_SOC_TEGRA, to prevent asking the user
about this driver when configuring a kernel without Tegra sound support.

Wrap all Tegra sound config options inside a big if/endif block, instead
of just adding the dependency to the single config option that does not
have it yet, to preventing similar future mistakes.

Fixes: ba41eff5bc86cae0 ("ASoC: tegra: Add audio graph based card driver")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Sameer Pujar <spujar@nvidia.com>
Link: https://lore.kernel.org/r/20210129125915.2652952-1-geert+renesas@glider.be
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/Kconfig