]> asedeno.scripts.mit.edu Git - linux.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)
commit5847609edb3c80be07e897e449a9bb579a0fe9d8
treebd22f1b0a2c93483d5d4278e6a09b4e15cabb7bb
parent9771b18a0b374b6e6ecfa84c8b59d5ef79e969b1
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