Lines Matching refs:rate
183 if (runtime->rate != in_rate) { in rsnd_adg_get_timesel_ratio()
186 } else if (runtime->rate != out_rate) { in rsnd_adg_get_timesel_ratio()
312 int rsnd_adg_clk_query(struct rsnd_priv *priv, unsigned int rate) in rsnd_adg_clk_query() argument
325 dev_dbg(dev, "request clock = %d\n", rate); in rsnd_adg_clk_query()
332 if (rate == adg->clk_rate[i]) in rsnd_adg_clk_query()
339 if (rate == adg->rbga_rate_for_441khz) in rsnd_adg_clk_query()
342 if (rate == adg->rbgb_rate_for_48khz) in rsnd_adg_clk_query()
355 int rsnd_adg_ssi_clk_try_start(struct rsnd_mod *ssi_mod, unsigned int rate) in rsnd_adg_ssi_clk_try_start() argument
364 data = rsnd_adg_clk_query(priv, rate); in rsnd_adg_ssi_clk_try_start()
374 if (0 == (rate % 8000)) in rsnd_adg_ssi_clk_try_start()
384 data, rate); in rsnd_adg_ssi_clk_try_start()
446 u32 rate, div; in rsnd_adg_get_clkout() local
513 rate = clk_get_rate(clk); in rsnd_adg_get_clkout()
515 if (0 == rate) /* not used */ in rsnd_adg_get_clkout()
519 if (!adg->rbga_rate_for_441khz && (0 == rate % 44100)) { in rsnd_adg_get_clkout()
522 div = rate / req_441kHz_rate; in rsnd_adg_get_clkout()
526 adg->rbga_rate_for_441khz = rate / div; in rsnd_adg_get_clkout()
535 if (!adg->rbgb_rate_for_48khz && (0 == rate % 48000)) { in rsnd_adg_get_clkout()
538 div = rate / req_48kHz_rate; in rsnd_adg_get_clkout()
542 adg->rbgb_rate_for_48khz = rate / div; in rsnd_adg_get_clkout()