Re: [PATCH V4 2/3] ASoC: fsl_asrc: replace the process_option table with function

2019-04-20 Thread S.j. Wang
Hi > > > On Fri, Apr 19, 2019 at 10:23:53AM +, S.j. Wang wrote: > > > @@ -289,6 +318,12 @@ static int fsl_asrc_config_pair(struct fsl_asrc_pair > *pair) > > return -EINVAL; > > } > > > > + ret = fsl_asrc_sel_proc(inrate, outrate, &pre_proc, &post_proc); > > Since th

Re: [PATCH V4 2/3] ASoC: fsl_asrc: replace the process_option table with function

2019-04-19 Thread Nicolin Chen
On Fri, Apr 19, 2019 at 10:23:53AM +, S.j. Wang wrote: > @@ -289,6 +318,12 @@ static int fsl_asrc_config_pair(struct fsl_asrc_pair > *pair) > return -EINVAL; > } > > + ret = fsl_asrc_sel_proc(inrate, outrate, &pre_proc, &post_proc); Since the function always return

[PATCH V4 2/3] ASoC: fsl_asrc: replace the process_option table with function

2019-04-19 Thread S.j. Wang
When we want to support more sample rate, for example 12kHz/24kHz we need update the process_option table, if we want to support more sample rate next time, the table need to be updated again. which is not flexible. We got a function fsl_asrc_sel_proc to replace the table, which can give the pre-p