diff options
author | Chen Liangjun <b36089@freescale.com> | 2012-10-26 15:10:09 +0800 |
---|---|---|
committer | Chen Liangjun <b36089@freescale.com> | 2012-11-06 13:43:41 +0800 |
commit | 9e81e368be12a07cdff2b54ec7e7a13e82aa38ec (patch) | |
tree | fa3c1dd6108f9879fef8297b0557c30162ddce6d /include/linux | |
parent | 07eeb987cd59cecd527ba4658ef8220e8f0c13ad (diff) |
ENGR00231773-3 ASRC: use kzalloc to allocate buffer to support scatterlist
For ASRC's "memory -> ASRC -> memory" using, new driver would support
model below: user input one buffer into ASRC and an corresponding output
buffer would be poped out. There is no timing requirement between this
input buffer and next input buffer. Thus driver would not use the cyclic
way to config SDMA and scatterlist is used. buffer allocated by
dma_alloc_coherent() can't support scatterlist well.
In this patch, use kzalloc to allocate buffer to support scatterlist.
Signed-off-by: Chen Liangjun <b36089@freescale.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/mxc_asrc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mxc_asrc.h b/include/linux/mxc_asrc.h index 4d6149a64be9..a970fe6fa773 100644 --- a/include/linux/mxc_asrc.h +++ b/include/linux/mxc_asrc.h @@ -138,6 +138,8 @@ enum asrc_error_status { #define ASRC_DMA_BUFFER_NUM 2 #define ASRC_INPUTFIFO_THRESHOLD 32 #define ASRC_OUTPUTFIFO_THRESHOLD 32 +#define ASRC_DMA_BUFFER_SIZE (1024 * 64 * 4) + #define ASRC_ASRCTR_REG 0x00 #define ASRC_ASRIER_REG 0x04 |