summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5514-spi.h
diff options
context:
space:
mode:
authorHsin-Yu Chao <hychao@chromium.org>2017-09-13 11:54:28 +0200
committerMark Brown <broonie@kernel.org>2017-09-13 18:40:30 +0200
commit659178f5d1bb5164480c35e5a749c4fe1dde5867 (patch)
tree5b8fc69ab881f39faeead04b3a433de2a89273fd /sound/soc/codecs/rt5514-spi.h
parentMerge remote-tracking branches 'asoc/topic/wm8524', 'asoc/topic/wm8804' and '... (diff)
downloadlinux-659178f5d1bb5164480c35e5a749c4fe1dde5867.tar.xz
linux-659178f5d1bb5164480c35e5a749c4fe1dde5867.zip
ASoC: rt5514-spi: check irq status to schedule data copy
For wake on voice use case, we need to copy data from DSP buffer to PCM stream when system wakes up by voice. However the edge triggered IRQ could be missed when system wakes up, in that case the irq function will not be called. Fix that by checking the irq status bit and schedule data copy accordingly. Signed-off-by: Hsin-Yu Chao <hychao@chromium.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5514-spi.h')
-rw-r--r--sound/soc/codecs/rt5514-spi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5514-spi.h b/sound/soc/codecs/rt5514-spi.h
index a6434ee6ff03..c1a36647c119 100644
--- a/sound/soc/codecs/rt5514-spi.h
+++ b/sound/soc/codecs/rt5514-spi.h
@@ -20,6 +20,9 @@
#define RT5514_BUFFER_VOICE_BASE 0x18000200
#define RT5514_BUFFER_VOICE_LIMIT 0x18000204
#define RT5514_BUFFER_VOICE_WP 0x1800020c
+#define RT5514_IRQ_CTRL 0x18002094
+
+#define RT5514_IRQ_STATUS_BIT (0x1 << 5)
/* SPI Command */
enum {