From 2103aa2f98bfafb504783dca387f9b182556a9c0 Mon Sep 17 00:00:00 2001 From: Chen Liangjun Date: Tue, 13 Nov 2012 16:43:25 +0800 Subject: 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 --- include/linux/mxc_asrc.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include') 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 #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__ */ -- cgit v1.2.3