From 5ec164e7c3e441028d099b3234326295026cadfd Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Mon, 9 Oct 2023 11:44:55 +0100 Subject: [PATCH] ASoC: tegra: Only compile drivers if ASoC is enabled When compiling the out-of-tree audio drivers against a kernel that does not have CONFIG_SND_SOC enabled, the build fails because the various snd_soc_xxx functions are not exported by the kernel. Update the out-of-tree Makefile to only build the Tegra ASoC drivers if CONFIG_SND_SOC is enabled. Note that CONFIG_SOUND is enabled if CONFIG_SND_SOC is enabled so it is not necessary to check for both. Bug 4221847 Change-Id: I7a55e18324baa229d715fa0831df919502e2a3d3 Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2993768 Reviewed-by: Mohan Kumar D Reviewed-by: Viswanath L GVS: Gerrit_Virtual_Submit --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c7a56120..f427f758 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ endif obj-m += drivers/ -ifdef CONFIG_SOUND +ifdef CONFIG_SND_SOC obj-m += sound/soc/tegra/ obj-m += sound/tegra-safety-audio/ obj-m += sound/soc/tegra-virt-alt/