Commit aafbb9af authored by Mark Brown's avatar Mark Brown

ASoC: Intel: soc-acpi: Fix missing empty terminators

Merge series from Bard Liao <yung-chuan.liao@linux.intel.com>:

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.
parents 72455e33 cccb586f
...@@ -191,6 +191,7 @@ static const struct snd_soc_acpi_link_adr arl_cs42l43_l0[] = { ...@@ -191,6 +191,7 @@ static const struct snd_soc_acpi_link_adr arl_cs42l43_l0[] = {
.num_adr = ARRAY_SIZE(cs42l43_0_adr), .num_adr = ARRAY_SIZE(cs42l43_0_adr),
.adr_d = cs42l43_0_adr, .adr_d = cs42l43_0_adr,
}, },
{}
}; };
static const struct snd_soc_acpi_link_adr arl_cs42l43_l2[] = { 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[] = { ...@@ -199,6 +200,7 @@ static const struct snd_soc_acpi_link_adr arl_cs42l43_l2[] = {
.num_adr = ARRAY_SIZE(cs42l43_2_adr), .num_adr = ARRAY_SIZE(cs42l43_2_adr),
.adr_d = cs42l43_2_adr, .adr_d = cs42l43_2_adr,
}, },
{}
}; };
static const struct snd_soc_acpi_link_adr arl_cs42l43_l2_cs35l56_l3[] = { static const struct snd_soc_acpi_link_adr arl_cs42l43_l2_cs35l56_l3[] = {
......
...@@ -198,6 +198,7 @@ static const struct snd_soc_acpi_link_adr rpl_cs42l43_l0[] = { ...@@ -198,6 +198,7 @@ static const struct snd_soc_acpi_link_adr rpl_cs42l43_l0[] = {
.num_adr = ARRAY_SIZE(cs42l43_0_adr), .num_adr = ARRAY_SIZE(cs42l43_0_adr),
.adr_d = cs42l43_0_adr, .adr_d = cs42l43_0_adr,
}, },
{}
}; };
static const struct snd_soc_acpi_link_adr rpl_sdca_3_in_1[] = { static const struct snd_soc_acpi_link_adr rpl_sdca_3_in_1[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment