Merge series "soundwire/ASoC: add mockup codec support" from Bard Liao <yung-chuan...
[linux-2.6-microblaze.git] / sound / soc / intel / common / soc-acpi-intel-tgl-match.c
index e2488f0..785d5f5 100644 (file)
@@ -197,6 +197,15 @@ static const struct snd_soc_acpi_link_adr tgl_rvp[] = {
        {}
 };
 
+static const struct snd_soc_acpi_link_adr tgl_rvp_headset_only[] = {
+       {
+               .mask = BIT(0),
+               .num_adr = ARRAY_SIZE(rt711_0_adr),
+               .adr_d = rt711_0_adr,
+       },
+       {}
+};
+
 static const struct snd_soc_acpi_link_adr tgl_hp[] = {
        {
                .mask = BIT(0),
@@ -421,6 +430,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_tgl_sdw_machines[] = {
                .drv_name = "sof_sdw",
                .sof_tplg_filename = "sof-tgl-sdw-max98373-rt5682.tplg",
        },
+       {
+               .link_mask = 0x1, /* rt711 on link 0 */
+               .links = tgl_rvp_headset_only,
+               .drv_name = "sof_sdw",
+               .sof_tplg_filename = "sof-tgl-rt711.tplg",
+       },
        {},
 };
 EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_tgl_sdw_machines);