ASoC: amd: enable Yellow carp acp6x drivers build
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Mon, 18 Oct 2021 11:20:41 +0000 (16:50 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 18 Oct 2021 20:11:44 +0000 (21:11 +0100)
Yellow Carp ACP6x drivers can be built by selecting necessary
kernel config option.
The patch enables build support of the same.

Signed-off-by: Vijendar Mukunda<Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20211018112044.1705805-11-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/Kconfig
sound/soc/amd/Makefile
sound/soc/amd/yc/Makefile [new file with mode: 0644]

index d91a9399777cc33cab9ed3ab0cf4d39c81fc18fa..0d0ca61bd8c1249a2aeb23cff23a609a8758e69a 100644 (file)
@@ -74,3 +74,13 @@ config SND_SOC_AMD_VANGOGH_MACH
          using NAU8821 and CS35L41 codecs.
          Say m if you have such a device.
          If unsure select "N".
+
+config SND_SOC_AMD_ACP6x
+       tristate "AMD Audio Coprocessor-v6.x Yellow Carp support"
+       depends on X86 && PCI
+       help
+         This option enables Audio Coprocessor i.e ACP v6.x support on
+         AMD Yellow Carp platform. By enabling this flag build will be
+         triggered for ACP PCI driver, ACP PDM DMA driver.
+         Say m if you have such a device.
+         If unsure select "N".
index 07150d26f315520ed3eeeb0bc01d4aab84dabfef..c5b900d3df0be3dab825a5f1711f723187aa095c 100644 (file)
@@ -11,3 +11,4 @@ obj-$(CONFIG_SND_SOC_AMD_ACP3x) += raven/
 obj-$(CONFIG_SND_SOC_AMD_RV_RT5682_MACH) += snd-soc-acp-rt5682-mach.o
 obj-$(CONFIG_SND_SOC_AMD_RENOIR) += renoir/
 obj-$(CONFIG_SND_SOC_AMD_ACP5x) += vangogh/
+obj-$(CONFIG_SND_SOC_AMD_ACP6x) += yc/
diff --git a/sound/soc/amd/yc/Makefile b/sound/soc/amd/yc/Makefile
new file mode 100644 (file)
index 0000000..20f8dfe
--- /dev/null
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0+
+# Yellow Carp platform Support
+snd-pci-acp6x-objs     := pci-acp6x.o
+snd-acp6x-pdm-dma-objs := acp6x-pdm-dma.o
+
+obj-$(CONFIG_SND_SOC_AMD_ACP6x) += snd-pci-acp6x.o
+obj-$(CONFIG_SND_SOC_AMD_ACP6x) += snd-acp6x-pdm-dma.o