Skip to content

Commit 5fe3143

Browse files
committed
ASoC: Intel: soc-acpi-intel-adl-match: Reorder ACPI machine tables
Sort ACPI machine tables by link count to ensure that configurations with the highest number of matching links are selected. Align the ordering with commit 08095e2 ("ASoC: Intel: soc-acpi-intel-ptl-match: Sort ACPI link/machine tables"). Signed-off-by: Mac Chiang <mac.chiang@intel.com>
1 parent 7604e1a commit 5fe3143

1 file changed

Lines changed: 30 additions & 30 deletions

File tree

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

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -682,12 +682,6 @@ EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_adl_machines);
682682

683683
/* this table is used when there is no I2S codec present */
684684
struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_sdw_machines[] = {
685-
{
686-
.link_mask = BIT(0) | BIT(2) | BIT(3),
687-
.links = adl_cs42l43_l0_cs35l56_l23,
688-
.drv_name = "sof_sdw",
689-
.sof_tplg_filename = "sof-adl-cs42l43-l0-cs35l56-l23.tplg",
690-
},
691685
{
692686
.link_mask = 0xF, /* 4 active links required */
693687
.links = adl_default,
@@ -713,22 +707,22 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_sdw_machines[] = {
713707
.sof_tplg_filename = "sof-adl-rt711-l2-rt1316-l01-rt714-l3.tplg",
714708
},
715709
{
716-
.link_mask = 0x7, /* rt1316 on link0 and link1 & rt711 on link2*/
717-
.links = adl_sdw_rt711_link2_rt1316_link01,
710+
.link_mask = 0x7, /* rt714 on link0 & two rt1316s on link1 and link2 */
711+
.links = adl_sdw_rt1316_link12_rt714_link0,
718712
.drv_name = "sof_sdw",
719-
.sof_tplg_filename = "sof-adl-rt711-l2-rt1316-l01.tplg",
713+
.sof_tplg_filename = "sof-adl-rt1316-l12-rt714-l0.tplg",
720714
},
721715
{
722-
.link_mask = 0xC, /* rt1316 on link2 & rt714 on link3 */
723-
.links = adl_sdw_rt1316_link2_rt714_link3,
716+
.link_mask = 0x7, /* rt1316 on link0 and link1 & rt711 on link2*/
717+
.links = adl_sdw_rt711_link2_rt1316_link01,
724718
.drv_name = "sof_sdw",
725-
.sof_tplg_filename = "sof-adl-rt1316-l2-mono-rt714-l3.tplg",
719+
.sof_tplg_filename = "sof-adl-rt711-l2-rt1316-l01.tplg",
726720
},
727721
{
728-
.link_mask = 0x7, /* rt714 on link0 & two rt1316s on link1 and link2 */
729-
.links = adl_sdw_rt1316_link12_rt714_link0,
722+
.link_mask = BIT(0) | BIT(2) | BIT(3),
723+
.links = adl_cs42l43_l0_cs35l56_l23,
730724
.drv_name = "sof_sdw",
731-
.sof_tplg_filename = "sof-adl-rt1316-l12-rt714-l0.tplg",
725+
.sof_tplg_filename = "sof-adl-cs42l43-l0-cs35l56-l23.tplg",
732726
},
733727
{
734728
.link_mask = 0x3, /* rt1316 on link1 & rt714 on link0 */
@@ -742,17 +736,35 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_sdw_machines[] = {
742736
.drv_name = "sof_sdw",
743737
.sof_tplg_filename = "sof-adl-rt1316-l2-mono-rt714-l0.tplg",
744738
},
739+
{
740+
.link_mask = 0x5, /* 2 active links required */
741+
.links = adl_sdw_rt711_link0_rt1316_link2,
742+
.drv_name = "sof_sdw",
743+
.sof_tplg_filename = "sof-adl-rt711-l0-rt1316-l2.tplg",
744+
},
745+
{
746+
.link_mask = 0x5, /* rt5682 on link0 & 2xmax98373 on link 2 */
747+
.links = adl_chromebook_base,
748+
.drv_name = "sof_sdw",
749+
.sof_tplg_filename = "sof-adl-sdw-max98373-rt5682.tplg",
750+
},
751+
{
752+
.link_mask = BIT(0) | BIT(2),
753+
.links = adl_sdw_rt1316_link02,
754+
.drv_name = "sof_sdw",
755+
.sof_tplg_filename = "sof-adl-rt1316-l02.tplg",
756+
},
745757
{
746758
.link_mask = 0x9, /* 2 active links required */
747759
.links = adl_sdw_rt711_link0_rt1316_link3,
748760
.drv_name = "sof_sdw",
749761
.sof_tplg_filename = "sof-adl-rt711-l0-rt1316-l3.tplg",
750762
},
751763
{
752-
.link_mask = 0x5, /* 2 active links required */
753-
.links = adl_sdw_rt711_link0_rt1316_link2,
764+
.link_mask = 0xC, /* rt1316 on link2 & rt714 on link3 */
765+
.links = adl_sdw_rt1316_link2_rt714_link3,
754766
.drv_name = "sof_sdw",
755-
.sof_tplg_filename = "sof-adl-rt711-l0-rt1316-l2.tplg",
767+
.sof_tplg_filename = "sof-adl-rt1316-l2-mono-rt714-l3.tplg",
756768
},
757769
{
758770
.link_mask = 0x1, /* link0 required */
@@ -766,18 +778,6 @@ struct snd_soc_acpi_mach snd_soc_acpi_intel_adl_sdw_machines[] = {
766778
.drv_name = "sof_sdw",
767779
.sof_tplg_filename = "sof-adl-rt711.tplg",
768780
},
769-
{
770-
.link_mask = 0x5, /* rt5682 on link0 & 2xmax98373 on link 2 */
771-
.links = adl_chromebook_base,
772-
.drv_name = "sof_sdw",
773-
.sof_tplg_filename = "sof-adl-sdw-max98373-rt5682.tplg",
774-
},
775-
{
776-
.link_mask = BIT(0) | BIT(2),
777-
.links = adl_sdw_rt1316_link02,
778-
.drv_name = "sof_sdw",
779-
.sof_tplg_filename = "sof-adl-rt1316-l02.tplg",
780-
},
781781
{},
782782
};
783783
EXPORT_SYMBOL_GPL(snd_soc_acpi_intel_adl_sdw_machines);

0 commit comments

Comments
 (0)