Skip to content

Commit 0f8edb1

Browse files
plbossartbroonie
authored andcommitted
ASoC: Intel: soc-acpi: add support for HP Omen14 SoundWire configuration
This platform has an RT711-sdca on link0 and RT1316 on link3 Closes: thesofproject#4880 Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20240411220347.131267-3-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 7fda0ef commit 0f8edb1

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,15 @@ static const struct snd_soc_acpi_adr_device rt1316_2_group2_adr[] = {
296296
}
297297
};
298298

299+
static const struct snd_soc_acpi_adr_device rt1316_3_single_adr[] = {
300+
{
301+
.adr = 0x000330025D131601ull,
302+
.num_endpoints = 1,
303+
.endpoints = &single_endpoint,
304+
.name_prefix = "rt1316-1"
305+
}
306+
};
307+
299308
static const struct snd_soc_acpi_adr_device rt1318_1_group1_adr[] = {
300309
{
301310
.adr = 0x000130025D131801ull,
@@ -562,6 +571,20 @@ static const struct snd_soc_acpi_link_adr mtl_rt713_l0_rt1316_l12[] = {
562571
{}
563572
};
564573

574+
static const struct snd_soc_acpi_link_adr mtl_rt711_l0_rt1316_l3[] = {
575+
{
576+
.mask = BIT(0),
577+
.num_adr = ARRAY_SIZE(rt711_sdca_0_adr),
578+
.adr_d = rt711_sdca_0_adr,
579+
},
580+
{
581+
.mask = BIT(3),
582+
.num_adr = ARRAY_SIZE(rt1316_3_single_adr),
583+
.adr_d = rt1316_3_single_adr,
584+
},
585+
{}
586+
};
587+
565588
static const struct snd_soc_acpi_adr_device mx8363_2_adr[] = {
566589
{
567590
.adr = 0x000230019F836300ull,
@@ -703,6 +726,12 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_sdw_machines[] = {
703726
.drv_name = "sof_sdw",
704727
.sof_tplg_filename = "sof-mtl-rt711-l0-rt1316-l23-rt714-l1.tplg",
705728
},
729+
{
730+
.link_mask = 0x9, /* 2 active links required */
731+
.links = mtl_rt711_l0_rt1316_l3,
732+
.drv_name = "sof_sdw",
733+
.sof_tplg_filename = "sof-mtl-rt711-l0-rt1316-l3.tplg",
734+
},
706735
{
707736
.link_mask = BIT(0),
708737
.links = mtl_rt722_only,

0 commit comments

Comments
 (0)