mb/purism: add missing terminators to azalia codec tables

This was supposed to be checked in the regression test script
(CB:88763), however it turns out Valgrind's Memcheck only works on the
heap memory and is unable to catch such errors.

The regression test script was modified to use AddressSanitizer which
can catch such errors, so this should not be a problem in subsequent
changes during the verb table rework.

To be safe, the previously merged commits were also checked with the new
regression test script:

  f634121fa4 ("mb/purism: Replace verb tables with reworked implementation")
  20d4042458 ("mb/asrock: Replace verb tables with reworked implementation")
  2b7dbf80c9 ("mb/apple: Replace verb tables with reworked implementation")
  970249694f ("mb/amd: Replace verb tables with reworked implementation")
  94beaa7ab3 ("mb/acer: Replace verb tables with reworked implementation")
  f3db3a19d5 ("mb/51nb: Replace verb tables with reworked implementation")

However, the following mini-HD code was checked manually, as figuring
out how to strip out minihd_init() was not worth the effort:

  bc92d9a666 ("nb/intel/haswell/minihd.c: Add reworked verb table implementation")
  69781b9806 ("soc/intel/broadwell/minihd.c: Add reworked verb table implementation")

Change-Id: Iea964fb8b92814b57d4c82412c47cf31fa48de66
Signed-off-by: Nicholas Sudsgaard <devel+coreboot@nsudsgaard.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/89376
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Nicholas Sudsgaard 2025-09-29 20:21:39 +09:00 committed by Matt DeVillier
commit 4b93b36170
5 changed files with 5 additions and 0 deletions

View file

@ -28,6 +28,7 @@ struct azalia_codec mainboard_azalia_codecs[] = {
.verbs = realtek_alc269_verbs,
.verb_count = ARRAY_SIZE(realtek_alc269_verbs),
},
{ /* terminator */ }
};
AZALIA_ARRAY_SIZES;

View file

@ -116,6 +116,7 @@ struct azalia_codec mainboard_azalia_codecs[] = {
.verbs = intel_display_audio_verbs,
.verb_count = ARRAY_SIZE(intel_display_audio_verbs),
},
{ /* terminator */ }
};
AZALIA_ARRAY_SIZES;

View file

@ -44,6 +44,7 @@ struct azalia_codec mainboard_azalia_codecs[] = {
.verbs = intel_display_audio_verbs,
.verb_count = ARRAY_SIZE(intel_display_audio_verbs),
},
{ /* terminator */ }
};
AZALIA_ARRAY_SIZES;

View file

@ -67,6 +67,7 @@ struct azalia_codec mainboard_azalia_codecs[] = {
.verbs = intel_display_audio_verbs,
.verb_count = ARRAY_SIZE(intel_display_audio_verbs),
},
{ /* terminator */ }
};
AZALIA_ARRAY_SIZES;

View file

@ -28,6 +28,7 @@ struct azalia_codec mainboard_azalia_codecs[] = {
.verbs = realtek_alc269_verbs,
.verb_count = ARRAY_SIZE(realtek_alc269_verbs),
},
{ /* terminator */ }
};
AZALIA_ARRAY_SIZES;