aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801gx/azalia.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/southbridge/intel/i82801gx/azalia.c')
-rw-r--r--src/southbridge/intel/i82801gx/azalia.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/southbridge/intel/i82801gx/azalia.c b/src/southbridge/intel/i82801gx/azalia.c
index d1d373147e..3ace204c05 100644
--- a/src/southbridge/intel/i82801gx/azalia.c
+++ b/src/southbridge/intel/i82801gx/azalia.c
@@ -15,8 +15,7 @@ static int codec_detect(u8 *base)
{
u32 reg32;
- /* Set Bit 0 to 0 to enter reset state (BAR + 0x8)[0] */
- if (azalia_set_bits(base + HDA_GCTL_REG, HDA_GCTL_CRST, 0) < 0)
+ if (azalia_enter_reset(base) < 0)
goto no_codec;
if (azalia_exit_reset(base) < 0)
@@ -31,9 +30,8 @@ static int codec_detect(u8 *base)
return reg32;
no_codec:
- /* Codec Not found */
- /* Put HDA back in reset (BAR + 0x8) [0] */
- azalia_set_bits(base + HDA_GCTL_REG, 1, 0);
+ /* Codec not found, put HDA back in reset */
+ azalia_enter_reset(base);
printk(BIOS_DEBUG, "Azalia: No codec!\n");
return 0;
}