]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00231773-4 ASRC: use scatter list and stall bit for asrc convert
authorChen Liangjun <b36089@freescale.com>
Fri, 26 Oct 2012 09:43:30 +0000 (17:43 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:13:21 +0000 (14:13 +0200)
commitfc817a09be7ad8931084cf9fa8b8082eb958c6da
treea823f9fcc7007964763de781c257b35eddee287d
parentabba510a97328216acf543baf52b4859de7b4e72
ENGR00231773-4 ASRC: use scatter list and stall bit for asrc convert

In the origin code, ASRC driver use cyclic way to process DMA task
transfering data to/from ASRC input/output FIFO. In this case, it is
necessary that user application should promise that the input buffer
flow is continuous. If not, there would be 0 data be inserted into data
flow. The output data would be noisy.

In this patch,
1 use scatter list instead of cyclic SDMA: with scatter list,
SDMA would stop when the applied scatter list nents are finished.
2 set stall bit for ASRC "memory->ASRC->memory" convert to stop
ASRC convert when input data is not send into ASRC input FIFO in time.

Signed-off-by: Chen Liangjun <b36089@freescale.com>
drivers/mxc/asrc/mxc_asrc.c
include/linux/mxc_asrc.h