Home
last modified time | relevance | path

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

/sound/soc/codecs/
Des8328.c448 int clk_rate; in es8328_hw_params() local
458 clk_rate = clk_get_rate(es8328->clk); in es8328_hw_params()
460 if ((clk_rate != ES8328_SYSCLK_RATE_1X) && in es8328_hw_params()
461 (clk_rate != ES8328_SYSCLK_RATE_2X)) { in es8328_hw_params()
464 __func__, clk_rate, in es8328_hw_params()
488 int clk_rate; in es8328_set_dai_fmt() local
518 clk_rate = clk_get_rate(es8328->clk); in es8328_set_dai_fmt()
519 if (clk_rate == ES8328_SYSCLK_RATE_1X) in es8328_set_dai_fmt()
/sound/soc/fsl/
Dfsl_sai.c309 unsigned long clk_rate; in fsl_sai_set_bclk() local
319 clk_rate = clk_get_rate(sai->mclk_clk[id]); in fsl_sai_set_bclk()
320 if (!clk_rate) in fsl_sai_set_bclk()
323 ratio = clk_rate / freq; in fsl_sai_set_bclk()
325 ret = clk_rate - ratio * freq; in fsl_sai_set_bclk()
331 if (ret != 0 && clk_rate / ret < 1000) in fsl_sai_set_bclk()
336 ratio, freq, clk_rate); in fsl_sai_set_bclk()
Dfsl_esai.c227 unsigned long clk_rate; in fsl_esai_set_dai_sysclk() local
263 clk_rate = clk_get_rate(clksrc); in fsl_esai_set_dai_sysclk()
265 ratio = clk_rate / freq; in fsl_esai_set_dai_sysclk()
266 if (ratio * freq > clk_rate) in fsl_esai_set_dai_sysclk()
267 ret = ratio * freq - clk_rate; in fsl_esai_set_dai_sysclk()
268 else if (ratio * freq < clk_rate) in fsl_esai_set_dai_sysclk()
269 ret = clk_rate - ratio * freq; in fsl_esai_set_dai_sysclk()
274 if (ret != 0 && clk_rate / ret < 1000) { in fsl_esai_set_dai_sysclk()
/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()