Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1235180

[RESEND PATCH 1/1] ASoC: dwc: correct irq clear method

From "yitian" <yitian.bu@tangramtek.com>
Newsgroups linux.kernel
Subject [RESEND PATCH 1/1] ASoC: dwc: correct irq clear method
Date 2015-09-29 16:50 +0200
Message-ID <qe4ob-ZN-39@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


from Designware I2S datasheet, irq is cleared by reading from
TOR/ROR registers, rather than by writing into them.

Signed-off-by: Yitian Bu <yitian.bu@tangramtek.com>
---
 sound/soc/dwc/designware_i2s.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/dwc/designware_i2s.c b/sound/soc/dwc/designware_i2s.c
index a3e97b4..0d28e3b 100644
--- a/sound/soc/dwc/designware_i2s.c
+++ b/sound/soc/dwc/designware_i2s.c
@@ -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));
 	}
 }
 
-- 
1.7.12.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[RESEND PATCH 1/1] ASoC: dwc: correct irq clear method "yitian" <yitian.bu@tangramtek.com> - 2015-09-29 16:50 +0200
  Re: [RESEND PATCH 1/1] ASoC: dwc: correct irq clear method Mark Brown <broonie@kernel.org> - 2015-09-30 20:20 +0200
    RE: [RESEND PATCH 1/1] ASoC: dwc: correct irq clear method "yitian" <yitian.bu@tangramtek.com> - 2015-10-01 04:50 +0200
      Re: [RESEND PATCH 1/1] ASoC: dwc: correct irq clear method Mark Brown <broonie@kernel.org> - 2015-10-01 12:10 +0200
        RE: [alsa-devel] [RESEND PATCH 1/1] ASoC: dwc: correct irq clear method "yitian" <yitian.bu@tangramtek.com> - 2015-10-02 09:30 +0200

csiph-web