From 07eeb987cd59cecd527ba4658ef8220e8f0c13ad Mon Sep 17 00:00:00 2001 From: Chen Liangjun Date: Fri, 26 Oct 2012 13:42:35 +0800 Subject: ENGR00231773-2 ASRC: add work struct for asrc output data receive SDMA driver can't promise receive all output data generated. Cause when the data in output FIFO is less than ASRC output FIFO watermark, there would be no DMA request generated and thus no SDMA transfer would happens. In this patch, add work struct to support ASRC driver receive last part of data in OUTPUT FIFO in polling way. Signed-off-by: Chen Liangjun --- include/linux/mxc_asrc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/linux/mxc_asrc.h b/include/linux/mxc_asrc.h index 638d401256d7..4d6149a64be9 100644 --- a/include/linux/mxc_asrc.h +++ b/include/linux/mxc_asrc.h @@ -215,6 +215,7 @@ struct asrc_pair_params { struct dma_block output_dma[ASRC_DMA_BUFFER_NUM]; struct dma_async_tx_descriptor *desc_in; struct dma_async_tx_descriptor *desc_out; + struct work_struct task_output_work; }; struct asrc_data { -- cgit v1.2.3