mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
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 <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2993768 Reviewed-by: Mohan Kumar D <mkumard@nvidia.com> Reviewed-by: Viswanath L <viswanathl@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
86fece401a
commit
5ec164e7c3
2
Makefile
2
Makefile
@@ -20,7 +20,7 @@ endif
|
|||||||
|
|
||||||
obj-m += drivers/
|
obj-m += drivers/
|
||||||
|
|
||||||
ifdef CONFIG_SOUND
|
ifdef CONFIG_SND_SOC
|
||||||
obj-m += sound/soc/tegra/
|
obj-m += sound/soc/tegra/
|
||||||
obj-m += sound/tegra-safety-audio/
|
obj-m += sound/tegra-safety-audio/
|
||||||
obj-m += sound/soc/tegra-virt-alt/
|
obj-m += sound/soc/tegra-virt-alt/
|
||||||
|
|||||||
Reference in New Issue
Block a user