mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 05:04:00 +08:00
ASoC: dwc: correct irq clear method
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
This commit is contained in:
parent
6ff33f3902
commit
4873867e5f
@ -131,10 +131,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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user