]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd6470a2578f50ee4535559d7d3a7e7cd5f73d1a5
tree5b8fc69ab881f39faeead04b3a433de2a89273fd
parent476a28c3cdab1c07aa426cb368ba93775f7a23e6
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