Home
last modified time | relevance | path

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

/linux-6.12.1/sound/soc/mediatek/mt8186/
Dmt8186-dai-src.c135 static const unsigned int *get_iir_coeff(unsigned int rate_in, in get_iir_coeff() argument
139 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()
148 } else if ((rate_in == 48000 && rate_out == 16000) || 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()
158 } else if (rate_in == 96000 && rate_out == 16000) { in get_iir_coeff()
161 } else if ((rate_in == 96000 && rate_out == 44100) || in get_iir_coeff()
[all …]
/linux-6.12.1/drivers/clk/
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()
/linux-6.12.1/sound/soc/mediatek/mt8365/
Dmt8365-dai-i2s.c340 unsigned int rate_in, in mt8365_afe_set_2nd_i2s_asrc() argument
353 ifs = mt8365_afe_fs_timing(rate_in); in mt8365_afe_set_2nd_i2s_asrc()