]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: amd: enable RPL Platform acp drivers build
authorSyed Saba Kareem <Syed.SabaKareem@amd.com>
Thu, 21 Jul 2022 06:10:02 +0000 (11:40 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 21 Jul 2022 22:25:19 +0000 (23:25 +0100)
RPL Platform drivers can be built by selecting necessary
kernel config option.
The patch enables build support of the same.

Signed-off-by: Syed Saba Kareem <Syed.SabaKareem@amd.com>
Reviewed-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://lore.kernel.org/r/20220721061035.91139-5-Syed.SabaKareem@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/Kconfig
sound/soc/amd/Makefile
sound/soc/amd/rpl/Makefile [new file with mode: 0644]

index 9c2fef2ce89fda895f847a4192ecf0770e99922a..08f5289dac5408cca3ba08878d26aa8d40838b97 100644 (file)
@@ -117,3 +117,13 @@ config SND_AMD_ACP_CONFIG
         driver modules to use
 
 source "sound/soc/amd/acp/Kconfig"
+
+config SND_SOC_AMD_RPL_ACP6x
+        tristate "AMD Audio Coprocessor-v6.2 RPL support"
+        depends on X86 && PCI
+        help
+          This option enables Audio Coprocessor i.e ACP v6.2 support on
+          AMD RPL platform. By enabling this flag build will be
+          triggered for ACP PCI driver.
+          Say m if you have such a device.
+          If unsure select "N".
index 8823f6f28611947c736408c8a7bbe7077aa30a4e..0592e7c5c40711a316cededfe36541339a45d947 100644 (file)
@@ -17,3 +17,4 @@ obj-$(CONFIG_SND_SOC_AMD_ACP5x) += vangogh/
 obj-$(CONFIG_SND_SOC_AMD_ACP6x) += yc/
 obj-$(CONFIG_SND_SOC_AMD_ACP_COMMON) += acp/
 obj-$(CONFIG_SND_AMD_ACP_CONFIG) += snd-acp-config.o
+obj-$(CONFIG_SND_SOC_AMD_RPL_ACP6x) += rpl/
diff --git a/sound/soc/amd/rpl/Makefile b/sound/soc/amd/rpl/Makefile
new file mode 100644 (file)
index 0000000..11a33a0
--- /dev/null
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0+
+# RPL platform Support
+snd-rpl-pci-acp6x-objs := rpl-pci-acp6x.o
+
+obj-$(CONFIG_SND_SOC_AMD_RPL_ACP6x) += snd-rpl-pci-acp6x.o