Home
last modified time | relevance | path

Searched refs:clk_ref (Results 1 – 5 of 5) sorted by relevance

/sound/soc/adi/
Daxi-spdif.c41 struct clk *clk_ref; member
98 clkdiv = DIV_ROUND_CLOSEST(clk_get_rate(spdif->clk_ref), in axi_spdif_hw_params()
130 ret = clk_prepare_enable(spdif->clk_ref); in axi_spdif_startup()
148 clk_disable_unprepare(spdif->clk_ref); in axi_spdif_shutdown()
207 spdif->clk_ref = devm_clk_get(&pdev->dev, "ref"); in axi_spdif_probe()
208 if (IS_ERR(spdif->clk_ref)) in axi_spdif_probe()
209 return PTR_ERR(spdif->clk_ref); in axi_spdif_probe()
219 spdif->ratnum.num = clk_get_rate(spdif->clk_ref) / 128; in axi_spdif_probe()
Daxi-i2s.c44 struct clk *clk_ref; member
96 bclk_div = DIV_ROUND_UP(clk_get_rate(i2s->clk_ref), bclk_rate) / 2 - 1; in axi_i2s_hw_params()
124 return clk_prepare_enable(i2s->clk_ref); in axi_i2s_startup()
132 clk_disable_unprepare(i2s->clk_ref); in axi_i2s_shutdown()
208 i2s->clk_ref = devm_clk_get(&pdev->dev, "ref"); in axi_i2s_probe()
209 if (IS_ERR(i2s->clk_ref)) in axi_i2s_probe()
210 return PTR_ERR(i2s->clk_ref); in axi_i2s_probe()
224 i2s->ratnum.num = clk_get_rate(i2s->clk_ref) / 2 / AXI_I2S_BITS_PER_FRAME; in axi_i2s_probe()
/sound/soc/img/
Dimg-spdif-out.c46 struct clk *clk_ref; member
56 clk_disable_unprepare(spdif->clk_ref); in img_spdif_out_suspend()
66 ret = clk_prepare_enable(spdif->clk_ref); in img_spdif_out_resume()
246 pre_div_a = clk_round_rate(spdif->clk_ref, rate * 256); in img_spdif_out_hw_params()
249 pre_div_b = clk_round_rate(spdif->clk_ref, rate * 384); in img_spdif_out_hw_params()
258 clk_set_rate(spdif->clk_ref, pre_div_b); in img_spdif_out_hw_params()
260 clk_set_rate(spdif->clk_ref, pre_div_a); in img_spdif_out_hw_params()
267 clk_rate = clk_get_rate(spdif->clk_ref); in img_spdif_out_hw_params()
351 spdif->clk_ref = devm_clk_get(&pdev->dev, "ref"); in img_spdif_out_probe()
352 if (IS_ERR(spdif->clk_ref)) { in img_spdif_out_probe()
[all …]
Dimg-parallel-out.c41 struct clk *clk_ref; member
51 clk_disable_unprepare(prl->clk_ref); in img_prl_out_suspend()
61 ret = clk_prepare_enable(prl->clk_ref); in img_prl_out_resume()
143 clk_set_rate(prl->clk_ref, rate * 256); in img_prl_out_hw_params()
243 prl->clk_ref = devm_clk_get(&pdev->dev, "ref"); in img_prl_out_probe()
244 if (IS_ERR(prl->clk_ref)) { in img_prl_out_probe()
245 if (PTR_ERR(prl->clk_ref) != -EPROBE_DEFER) in img_prl_out_probe()
247 return PTR_ERR(prl->clk_ref); in img_prl_out_probe()
Dimg-i2s-out.c57 struct clk *clk_ref; member
73 clk_disable_unprepare(i2s->clk_ref); in img_i2s_out_suspend()
84 ret = clk_prepare_enable(i2s->clk_ref); in img_i2s_out_resume()
232 pre_div_a = clk_round_rate(i2s->clk_ref, rate * 256); in img_i2s_out_hw_params()
235 pre_div_b = clk_round_rate(i2s->clk_ref, rate * 384); in img_i2s_out_hw_params()
244 clk_set_rate(i2s->clk_ref, pre_div_b); in img_i2s_out_hw_params()
246 clk_set_rate(i2s->clk_ref, pre_div_a); in img_i2s_out_hw_params()
253 clk_rate = clk_get_rate(i2s->clk_ref); in img_i2s_out_hw_params()
463 i2s->clk_ref = devm_clk_get(&pdev->dev, "ref"); in img_i2s_out_probe()
464 if (IS_ERR(i2s->clk_ref)) { in img_i2s_out_probe()
[all …]