ASoC: rt5514-spi: check irq status to schedule data copy in resume function
authoroder_chiou@realtek.com <oder_chiou@realtek.com>
Wed, 8 Nov 2017 07:04:22 +0000 (15:04 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 8 Nov 2017 21:29:09 +0000 (21:29 +0000)
commite9c50aa6bd3996924b5fd87ab59289888cd5704a
tree70894fa7a397a4174b7ea6b363d16cb5efc7af49
parent58f1c07d23cddbc4c8aa99a214934eb7d33e8523
ASoC: rt5514-spi: check irq status to schedule data copy in resume function

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. If the substream was constructed
beforce suspend, we will schedule data copy in resume function.

Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5514-spi.c