ASoC: MPC5200: Support for buffer wrap around
authorJohn Bonesio <bones@secretlab.ca>
Wed, 29 Jul 2009 15:38:55 +0000 (08:38 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 5 Aug 2009 21:10:14 +0000 (22:10 +0100)
commitb0a2712ffdde139f95d3e78c359877b23709509a
tree6ce89ac1c71324f438b7869cef07c9c1066ade96
parent4bc4c9a5f5206d795e9ee1af8b0b074d126354af
ASoC: MPC5200: Support for buffer wrap around

The code in psc_dma_bcom_enqueue_tx() didn't account for the fact that
s->runtime->control->appl_ptr can wrap around to the beginning of the
buffer. This change fixes this problem.

Signed-off-by: John Bonesio <bones@secretlab.ca>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/fsl/mpc5200_dma.c