ASoC: rt5677: Convert to use rl6231_pll_calc
authorAxel Lin <axel.lin@ingics.com>
Tue, 17 Jun 2014 04:41:31 +0000 (12:41 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 30 Jun 2014 18:42:47 +0000 (19:42 +0100)
commit099d334e3d5c0b26480dffc44fe6272c90898237
treeac5bc5499c7744ff85bee82481aaefa606b1b87c
parentf58c3b915287af02d192cc8fb64ae8689107ec5f
ASoC: rt5677: Convert to use rl6231_pll_calc

The implementation of rt5677_pll_calc() has the same logic of rl6231_pll_calc().
The only difference is the lower boundary checking for freq_in.

This patch calls rl6231_pll_calc() instead of open-coded.
The k_bp of struct rt5677_pll_code is always false, thus also remove the
code to check pll_code.k_bp.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Tested-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/rt5677.c
sound/soc/codecs/rt5677.h