Searched refs:clk_rate (Results 1 – 4 of 4) sorted by relevance
448 int clk_rate; in es8328_hw_params() local458 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() local518 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()
309 unsigned long clk_rate; in fsl_sai_set_bclk() local319 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()
227 unsigned long clk_rate; in fsl_esai_set_dai_sysclk() local263 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()
87 unsigned long clk_rate; member135 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()