aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorYitian Bu <buyitian@gmail.com>2015-10-02 15:18:41 +0800
committerSasha Levin <sasha.levin@oracle.com>2015-10-27 22:13:25 -0400
commitb03abc8bb7dc34f5204511586fc12ce2e2bd2394 (patch)
treee14b804065b0d0a63e8f149a980997beb4fd9dbc /sound
parent8df654455e63a3fddb501709bdea349b0f351cee (diff)
ASoC: dwc: correct irq clear method
[ Upstream commit 4873867e5f2bd90faad861dd94865099fc3140f3 ] from Designware I2S datasheet, tx/rx XRUN irq is cleared by reading register TOR/ROR, rather than by writing into them. Signed-off-by: Yitian Bu <yitian.bu@tangramtek.com> Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/dwc/designware_i2s.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/dwc/designware_i2s.c b/sound/soc/dwc/designware_i2s.c
index 10e1b8ca42ed..8086f3da5de8 100644
--- a/sound/soc/dwc/designware_i2s.c
+++ b/sound/soc/dwc/designware_i2s.c
@@ -100,10 +100,10 @@ static inline void i2s_clear_irqs(struct dw_i2s_dev *dev, u32 stream)
if (stream == SNDRV_PCM_STREAM_PLAYBACK) {
for (i = 0; i < 4; i++)
- i2s_write_reg(dev->i2s_base, TOR(i), 0);
+ i2s_read_reg(dev->i2s_base, TOR(i));
} else {
for (i = 0; i < 4; i++)
- i2s_write_reg(dev->i2s_base, ROR(i), 0);
+ i2s_read_reg(dev->i2s_base, ROR(i));
}
}