Skip to content

Commit aafbb9a

Browse files
committed
ASoC: Intel: soc-acpi: Fix missing empty terminators
Merge series from Bard Liao <[email protected]>: 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.
2 parents 72455e3 + cccb586 commit aafbb9a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ static const struct snd_soc_acpi_link_adr arl_cs42l43_l0[] = {
191191
.num_adr = ARRAY_SIZE(cs42l43_0_adr),
192192
.adr_d = cs42l43_0_adr,
193193
},
194+
{}
194195
};
195196

196197
static const struct snd_soc_acpi_link_adr arl_cs42l43_l2[] = {
@@ -199,6 +200,7 @@ static const struct snd_soc_acpi_link_adr arl_cs42l43_l2[] = {
199200
.num_adr = ARRAY_SIZE(cs42l43_2_adr),
200201
.adr_d = cs42l43_2_adr,
201202
},
203+
{}
202204
};
203205

204206
static const struct snd_soc_acpi_link_adr arl_cs42l43_l2_cs35l56_l3[] = {

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)