summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/common/soc-acpi-intel-hda-match.c
diff options
context:
space:
mode:
authorPierre-Louis Bossart2018-08-22 22:24:58 +0200
committerMark Brown2018-08-28 21:18:07 +0200
commit8dce1d026da4588382ed8c03e791c7c9b37b22e8 (patch)
treec3555342a84b468322922d4cde6f25e1caefc9b7 /sound/soc/intel/common/soc-acpi-intel-hda-match.c
parentALSA: hda: move hda_codec.h to include/sound (diff)
downloadkernel-qcow2-linux-8dce1d026da4588382ed8c03e791c7c9b37b22e8.tar.gz
kernel-qcow2-linux-8dce1d026da4588382ed8c03e791c7c9b37b22e8.tar.xz
kernel-qcow2-linux-8dce1d026da4588382ed8c03e791c7c9b37b22e8.zip
ASoC: Intel: common: add table for HDA-based platforms
Expose a table containing machine driver information for HDAudio-based platforms handled by ASoC on Intel hardware. We only set constant values that are valid across multiple platforms. The firmware name used by the DSP will be set dynamically for each platform. The table is made of a single entry for now, if we need more complicated set-up where HDAudio is mixed with ACPI-enumerated devices (I2C, SoundWire) then we'd expect the differentiation to be handled through information provided by the BIOS (as done for KBL Chromebooks). Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/common/soc-acpi-intel-hda-match.c')
-rw-r--r--sound/soc/intel/common/soc-acpi-intel-hda-match.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/sound/soc/intel/common/soc-acpi-intel-hda-match.c b/sound/soc/intel/common/soc-acpi-intel-hda-match.c
new file mode 100644
index 000000000000..533c1064f84b
--- /dev/null
+++ b/sound/soc/intel/common/soc-acpi-intel-hda-match.c
@@ -0,0 +1,40 @@
+// SPDX-License-Identifier: GPL-2.0
+// Copyright (c) 2018, Intel Corporation.
+
+/*
+ * soc-apci-intel-hda-match.c - tables and support for HDA+ACPI enumeration.
+ *
+ */
+
+#include <sound/soc-acpi.h>
+#include <sound/soc-acpi-intel-match.h>
+#include "../skylake/skl.h"
+
+static struct skl_machine_pdata hda_pdata = {
+ .use_tplg_pcm = true,
+};
+
+struct snd_soc_acpi_mach snd_soc_acpi_intel_hda_machines[] = {
+ {
+ /* .id is not used in this file */
+ .drv_name = "skl_hda_dsp_generic",
+
+ /* .fw_filename is dynamically set in skylake driver */
+
+ /* .sof_fw_filename is dynamically set in sof/intel driver */
+
+ .sof_tplg_filename = "intel/sof-hda-generic.tplg",
+
+ /*
+ * .machine_quirk and .quirk_data are not used here but
+ * can be used if we need a more complicated machine driver
+ * combining HDA+other device (e.g. DMIC).
+ */
+ .pdata = &hda_pdata,
+ },
+ {},
+};
+EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_hda_machines);
+
+MODULE_LICENSE("GPL v2");
+MODULE_DESCRIPTION("Intel Common ACPI Match module");