]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm_adsp: Add a handler for the compressed IRQ
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Wed, 6 Jan 2016 12:33:18 +0000 (12:33 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 6 Jan 2016 17:44:17 +0000 (17:44 +0000)
commitf16a57de60db94ea1fd41931399892342a9211db
tree3fe6fd5dbeb0c9ece4644fba3cf04d6bc0ba88f7
parent84c43b5996ac02ed45ba9558c5f2136d251cf8fa
ASoC: wm_adsp: Add a handler for the compressed IRQ

Here support is added for responding to DSP IRQs that are used to
indicate data being available on the DSP. The idea is that we check the
amount of data available upon receipt of an IRQ and on subsequent calls
to the pointer callback we recheck once less than one fragment is
available (to avoid excessive SPI traffic), if there is truely less than
one fragment available we ack the last IRQ and wait for a new one.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm5110.c
sound/soc/codecs/wm_adsp.c
sound/soc/codecs/wm_adsp.h