Lines Matching refs:ratio
378 unsigned int ratio = 2 * f_in / f_out; in wm8974_get_mclkdiv() local
380 if (ratio <= 2) { in wm8974_get_mclkdiv()
382 ratio = 2; in wm8974_get_mclkdiv()
383 } else if (ratio == 3) { in wm8974_get_mclkdiv()
385 } else if (ratio == 4) { in wm8974_get_mclkdiv()
387 } else if (ratio <= 6) { in wm8974_get_mclkdiv()
389 ratio = 6; in wm8974_get_mclkdiv()
390 } else if (ratio <= 8) { in wm8974_get_mclkdiv()
392 ratio = 8; in wm8974_get_mclkdiv()
393 } else if (ratio <= 12) { in wm8974_get_mclkdiv()
395 ratio = 12; in wm8974_get_mclkdiv()
396 } else if (ratio <= 16) { in wm8974_get_mclkdiv()
398 ratio = 16; in wm8974_get_mclkdiv()
401 ratio = 24; in wm8974_get_mclkdiv()
404 return f_out * ratio / 2; in wm8974_get_mclkdiv()