Skip to content

Commit 5afc29b

Browse files
bardliaobroonie
authored andcommitted
ASoC: Intel: soc-acpi-intel-rpl-match: add missing empty item
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: 65ab45b ("ASoC: Intel: soc-acpi: Add match entries for some cs42l43 laptops") Signed-off-by: Bard Liao <[email protected]> Reviewed-by: Péter Ujfalusi <[email protected]> Reviewed-by: Charles Keepax <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent a36614b commit 5afc29b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ static const struct snd_soc_acpi_link_adr rpl_cs42l43_l0[] = {
198198
.num_adr = ARRAY_SIZE(cs42l43_0_adr),
199199
.adr_d = cs42l43_0_adr,
200200
},
201+
{}
201202
};
202203

203204
static const struct snd_soc_acpi_link_adr rpl_sdca_3_in_1[] = {

0 commit comments

Comments
 (0)