ASoC: rt5514-spi: check irq status to schedule data copy
authorHsin-Yu Chao <hychao@chromium.org>
Wed, 13 Sep 2017 09:54:28 +0000 (17:54 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 13 Sep 2017 16:40:30 +0000 (09:40 -0700)
commit659178f5d1bb5164480c35e5a749c4fe1dde5867
tree5b8fc69ab881f39faeead04b3a433de2a89273fd
parentf5fd4a67bef5f2c5c2c9eb0cb2900e12d192ae23
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>
sound/soc/codecs/rt5514-spi.c
sound/soc/codecs/rt5514-spi.h