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>
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user