Searched refs:refclk (Results 1 – 4 of 4) sorted by relevance
55 struct clk *refclk; member165 ret = clk_set_rate(priv->refclk, priv->conf->ref_rate); in axg_spdifin_sample_mode_config()175 rate = clk_get_rate(priv->refclk); in axg_spdifin_sample_mode_config()229 ret = clk_prepare_enable(priv->refclk); in axg_spdifin_dai_probe()251 clk_disable_unprepare(priv->refclk); in axg_spdifin_dai_remove()474 priv->refclk = devm_clk_get(dev, "refclk"); in axg_spdifin_probe()475 if (IS_ERR(priv->refclk)) { in axg_spdifin_probe()476 ret = PTR_ERR(priv->refclk); in axg_spdifin_probe()
86 unsigned int refclk; member840 #define CALC_OSCSET(rate, refclk) ( \ argument841 ((((rate * 10000) / refclk) * 4096) + 7000) / 10000)842 #define CALC_RATIOSET(rate, refclk) ( \ argument843 ((((refclk * 100000) / rate) * 16384) + 50000) / 100000)860 oscset = CALC_OSCSET(substream->runtime->rate, dac33->refclk); in dac33_prepare_chip()862 dac33->refclk); in dac33_prepare_chip()1303 dac33->refclk = freq; in dac33_set_dai_sysclk()
1281 int ref, div, refclk; in arizona_set_opclk() local1286 refclk = priv->sysclk; in arizona_set_opclk()1290 refclk = priv->asyncclk; in arizona_set_opclk()1296 if (refclk % 8000) in arizona_set_opclk()1302 rates[ref] <= refclk; ref++) { in arizona_set_opclk()
2507 int ref, div, refclk; in madera_set_opclk() local2515 refclk = priv->sysclk; in madera_set_opclk()2519 refclk = priv->asyncclk; in madera_set_opclk()2525 if (refclk % 4000) in madera_set_opclk()2531 if (rates[ref] > refclk) in madera_set_opclk()