Home
last modified time | relevance | path

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

/sound/soc/fsl/
Dfsl_esai.c62 u32 hck_rate[2]; member
231 if (freq == esai_priv->hck_rate[tx] && dir == esai_priv->hck_dir[tx]) in fsl_esai_set_dai_sysclk()
300 esai_priv->hck_rate[tx] = freq; in fsl_esai_set_dai_sysclk()
315 u32 hck_rate = esai_priv->hck_rate[tx]; in fsl_esai_set_bclk() local
316 u32 sub, ratio = hck_rate / freq; in fsl_esai_set_bclk()
323 if (ratio * freq > hck_rate) in fsl_esai_set_bclk()
324 sub = ratio * freq - hck_rate; in fsl_esai_set_bclk()
325 else if (ratio * freq < hck_rate) in fsl_esai_set_bclk()
326 sub = hck_rate - ratio * freq; in fsl_esai_set_bclk()
331 if (sub != 0 && hck_rate / sub < 1000) { in fsl_esai_set_bclk()