From d6d71ce442de2186ec3ea0a8fefcefb054915ded Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Mon, 8 Feb 2021 12:47:29 +0100 Subject: device/azalia_device: Add mainboard hook to program codecs On some mainboards, codec configuration depends on settings that are only known at runtime, which is impossible to specify using one verb table. Add an optional `mainboard_azalia_program_runtime_verbs` hook where mainboards can program runtime-dependent codec verbs. Change-Id: I7efeba5c26051aeb5061cce191ace08c304a6c70 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/50388 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- src/include/device/azalia_device.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include/device/azalia_device.h') diff --git a/src/include/device/azalia_device.h b/src/include/device/azalia_device.h index ce8c0d193e..9010507aee 100644 --- a/src/include/device/azalia_device.h +++ b/src/include/device/azalia_device.h @@ -26,6 +26,9 @@ int azalia_program_verb_table(u8 *base, const u32 *verbs, u32 verb_size); void azalia_audio_init(struct device *dev); extern struct device_operations default_azalia_audio_ops; +/* Optional hook to program codec settings that are only known at runtime */ +void mainboard_azalia_program_runtime_verbs(u8 *base, u32 viddid); + extern const u32 cim_verb_data[]; extern const u32 cim_verb_data_size; extern const u32 pc_beep_verbs[]; -- cgit v1.2.3