Attention is currently required from: Intel coreboot Reviewers.
Hello Intel coreboot Reviewers,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/87461?usp=email
to look at the new patch set (#2).
Change subject: soc/intel/cmn/hda: Introduce mainboard hook for HDA initialization ......................................................................
soc/intel/cmn/hda: Introduce mainboard hook for HDA initialization
This commit refactors the HDA initialization within the common Intel SoC block to provide mainboard-level customization.
A new weak function, `mainboard_hda_init(struct device *dev)`, is introduced. The `hda_init()` function, when `CONFIG(SOC_INTEL_COMMON_BLOCK_HDA_VERB)` is enabled, now calls this weak function instead of directly invoking `azalia_audio_init()`.
The default (weak) implementation of `mainboard_hda_init()` simply calls `azalia_audio_init()`, ensuring that the original behavior is maintained for mainboards that do not provide an override.
This change allows specific mainboards to implement their own `mainboard_hda_init()` to perform custom HDA setup or apply board-specific configurations depending upon the firmware config (FW CONFIG) for the audio subsystem.
BUG=b:413638298 TEST=Able to build and boot google/fatcat.
Change-Id: Ided1413e828f6bc3421e538a969c38e15b5f3116 Signed-off-by: Subrata Banik subratabanik@google.com --- M src/soc/intel/common/block/hda/hda.c A src/soc/intel/common/block/include/intelblocks/hda.h 2 files changed, 22 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/61/87461/2