Commit da7db6ad authored by Wang Xingchao's avatar Wang Xingchao Committed by Takashi Iwai

ALSA: hda - use azx_writew() for 16-bit length register

Register STATESTS is 16-bit length, use correct API for read/write.
Signed-off-by: default avatarWang Xingchao <xingchao.wang@linux.intel.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent c5177c86
...@@ -1160,7 +1160,7 @@ static int azx_reset(struct azx *chip, int full_reset) ...@@ -1160,7 +1160,7 @@ static int azx_reset(struct azx *chip, int full_reset)
goto __skip; goto __skip;
/* clear STATESTS */ /* clear STATESTS */
azx_writeb(chip, STATESTS, STATESTS_INT_MASK); azx_writew(chip, STATESTS, STATESTS_INT_MASK);
/* reset controller */ /* reset controller */
azx_enter_link_reset(chip); azx_enter_link_reset(chip);
...@@ -1242,7 +1242,7 @@ static void azx_int_clear(struct azx *chip) ...@@ -1242,7 +1242,7 @@ static void azx_int_clear(struct azx *chip)
} }
/* clear STATESTS */ /* clear STATESTS */
azx_writeb(chip, STATESTS, STATESTS_INT_MASK); azx_writew(chip, STATESTS, STATESTS_INT_MASK);
/* clear rirb status */ /* clear rirb status */
azx_writeb(chip, RIRBSTS, RIRB_INT_MASK); azx_writeb(chip, RIRBSTS, RIRB_INT_MASK);
...@@ -1451,8 +1451,8 @@ static irqreturn_t azx_interrupt(int irq, void *dev_id) ...@@ -1451,8 +1451,8 @@ static irqreturn_t azx_interrupt(int irq, void *dev_id)
#if 0 #if 0
/* clear state status int */ /* clear state status int */
if (azx_readb(chip, STATESTS) & 0x04) if (azx_readw(chip, STATESTS) & 0x04)
azx_writeb(chip, STATESTS, 0x04); azx_writew(chip, STATESTS, 0x04);
#endif #endif
spin_unlock(&chip->reg_lock); spin_unlock(&chip->reg_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment