Skip to content

Commit 64bfd26

Browse files
plbossartbroonie
authored andcommitted
ASoC: Intel: soc-acpi: mtl: add support for Acer Swift Go 14
This device has an RT712 on link0, but does not rely on RT1712 for the DMIC. PCH-attached DMICs are used instead. Closes: thesofproject#4923 Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20240426152123.36284-5-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 02e6f7c commit 64bfd26

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

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

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ static const struct snd_soc_acpi_adr_device rt714_1_adr[] = {
357357
}
358358
};
359359

360-
static const struct snd_soc_acpi_link_adr mtl_712_only[] = {
360+
static const struct snd_soc_acpi_link_adr mtl_712_l0_1712_l3[] = {
361361
{
362362
.mask = BIT(0),
363363
.num_adr = ARRAY_SIZE(rt712_0_single_adr),
@@ -371,6 +371,15 @@ static const struct snd_soc_acpi_link_adr mtl_712_only[] = {
371371
{}
372372
};
373373

374+
static const struct snd_soc_acpi_link_adr mtl_712_l0[] = {
375+
{
376+
.mask = BIT(0),
377+
.num_adr = ARRAY_SIZE(rt712_0_single_adr),
378+
.adr_d = rt712_0_single_adr,
379+
},
380+
{}
381+
};
382+
374383
static const struct snd_soc_acpi_endpoint cs42l43_endpoints[] = {
375384
{ /* Jack Playback Endpoint */
376385
.num = 0,
@@ -769,10 +778,16 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_mtl_sdw_machines[] = {
769778
},
770779
{
771780
.link_mask = BIT(3) | BIT(0),
772-
.links = mtl_712_only,
781+
.links = mtl_712_l0_1712_l3,
773782
.drv_name = "sof_sdw",
774783
.sof_tplg_filename = "sof-mtl-rt712-l0-rt1712-l3.tplg",
775784
},
785+
{
786+
.link_mask = BIT(0),
787+
.links = mtl_712_l0,
788+
.drv_name = "sof_sdw",
789+
.sof_tplg_filename = "sof-mtl-rt712-l0.tplg",
790+
},
776791
{
777792
.link_mask = GENMASK(2, 0),
778793
.links = mtl_sdw_rt1318_l12_rt714_l0,

0 commit comments

Comments
 (0)