projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ff33f3
)
ASoC: dwc: correct irq clear method
author
Yitian Bu
<
[email protected]
>
Fri, 2 Oct 2015 07:18:41 +0000
(15:18 +0800)
committer
Mark Brown
<
[email protected]
>
Fri, 2 Oct 2015 10:44:04 +0000
(11:44 +0100)
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 <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
Cc:
[email protected]
sound/soc/dwc/designware_i2s.c
patch
|
blob
|
history
diff --git
a/sound/soc/dwc/designware_i2s.c
b/sound/soc/dwc/designware_i2s.c
index a3e97b46b64e3871ec9362b231d19f9334628229..0d28e3b356f67ea765f0445bb55d19aab4b02978 100644
(file)
--- 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)
);
}
}