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)
commite86caa011c80507783e5975bca1458f28c1d2b8c
treefc62899484e20ea1e9dbd6b4c37cb1ad5e3cfaef
parent8ac9e476b86851c94e0f33bea758e0a00e3f875e
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: 202e2f7745437aa5 ("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