]> bbs.cooldavid.org Git - net-next-2.6.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)
commitd56b6eb6df7f6fb92383a52d640e27f71e6262d0
tree31182236726e7b67f25dda2f551a6c0136ef97c5
parent8f159d720b89f2a6c5ae8a8cc54823933a58120b
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