diff options
author | Angel Pons <th3fanbus@gmail.com> | 2021-11-10 17:19:44 +0100 |
---|---|---|
committer | Paul Fagerburg <pfagerburg@chromium.org> | 2021-11-11 22:42:42 +0000 |
commit | 42552ca90207ed085e0d1d9b38db19e5e6810116 (patch) | |
tree | 8155ea540591645fea66801110284e562069b2ed /src/device | |
parent | 18d616a8fe47dbf5a24336078deb980140123d8c (diff) |
device/azalia_device: Export `codecs_init()`
Make the `codecs_init()` function non-static so that it can be used in
other places. Rename it to `azalia_codecs_init()` to avoid name clashes
with static definitions in southbridge code (which will be removed in
subsequent commits).
Change-Id: I080a73102b0c4f9f8a283cd93bba9b3b23169be0
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59108
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/device')
-rw-r--r-- | src/device/azalia_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/azalia_device.c b/src/device/azalia_device.c index a223e76e1a..c3bb91b99f 100644 --- a/src/device/azalia_device.c +++ b/src/device/azalia_device.c @@ -267,7 +267,7 @@ static void codec_init(struct device *dev, u8 *base, int addr) mainboard_azalia_program_runtime_verbs(base, reg32); } -static void codecs_init(struct device *dev, u8 *base, u16 codec_mask) +void azalia_codecs_init(struct device *dev, u8 *base, u16 codec_mask) { int i; @@ -297,7 +297,7 @@ void azalia_audio_init(struct device *dev) if (codec_mask) { printk(BIOS_DEBUG, "azalia_audio: codec_mask = %02x\n", codec_mask); - codecs_init(dev, base, codec_mask); + azalia_codecs_init(dev, base, codec_mask); } } |