ASoC: Intel: common: add ACPI matching tables for ICL
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Sat, 1 Dec 2018 00:54:37 +0000 (18:54 -0600)
committerMark Brown <broonie@kernel.org>
Mon, 3 Dec 2018 12:02:13 +0000 (12:02 +0000)
Entry needed for ICL RVP w/ RT274

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-acpi-intel-match.h
sound/soc/intel/common/Makefile
sound/soc/intel/common/soc-acpi-intel-icl-match.c [new file with mode: 0644]

index f48f59e5b7b02bc394f184e9e39ab0f66503c8a8..bb5e1e4ce8bf915eb8d449a97ecd4075a0f5fa25 100644 (file)
@@ -24,6 +24,7 @@ extern struct snd_soc_acpi_mach snd_soc_acpi_intel_kbl_machines[];
 extern struct snd_soc_acpi_mach snd_soc_acpi_intel_bxt_machines[];
 extern struct snd_soc_acpi_mach snd_soc_acpi_intel_glk_machines[];
 extern struct snd_soc_acpi_mach snd_soc_acpi_intel_cnl_machines[];
+extern struct snd_soc_acpi_mach snd_soc_acpi_intel_icl_machines[];
 
 /*
  * generic table used for HDA codec-based platforms, possibly with
index c1f50a079d34aad252b84fe6830e01fb987bb5d4..56c81e20b5bf8d617a48cd59e02e2cbf58dfc169 100644 (file)
@@ -7,7 +7,7 @@ snd-soc-acpi-intel-match-objs := soc-acpi-intel-byt-match.o soc-acpi-intel-cht-m
        soc-acpi-intel-hsw-bdw-match.o \
        soc-acpi-intel-skl-match.o soc-acpi-intel-kbl-match.o \
        soc-acpi-intel-bxt-match.o soc-acpi-intel-glk-match.o \
-       soc-acpi-intel-cnl-match.o \
+       soc-acpi-intel-cnl-match.o soc-acpi-intel-icl-match.o \
        soc-acpi-intel-hda-match.o
 
 obj-$(CONFIG_SND_SOC_INTEL_SST) += snd-soc-sst-dsp.o snd-soc-sst-ipc.o
diff --git a/sound/soc/intel/common/soc-acpi-intel-icl-match.c b/sound/soc/intel/common/soc-acpi-intel-icl-match.c
new file mode 100644 (file)
index 0000000..33b441d
--- /dev/null
@@ -0,0 +1,32 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * soc-apci-intel-icl-match.c - tables and support for ICL ACPI enumeration.
+ *
+ * Copyright (c) 2018, Intel Corporation.
+ *
+ */
+
+#include <sound/soc-acpi.h>
+#include <sound/soc-acpi-intel-match.h>
+#include "../skylake/skl.h"
+
+static struct skl_machine_pdata icl_pdata = {
+       .use_tplg_pcm = true,
+};
+
+struct snd_soc_acpi_mach snd_soc_acpi_intel_icl_machines[] = {
+       {
+               .id = "INT34C2",
+               .drv_name = "icl_rt274",
+               .fw_filename = "intel/dsp_fw_icl.bin",
+               .pdata = &icl_pdata,
+               .sof_fw_filename = "intel/sof-icl.ri",
+               .sof_tplg_filename = "intel/sof-icl-rt274.tplg",
+               .asoc_plat_name = "0000:00:1f.3",
+       },
+       {},
+};
+EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_icl_machines);
+
+MODULE_LICENSE("GPL v2");
+MODULE_DESCRIPTION("Intel Common ACPI Match module");