1 // SPDX-License-Identifier: GPL-2.0
3 * soc-acpi-intel-icl-match.c - tables and support for ICL ACPI enumeration.
5 * Copyright (c) 2018, Intel Corporation.
9 #include <sound/soc-acpi.h>
10 #include <sound/soc-acpi-intel-match.h>
11 #include "../skylake/skl.h"
13 static struct skl_machine_pdata icl_pdata
= {
17 struct snd_soc_acpi_mach snd_soc_acpi_intel_icl_machines
[] = {
20 .drv_name
= "icl_rt274",
21 .fw_filename
= "intel/dsp_fw_icl.bin",
23 .sof_fw_filename
= "sof-icl.ri",
24 .sof_tplg_filename
= "sof-icl-rt274.tplg",
28 .drv_name
= "sof_rt5682",
29 .sof_fw_filename
= "sof-icl.ri",
30 .sof_tplg_filename
= "sof-icl-rt5682.tplg",
34 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_icl_machines
);
36 static const u64 rt700_0_adr
[] = {
40 static const struct snd_soc_acpi_link_adr icl_rvp
[] = {
43 .num_adr
= ARRAY_SIZE(rt700_0_adr
),
49 static const u64 rt711_0_adr
[] = {
53 static const u64 rt1308_1_adr
[] = {
57 static const u64 rt1308_2_adr
[] = {
61 static const u64 rt715_3_adr
[] = {
65 static const struct snd_soc_acpi_link_adr icl_3_in_1_default
[] = {
68 .num_adr
= ARRAY_SIZE(rt711_0_adr
),
73 .num_adr
= ARRAY_SIZE(rt1308_1_adr
),
78 .num_adr
= ARRAY_SIZE(rt1308_2_adr
),
83 .num_adr
= ARRAY_SIZE(rt715_3_adr
),
89 static const struct snd_soc_acpi_link_adr icl_3_in_1_mono_amp
[] = {
92 .num_adr
= ARRAY_SIZE(rt711_0_adr
),
97 .num_adr
= ARRAY_SIZE(rt1308_1_adr
),
102 .num_adr
= ARRAY_SIZE(rt715_3_adr
),
108 struct snd_soc_acpi_mach snd_soc_acpi_intel_icl_sdw_machines
[] = {
110 .link_mask
= 0xF, /* 4 active links required */
111 .links
= icl_3_in_1_default
,
112 .drv_name
= "sdw_rt711_rt1308_rt715",
113 .sof_fw_filename
= "sof-icl.ri",
114 .sof_tplg_filename
= "sof-icl-rt711-rt1308-rt715.tplg",
117 .link_mask
= 0xB, /* 3 active links required */
118 .links
= icl_3_in_1_mono_amp
,
119 .drv_name
= "sdw_rt711_rt1308_rt715",
120 .sof_fw_filename
= "sof-icl.ri",
121 .sof_tplg_filename
= "sof-icl-rt711-rt1308-rt715-mono.tplg",
124 .link_mask
= 0x1, /* rt700 connected on link0 */
126 .drv_name
= "sdw_rt700",
127 .sof_fw_filename
= "sof-icl.ri",
128 .sof_tplg_filename
= "sof-icl-rt700.tplg",
132 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_icl_sdw_machines
);
134 MODULE_LICENSE("GPL v2");
135 MODULE_DESCRIPTION("Intel Common ACPI Match module");