summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2024-06-26 10:40:43 +0200
committerElyes Haouas <ehaouas@noos.fr>2024-06-27 03:22:15 +0000
commit245b688a282a4b13d317b153c426096d7c614049 (patch)
treedb21b57117ab06768ae122370714525d21d4f55d /src
parentc20c83ca1bdd4521156fc1974c1e38bc8b9a55d7 (diff)
device/azalia_device.c: Use `azalia_enter_reset()`
Use the existing `azalia_enter_reset()` function instead of explicitly clearing the bit (and having to explain in a comment what this means). Change-Id: I04924e68420a93a1ad46f5a7ab359e38c0f7e210 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83217 Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src')
-rw-r--r--src/device/azalia_device.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/device/azalia_device.c b/src/device/azalia_device.c
index 8051f2e7ee..02bbf8944f 100644
--- a/src/device/azalia_device.c
+++ b/src/device/azalia_device.c
@@ -96,8 +96,7 @@ static u16 codec_detect(u8 *base)
no_codec:
/* Codec Not found */
- /* Put HDA back in reset (BAR + 0x8) [0] */
- azalia_set_bits(base + HDA_GCTL_REG, 1, 0);
+ azalia_enter_reset(base);
printk(BIOS_DEBUG, "azalia_audio: no codec!\n");
return 0;
}