diff options
author | Bard Liao <yung-chuan.liao@linux.intel.com> | 2024-09-06 08:02:23 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-09-06 13:27:17 +0200 |
commit | c4246f1fe9f24f8dcd97887ed67d8fcfd91f4796 (patch) | |
tree | 4902e38138baecef8de0e8a8036ccd377384abe2 /sound/soc/intel | |
parent | ASoC: codecs: lpass-va-macro: set the default codec version for sm8250 (diff) | |
download | linux-c4246f1fe9f24f8dcd97887ed67d8fcfd91f4796.tar.xz linux-c4246f1fe9f24f8dcd97887ed67d8fcfd91f4796.zip |
ASoC: Intel: soc-acpi-intel-lnl-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: dd3bd9dc4708 ("ASoC: Intel: soc-acpi-intel-lnl-match: add cs42l43 only support")
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://patch.msgid.link/20240906060224.2241212-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel')
-rw-r--r-- | sound/soc/intel/common/soc-acpi-intel-lnl-match.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/intel/common/soc-acpi-intel-lnl-match.c b/sound/soc/intel/common/soc-acpi-intel-lnl-match.c index e6ffcd5be6c5..edfb668d0580 100644 --- a/sound/soc/intel/common/soc-acpi-intel-lnl-match.c +++ b/sound/soc/intel/common/soc-acpi-intel-lnl-match.c @@ -208,6 +208,7 @@ static const struct snd_soc_acpi_link_adr lnl_cs42l43_l0[] = { .num_adr = ARRAY_SIZE(cs42l43_0_adr), .adr_d = cs42l43_0_adr, }, + {} }; static const struct snd_soc_acpi_link_adr lnl_rvp[] = { |