diff options
Diffstat (limited to 'src/soc/intel/common')
-rw-r--r-- | src/soc/intel/common/hda_verb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/common/hda_verb.c b/src/soc/intel/common/hda_verb.c index e812ec5152..ecf5a5167d 100644 --- a/src/soc/intel/common/hda_verb.c +++ b/src/soc/intel/common/hda_verb.c @@ -12,7 +12,7 @@ int hda_codec_detect(u8 *base) u8 reg8; /* Set Bit 0 to 1 to exit reset state (BAR + 0x8)[0] */ - if (azalia_set_bits(base + HDA_GCTL_REG, HDA_GCTL_CRST, HDA_GCTL_CRST) < 0) + if (azalia_exit_reset(base) < 0) goto no_codec; /* Write back the value once reset bit is set. */ @@ -28,7 +28,7 @@ int hda_codec_detect(u8 *base) goto no_codec; /* Turn on the link and poll RESET# bit until it reads back as 1 */ - if (azalia_set_bits(base + HDA_GCTL_REG, HDA_GCTL_CRST, HDA_GCTL_CRST) < 0) + if (azalia_exit_reset(base) < 0) goto no_codec; /* Read in Codec location (BAR + 0xe)[2..0]*/ |