Home
last modified time | relevance | path

Searched refs:clk_rate (Results 1 – 11 of 11) sorted by relevance

/sound/soc/rockchip/
Drockchip_pdm.c97 unsigned int clk_rate, clk_div, samplerate; in rockchip_pdm_hw_params() local
101 clk_rate = get_pdm_clk(samplerate); in rockchip_pdm_hw_params()
102 if (!clk_rate) in rockchip_pdm_hw_params()
105 ret = clk_set_rate(pdm->clk, clk_rate); in rockchip_pdm_hw_params()
109 clk_div = DIV_ROUND_CLOSEST(clk_rate, samplerate); in rockchip_pdm_hw_params()
/sound/soc/img/
Dimg-spdif-in.c127 unsigned int *phld, unsigned long clk_rate) in img_spdif_in_do_clkgen_calc() argument
139 ori = clk_rate / (rate * 64); in img_spdif_in_do_clkgen_calc()
159 unsigned long flags, clk_rate; in img_spdif_in_do_clkgen_single() local
163 ret = img_spdif_in_check_max_rate(spdif, rate, &clk_rate); in img_spdif_in_do_clkgen_single()
167 ret = img_spdif_in_do_clkgen_calc(rate, &nom, &hld, clk_rate); in img_spdif_in_do_clkgen_single()
196 unsigned long flags, clk_rate; in img_spdif_in_do_clkgen_multi() local
204 ret = img_spdif_in_check_max_rate(spdif, max_rate, &clk_rate); in img_spdif_in_do_clkgen_multi()
211 ret = img_spdif_in_do_clkgen_calc(rate, &nom, &hld, clk_rate); in img_spdif_in_do_clkgen_multi()
Dimg-spdif-out.c229 long pre_div_a, pre_div_b, diff_a, diff_b, rate, clk_rate; in img_spdif_out_hw_params() local
267 clk_rate = clk_get_rate(spdif->clk_ref); in img_spdif_out_hw_params()
269 diff_a = abs((clk_rate / 256) - rate); in img_spdif_out_hw_params()
270 diff_b = abs((clk_rate / 384) - rate); in img_spdif_out_hw_params()
Dimg-i2s-out.c214 long pre_div_a, pre_div_b, diff_a, diff_b, rate, clk_rate; in img_i2s_out_hw_params() local
253 clk_rate = clk_get_rate(i2s->clk_ref); in img_i2s_out_hw_params()
255 diff_a = abs((clk_rate / 256) - rate); in img_i2s_out_hw_params()
256 diff_b = abs((clk_rate / 384) - rate); in img_i2s_out_hw_params()
/sound/soc/sh/rcar/
Dadg.c36 int clk_rate[CLKMAX]; member
114 adg->clk_rate[CLKA], /* 0000: CLKA */ in __rsnd_adg_get_timesel_ratio()
115 adg->clk_rate[CLKB], /* 0001: CLKB */ in __rsnd_adg_get_timesel_ratio()
116 adg->clk_rate[CLKC], /* 0010: CLKC */ in __rsnd_adg_get_timesel_ratio()
332 if (rate == adg->clk_rate[i]) in rsnd_adg_clk_query()
406 adg->clk_rate[i] = clk_get_rate(adg->clk[i]); in rsnd_adg_clk_control()
/sound/soc/fsl/
Dfsl_esai.c228 unsigned long clk_rate; in fsl_esai_set_dai_sysclk() local
264 clk_rate = clk_get_rate(clksrc); in fsl_esai_set_dai_sysclk()
266 ratio = clk_rate / freq; in fsl_esai_set_dai_sysclk()
267 if (ratio * freq > clk_rate) in fsl_esai_set_dai_sysclk()
268 ret = ratio * freq - clk_rate; in fsl_esai_set_dai_sysclk()
269 else if (ratio * freq < clk_rate) in fsl_esai_set_dai_sysclk()
270 ret = clk_rate - ratio * freq; in fsl_esai_set_dai_sysclk()
275 if (ret != 0 && clk_rate / ret < 1000) { in fsl_esai_set_dai_sysclk()
Dfsl_sai.c323 unsigned long clk_rate; in fsl_sai_set_bclk() local
333 clk_rate = clk_get_rate(sai->mclk_clk[id]); in fsl_sai_set_bclk()
334 if (!clk_rate) in fsl_sai_set_bclk()
337 ratio = clk_rate / freq; in fsl_sai_set_bclk()
339 ret = clk_rate - ratio * freq; in fsl_sai_set_bclk()
345 if (ret != 0 && clk_rate / ret < 1000) in fsl_sai_set_bclk()
350 ratio, freq, clk_rate); in fsl_sai_set_bclk()
/sound/soc/samsung/
Dspdif.c87 unsigned long clk_rate; member
135 spdif->clk_rate = freq; in spdif_set_sysclk()
219 ratio = spdif->clk_rate / params_rate(params); in spdif_hw_params()
225 spdif->clk_rate, params_rate(params)); in spdif_hw_params()
/sound/soc/sunxi/
Dsun4i-i2s.c276 unsigned int oversample_rate, clk_rate; in sun4i_i2s_set_clk_rate() local
286 clk_rate = 22579200; in sun4i_i2s_set_clk_rate()
299 clk_rate = 24576000; in sun4i_i2s_set_clk_rate()
306 ret = clk_set_rate(i2s->mod_clk, clk_rate); in sun4i_i2s_set_clk_rate()
320 clk_rate, rate); in sun4i_i2s_set_clk_rate()
Dsun8i-codec.c257 unsigned long clk_rate = clk_get_rate(scodec->clk_module); in sun8i_codec_get_bclk_div() local
258 unsigned int div = clk_rate / rate / word_size / 2; in sun8i_codec_get_bclk_div()
/sound/soc/hisilicon/
Dhi6210-i2s.c53 int clk_rate; member