]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ASoC: dwc: fix dma stop transferring issue
authoryitian <yitian.bu@tangramtek.com>
Tue, 29 Sep 2015 14:43:17 +0000 (22:43 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 2 Oct 2015 17:05:51 +0000 (18:05 +0100)
commit924eb475126fd6bc23c475ac742a69fc466c0b75
treece3a86099de66c43cb195a10e13fa715f450e675
parent4873867e5f2bd90faad861dd94865099fc3140f3
ASoC: dwc: fix dma stop transferring issue

Designware I2S uses tx empty and rx available signals as the DMA
handshaking signals. during music playing, if XRUN occurs,
i2s_stop() function will be executed and both tx and rx irq are
masked, when music continues to be played, i2s_start() is executed
but both tx and rx irq are not unmasked which cause I2S stop
sending DMA handshaking signal to DMA controller, and it finally
causes music playing will be stopped once XRUN occurs for the first
time.

[On list discussion suggests this may be partly a race condition on slow
systems -- broonie]

Signed-off-by: Yitian Bu <yitian.bu@tangramtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/dwc/designware_i2s.c