summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChen Liangjun <b36089@freescale.com>2012-11-13 16:43:25 +0800
committerChen Liangjun <b36089@freescale.com>2012-11-14 14:53:26 +0800
commit2103aa2f98bfafb504783dca387f9b182556a9c0 (patch)
treef384bed29433915a2a039bacaf0f4c8e1d6653a1 /include
parenta4fe73addea738929f5145c0d1d6539d74723784 (diff)
ENGR00233427 ASRC: add interface to modify ASRC input/output watermark
In this patch, add interface to modify ASRC input/output watermark. Signed-off-by: Chen Liangjun <b36089@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mxc_asrc.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/mxc_asrc.h b/include/linux/mxc_asrc.h
index 8c0c45d86cfd..72817e6ece0f 100644
--- a/include/linux/mxc_asrc.h
+++ b/include/linux/mxc_asrc.h
@@ -141,8 +141,8 @@ enum asrc_error_status {
#include <linux/scatterlist.h>
#define ASRC_DMA_BUFFER_NUM 2
-#define ASRC_INPUTFIFO_THRESHOLD 4
-#define ASRC_OUTPUTFIFO_THRESHOLD 2
+#define ASRC_INPUTFIFO_THRESHOLD 32
+#define ASRC_OUTPUTFIFO_THRESHOLD 32
#define ASRC_DMA_BUFFER_SIZE (1024 * 48 * 4)
#define ASRC_MAX_BUFFER_SIZE (1024 * 48)
#define ASRC_OUTPUT_LAST_SAMPLE 8
@@ -242,6 +242,8 @@ struct asrc_pair_params {
enum asrc_word_width output_word_width;
u32 input_sample_rate;
u32 output_sample_rate;
+ u32 input_wm;
+ u32 output_wm;
};
struct asrc_data {
@@ -266,6 +268,8 @@ extern void asrc_stop_conv(enum asrc_pair_index index);
extern u32 asrc_get_per_addr(enum asrc_pair_index index, bool i);
extern int asrc_get_dma_request(enum asrc_pair_index index, bool i);
extern void asrc_finish_conv(enum asrc_pair_index index);
+extern int asrc_set_watermark(enum asrc_pair_index index,
+ u32 in_wm, u32 out_wm);
#endif /* __kERNEL__ */