]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5607ff84392f0c9b6431ea4ed79750ea985147bb
treeac5bc5499c7744ff85bee82481aaefa606b1b87c
parentf33e9cbf43419c9f0fcbfa262672386f6431cf59
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