From 61dd8365bf442a5c07955ef4b1fd665f8c3aadb4 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Sat, 5 Dec 2020 18:02:32 +0100 Subject: azalia: Make `set_bits` function non-static There's many copies of this function in the tree. Make the copy in azalia_device.c non-static and rename it to `azalia_set_bits`, then replace all other copies with it. Since azalia_device.c is only built when AZALIA_PLUGIN_SUPPORT is selected, select it where necessary. This has the side-effect of building hda_verb.c from the mainboard directory. If this patch happens to break audio on a mainboard, it's because its hda_verb.c was always wrong but wasn't being compiled. Change-Id: Iff3520131ec7bc8554612969e3a2fe9cdbc9305e Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/48346 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph --- src/include/device/azalia_device.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include/device') diff --git a/src/include/device/azalia_device.h b/src/include/device/azalia_device.h index d682772e26..7bb8e10fbc 100644 --- a/src/include/device/azalia_device.h +++ b/src/include/device/azalia_device.h @@ -18,6 +18,7 @@ #define HDA_ICII_BUSY (1 << 0) #define HDA_ICII_VALID (1 << 1) +int azalia_set_bits(void *port, u32 mask, u32 val); void azalia_audio_init(struct device *dev); extern struct device_operations default_azalia_audio_ops; -- cgit v1.2.3