]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC/mpc5200: get rid of the appl_ptr tracking nonsense
authorGrant Likely <grant.likely@secretlab.ca>
Sat, 7 Nov 2009 08:34:05 +0000 (01:34 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 7 Nov 2009 12:40:08 +0000 (12:40 +0000)
commita24b99c15bce67b6949bde139aa0c8be2a8d1a8b
tree31182236726e7b67f25dda2f551a6c0136ef97c5
parent66fc81e63c9dbbfc326ef936784756eb6e234c9f
ASoC/mpc5200: get rid of the appl_ptr tracking nonsense

Sound drivers PCM DMA is supposed to free-run until told to stop
by the trigger callback.  The current code tries to track appl_ptr,
to avoid stale buffer data getting played out at the end of the
data stream.  Unfortunately it also results in race conditions
which can cause the audio to stall.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/fsl/mpc5200_dma.c
sound/soc/fsl/mpc5200_dma.h