]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ASoC: Intel: soc-acpi: Add entry for rt711-sdca-sdw at link 2 in RPL match table
authorapoorv <apoorv@intel.com>
Wed, 19 Apr 2023 19:55:19 +0000 (14:55 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 20 Apr 2023 11:51:49 +0000 (12:51 +0100)
RT711 sdca sdw is added with SDW2 link for RPL-P CRB platform.

Signed-off-by: apoorv <apoorv@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20230419195524.46995-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/common/soc-acpi-intel-rpl-match.c

index 13cbd8e9d41f35f995046f819b1cd269b388bd5f..749d371a86ae2c68ac4cd1471f9e4046076cdf80 100644 (file)
@@ -284,6 +284,15 @@ static const struct snd_soc_acpi_link_adr rpl_sdw_rt1316_link12_rt714_link0[] =
        {}
 };
 
+static const struct snd_soc_acpi_link_adr rplp_crb[] = {
+       {
+               .mask = BIT(2),
+               .num_adr = ARRAY_SIZE(rt711_sdca_2_adr),
+               .adr_d = rt711_sdca_2_adr,
+       },
+       {}
+};
+
 static const struct snd_soc_acpi_codecs rpl_rt5682_hp = {
        .num_codecs = 2,
        .codecs = {"10EC5682", "RTL5682"},
@@ -348,7 +357,13 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_rpl_sdw_machines[] = {
                .link_mask = 0x1, /* link0 required */
                .links = rpl_rvp,
                .drv_name = "sof_sdw",
-               .sof_tplg_filename = "sof-rpl-rt711.tplg",
+               .sof_tplg_filename = "sof-rpl-rt711-l0.tplg",
+       },
+       {
+               .link_mask = 0x4, /* link2 required */
+               .links = rplp_crb,
+               .drv_name = "sof_sdw",
+               .sof_tplg_filename = "sof-rpl-rt711-l2.tplg",
        },
        {},
 };