On Thu, Mar 10, 2016 at 10:44:54AM +0000, Charles Keepax wrote:
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
Apologies please drop this last change I need to do a respin. This will ping the poll for spurious interrupts which is not very desirable. I will fix that and send a rev 2 but the rest of the chain is good to merge as is.
Thanks, Charles