Skip to content

Commit af8efbb

Browse files
ASoC: Intel: common: add match table for TGL MAX98373 + RT5682 SoundWire driver
RT5682 is in Soundwire mode on Link0 & 2x MAX98373 on link1. Signed-off-by: Naveen Manohar <naveen.m@intel.com>
1 parent 9668fe9 commit af8efbb

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

sound/soc/intel/common/soc-acpi-intel-tgl-match.c

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,19 @@ static const struct snd_soc_acpi_adr_device rt1308_1_adr[] = {
5656
}
5757
};
5858

59+
static const struct snd_soc_acpi_adr_device mx8373_1_adr[] = {
60+
{
61+
.adr = 0x000123019F837300,
62+
.num_endpoints = 1,
63+
.endpoints = &spk_l_endpoint,
64+
},
65+
{
66+
.adr = 0x000127019F837300,
67+
.num_endpoints = 1,
68+
.endpoints = &spk_r_endpoint,
69+
}
70+
};
71+
5972
static const struct snd_soc_acpi_adr_device rt5682_0_adr[] = {
6073
{
6174
.adr = 0x000021025D568200,
@@ -93,6 +106,11 @@ static const struct snd_soc_acpi_link_adr tgl_chromebook_base[] = {
93106
.num_adr = ARRAY_SIZE(rt5682_0_adr),
94107
.adr_d = rt5682_0_adr,
95108
},
109+
{
110+
.mask = BIT(1),
111+
.num_adr = ARRAY_SIZE(mx8373_1_adr),
112+
.adr_d = mx8373_1_adr,
113+
},
96114
{}
97115
};
98116

@@ -139,6 +157,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_tgl_sdw_machines[] = {
139157
.sof_fw_filename = "sof-tgl.ri",
140158
.sof_tplg_filename = "sof-tgl-rt711-rt1308.tplg",
141159
},
160+
{
161+
.link_mask = 0x3, /* rt5682 on link0 & 2xmax98373 on link 1 */
162+
.links = tgl_chromebook_base,
163+
.drv_name = "sof_sdw",
164+
.sof_fw_filename = "sof-tgl.ri",
165+
.sof_tplg_filename = "sof-tgl-sdw-max98373-rt5682.tplg",
166+
},
142167
{
143168
.link_mask = 0x1, /* this will only enable rt5682 for now */
144169
.links = tgl_chromebook_base,

0 commit comments

Comments
 (0)