• Home
  • Raw
  • Download

Lines Matching refs:inrate

167 static void fsl_asrc_sel_proc(int inrate, int outrate,  in fsl_asrc_sel_proc()  argument
174 if (inrate * 8 > 33 * outrate) in fsl_asrc_sel_proc()
176 else if (inrate * 8 > 15 * outrate) { in fsl_asrc_sel_proc()
177 if (inrate > 152000) in fsl_asrc_sel_proc()
181 } else if (inrate < 76000) in fsl_asrc_sel_proc()
183 else if (inrate > 152000) in fsl_asrc_sel_proc()
189 post_proc_cond2 = (inrate * 15 > outrate * 16 && outrate < 56000) || in fsl_asrc_sel_proc()
190 (inrate > 56000 && outrate < 56000); in fsl_asrc_sel_proc()
191 post_proc_cond0 = inrate * 23 < outrate * 8; in fsl_asrc_sel_proc()
320 int inrate, int outrate) in fsl_asrc_set_ideal_ratio() argument
333 ratio = (inrate / outrate) << IDEAL_RATIO_DECIMAL_DEPTH; in fsl_asrc_set_ideal_ratio()
336 inrate %= outrate; in fsl_asrc_set_ideal_ratio()
339 inrate <<= 1; in fsl_asrc_set_ideal_ratio()
341 if (inrate < outrate) in fsl_asrc_set_ideal_ratio()
345 inrate -= outrate; in fsl_asrc_set_ideal_ratio()
347 if (!inrate) in fsl_asrc_set_ideal_ratio()
382 u32 inrate, outrate, indiv, outdiv; in fsl_asrc_config_pair() local
430 inrate = config->input_sample_rate; in fsl_asrc_config_pair()
436 if (inrate == supported_asrc_rate[in]) in fsl_asrc_config_pair()
440 pair_err("unsupported input sample rate: %dHz\n", inrate); in fsl_asrc_config_pair()
454 (outrate > 24 * inrate || inrate > 8 * outrate)) { in fsl_asrc_config_pair()
456 inrate/outrate: %d/%d\n", inrate, outrate); in fsl_asrc_config_pair()
468 div_avail = fsl_asrc_divider_avail(clk_rate, inrate, &div[IN]); in fsl_asrc_config_pair()
479 inrate, clk_index[ideal ? OUT : IN]); in fsl_asrc_config_pair()
561 fsl_asrc_sel_proc(inrate, outrate, &pre_proc, &post_proc); in fsl_asrc_config_pair()
569 return fsl_asrc_set_ideal_ratio(pair, inrate, outrate); in fsl_asrc_config_pair()