From 4103ed0a7e92bc837fd9ea74cb346e71c2f7a026 Mon Sep 17 00:00:00 2001 From: Sameer Pujar Date: Thu, 4 Aug 2022 21:20:06 +0530 Subject: [PATCH] ASoC: tegra: Enable OOT drivers build All build errors have been now addressed by previous commits in the series. Now enable OOT drivers build. To do so, update top level makefile to include drivers path and update the internal makefile to build individual drivers. Some of the AHUB drivers are already upstreamed and are part of v5.15 core kernel. But presently the drivers are copied to provide full feature set. To differentiate core modules from OOT modules the *.ko files here use "oot" string. Bug 3583581 Change-Id: I21d51c542ed4ed7dddf7cf8d8202ebc496049fff Signed-off-by: Sameer Pujar Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2774434 Reviewed-by: Mohan Kumar D Reviewed-by: Sharad Gupta GVS: Gerrit_Virtual_Submit --- Makefile | 1 + sound/soc/tegra/Makefile | 41 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 sound/soc/tegra/Makefile diff --git a/Makefile b/Makefile index 6e9b0744..c8af276a 100644 --- a/Makefile +++ b/Makefile @@ -2,3 +2,4 @@ # Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved. obj-m += drivers/ +obj-m += sound/soc/tegra/ diff --git a/sound/soc/tegra/Makefile b/sound/soc/tegra/Makefile new file mode 100644 index 00000000..80cf62b0 --- /dev/null +++ b/sound/soc/tegra/Makefile @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: GPL-2.0 + +LINUXINCLUDE += -I$(srctree.nvidia-oot)/include + +snd-soc-tegra-utils-oot-objs := tegra_asoc_utils.o tegra_asoc_machine.o \ + tegra_isomgr_bw.o tegra_codecs.o +snd-soc-tegra210-ahub-oot-objs := tegra210_ahub.o +snd-soc-tegra210-dmic-oot-objs := tegra210_dmic.o +snd-soc-tegra210-i2s-oot-objs := tegra210_i2s.o +snd-soc-tegra186-dspk-oot-objs := tegra186_dspk.o +snd-soc-tegra210-admaif-oot-objs := tegra210_admaif.o +snd-soc-tegra210-amx-oot-objs := tegra210_amx.o +snd-soc-tegra210-adx-oot-objs := tegra210_adx.o +snd-soc-tegra210-mixer-oot-objs := tegra210_mixer.o +snd-soc-tegra210-sfc-oot-objs := tegra210_sfc.o +snd-soc-tegra210-afc-oot-objs := tegra210_afc.o +snd-soc-tegra210-mvc-oot-objs := tegra210_mvc.o +snd-soc-tegra210-iqc-oot-objs := tegra210_iqc.o +snd-soc-tegra186-asrc-oot-objs := tegra186_asrc.o +snd-soc-tegra186-arad-oot-objs := tegra186_arad.o +snd-soc-tegra210-ope-oot-objs := tegra210_ope.o tegra210_peq.o \ + tegra210_mbdrc.o +snd-soc-tegra-machine-driver-oot-objs := tegra_machine_driver.o + +obj-m += snd-soc-tegra-utils-oot.o +obj-m += snd-soc-tegra210-dmic-oot.o +obj-m += snd-soc-tegra210-ahub-oot.o +obj-m += snd-soc-tegra210-i2s-oot.o +obj-m += snd-soc-tegra186-dspk-oot.o +obj-m += snd-soc-tegra210-admaif-oot.o +obj-m += snd-soc-tegra210-amx-oot.o +obj-m += snd-soc-tegra210-adx-oot.o +obj-m += snd-soc-tegra210-mixer-oot.o +obj-m += snd-soc-tegra210-sfc-oot.o +obj-m += snd-soc-tegra210-afc-oot.o +obj-m += snd-soc-tegra210-mvc-oot.o +obj-m += snd-soc-tegra210-iqc-oot.o +obj-m += snd-soc-tegra210-ope-oot.o +obj-m += snd-soc-tegra186-arad-oot.o +obj-m += snd-soc-tegra186-asrc-oot.o +obj-m += snd-soc-tegra-machine-driver-oot.o