Home
last modified time | relevance | path

Searched refs:rate_in (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/sound/soc/mediatek/mt8186/
H A Dmt8186-dai-src.c139 if (rate_in == 32000 && rate_out == 16000) { in get_iir_coeff()
142 } else if (rate_in == 44100 && rate_out == 16000) { in get_iir_coeff()
145 } else if (rate_in == 44100 && rate_out == 32000) { in get_iir_coeff()
149 (rate_in == 96000 && rate_out == 32000)) { in get_iir_coeff()
152 } else if (rate_in == 48000 && rate_out == 32000) { in get_iir_coeff()
155 } else if (rate_in == 48000 && rate_out == 44100) { in get_iir_coeff()
162 (rate_in == 48000 && rate_out == 22050)) { in get_iir_coeff()
177 int rate_in = src_priv->dl_rate; in mtk_set_src_1_param() local
198 if (rate_in > rate_out) { in mtk_set_src_1_param()
247 int rate_in = src_priv->dl_rate; in mtk_set_src_2_param() local
[all …]
/openbmc/linux/drivers/clk/
H A Dclk-cs2000-cp.c153 u32 rate_in) in cs2000_ref_clk_bound_rate() argument
157 if (rate_in >= 32000000 && rate_in < 56000000) in cs2000_ref_clk_bound_rate()
159 else if (rate_in >= 16000000 && rate_in < 28000000) in cs2000_ref_clk_bound_rate()
161 else if (rate_in >= 8000000 && rate_in < 14000000) in cs2000_ref_clk_bound_rate()
200 static u32 cs2000_rate_to_ratio(u32 rate_in, u32 rate_out, bool lf_ratio) in cs2000_rate_to_ratio() argument
212 do_div(ratio, rate_in); in cs2000_rate_to_ratio()
217 static unsigned long cs2000_ratio_to_rate(u32 ratio, u32 rate_in, bool lf_ratio) in cs2000_ratio_to_rate() argument
229 rate_out = (u64)ratio * rate_in; in cs2000_ratio_to_rate()
234 int ch, u32 rate_in, u32 rate_out) in cs2000_ratio_set() argument
243 val = cs2000_rate_to_ratio(rate_in, rate_out, priv->lf_ratio); in cs2000_ratio_set()