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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user