Lines Matching refs:rate
187 if (runtime->rate != in_rate) { in rsnd_adg_get_timesel_ratio()
190 } else if (runtime->rate != out_rate) { in rsnd_adg_get_timesel_ratio()
289 int rsnd_adg_clk_query(struct rsnd_priv *priv, unsigned int rate) in rsnd_adg_clk_query() argument
305 if (rate == adg->clk_rate[i]) in rsnd_adg_clk_query()
311 if (rate == adg->rbga_rate_for_441khz) in rsnd_adg_clk_query()
314 if (rate == adg->rbgb_rate_for_48khz) in rsnd_adg_clk_query()
327 int rsnd_adg_ssi_clk_try_start(struct rsnd_mod *ssi_mod, unsigned int rate) in rsnd_adg_ssi_clk_try_start() argument
336 data = rsnd_adg_clk_query(priv, rate); in rsnd_adg_ssi_clk_try_start()
346 if (0 == (rate % 8000)) in rsnd_adg_ssi_clk_try_start()
410 u32 rate, div; in rsnd_adg_get_clkout() local
477 rate = clk_get_rate(clk); in rsnd_adg_get_clkout()
479 if (0 == rate) /* not used */ in rsnd_adg_get_clkout()
483 if (!adg->rbga_rate_for_441khz && (0 == rate % 44100)) { in rsnd_adg_get_clkout()
486 div = rate / req_441kHz_rate; in rsnd_adg_get_clkout()
490 adg->rbga_rate_for_441khz = rate / div; in rsnd_adg_get_clkout()
499 if (!adg->rbgb_rate_for_48khz && (0 == rate % 48000)) { in rsnd_adg_get_clkout()
502 div = rate / req_48kHz_rate; in rsnd_adg_get_clkout()
506 adg->rbgb_rate_for_48khz = rate / div; in rsnd_adg_get_clkout()