Skip to content

Commit

Permalink
ASoC: Intel: soc-acpi-intel-mtl-match: add missing empty item
Browse files Browse the repository at this point in the history
There is no links_num in struct snd_soc_acpi_mach {}, and we test
!link->num_adr as a condition to end the loop in hda_sdw_machine_select().
So an empty item in struct snd_soc_acpi_link_adr array is required.

Fixes: f77ae7f ("ASoC: Intel: soc-acpi-intel-mtl-match: add cs42l43 only support")
Signed-off-by: Bard Liao <[email protected]>
  • Loading branch information
bardliao committed Sep 6, 2024
1 parent 7f5a998 commit 2fdeede
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/intel/common/soc-acpi-intel-mtl-match.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ static const struct snd_soc_acpi_link_adr mtl_cs42l43_l0[] = {
.num_adr = ARRAY_SIZE(cs42l43_0_adr),
.adr_d = cs42l43_0_adr,
},
{}
};

static const struct snd_soc_acpi_link_adr mtl_cs42l43_cs35l56[] = {
Expand Down

0 comments on commit 2fdeede

Please sign in to comment.