Lines Matching refs:ratio
650 unsigned int ratio = 2 * f_in / f_out; in wm8940_get_mclkdiv() local
652 if (ratio <= 2) { in wm8940_get_mclkdiv()
654 ratio = 2; in wm8940_get_mclkdiv()
655 } else if (ratio == 3) { in wm8940_get_mclkdiv()
657 } else if (ratio == 4) { in wm8940_get_mclkdiv()
659 } else if (ratio <= 6) { in wm8940_get_mclkdiv()
661 ratio = 6; in wm8940_get_mclkdiv()
662 } else if (ratio <= 8) { in wm8940_get_mclkdiv()
664 ratio = 8; in wm8940_get_mclkdiv()
665 } else if (ratio <= 12) { in wm8940_get_mclkdiv()
667 ratio = 12; in wm8940_get_mclkdiv()
668 } else if (ratio <= 16) { in wm8940_get_mclkdiv()
670 ratio = 16; in wm8940_get_mclkdiv()
673 ratio = 24; in wm8940_get_mclkdiv()
676 return f_out * ratio / 2; in wm8940_get_mclkdiv()