diff options
Diffstat (limited to 'src/device')
-rw-r--r-- | src/device/azalia_device.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/device/azalia_device.c b/src/device/azalia_device.c index 9306e2ac37..5e9c6c9466 100644 --- a/src/device/azalia_device.c +++ b/src/device/azalia_device.c @@ -51,8 +51,7 @@ static int codec_detect(u8 *base) u32 reg32; int count; - /* Set Bit 0 to 1 to exit reset state (BAR + 0x8)[0] */ - if (azalia_set_bits(base + HDA_GCTL_REG, 1, HDA_GCTL_CRST) < 0) + if (azalia_exit_reset(base) < 0) goto no_codec; /* clear STATESTS bits (BAR + 0xe)[2:0] */ @@ -77,8 +76,7 @@ static int codec_detect(u8 *base) if (azalia_set_bits(base + HDA_GCTL_REG, 1, 0) < 0) goto no_codec; - /* Set Bit 0 to 1 to exit reset state (BAR + 0x8)[0] */ - if (azalia_set_bits(base + HDA_GCTL_REG, 1, HDA_GCTL_CRST) < 0) + if (azalia_exit_reset(base) < 0) goto no_codec; /* Read in Codec location (BAR + 0xe)[2..0] */ |