]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC/mpc5200: Track DMA position by period number instead of bytes
authorGrant Likely <grant.likely@secretlab.ca>
Sat, 7 Nov 2009 08:33:53 +0000 (01:33 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 7 Nov 2009 12:40:08 +0000 (12:40 +0000)
commit66fc81e63c9dbbfc326ef936784756eb6e234c9f
treeeb4373286058f4808c5c2693465d130f06ab01cf
parent1f1f6d666222546e8018f03aa0eee6fca03a05ac
ASoC/mpc5200: Track DMA position by period number instead of bytes

All DMA blocks are lined up to period boundaries, but the DMA
handling code tracks bytes instead.  This patch reworks the code
to track the period index into the DMA buffer instead of the
physical address pointer.  Doing so makes the code simpler and
easier to understand.

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