]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm_adsp: Improve DSP error handling
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Wed, 6 Apr 2016 10:21:54 +0000 (11:21 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 6 Apr 2016 17:15:21 +0000 (10:15 -0700)
commita0b0532817450e26a62b11cdeb0ff30d3dd39962
treebd22f1b0a2c93483d5d4278e6a09b4e15cabb7bb
parentccf48ba8a0080b5e345873266385d358ca1ee974
ASoC: wm_adsp: Improve DSP error handling

If we encounter an error on the DSP side whilst user-space is
waiting on the poll we should call snd_compr_fragment_elapsed,
although data is not actually available we want to wake
user-space such that the error can be propagated out
quickly. Additionally some versions of the DSP firmware are
not super consistent about actually generating an IRQ if they
encounter an error, as such we will check the DSP error status
every time we run out of available data as well, to ensure we
catch it.

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