summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5677.h
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2014-06-17 06:41:31 +0200
committerMark Brown <broonie@linaro.org>2014-06-30 20:42:47 +0200
commit099d334e3d5c0b26480dffc44fe6272c90898237 (patch)
treeac5bc5499c7744ff85bee82481aaefa606b1b87c /sound/soc/codecs/rt5677.h
parentASoC: rt5677: Add a PMD case to MICBIAS1 event (diff)
downloadlinux-099d334e3d5c0b26480dffc44fe6272c90898237.tar.xz
linux-099d334e3d5c0b26480dffc44fe6272c90898237.zip
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>
Diffstat (limited to 'sound/soc/codecs/rt5677.h')
-rw-r--r--sound/soc/codecs/rt5677.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/soc/codecs/rt5677.h b/sound/soc/codecs/rt5677.h
index af4e9c797408..08252e7c1ab4 100644
--- a/sound/soc/codecs/rt5677.h
+++ b/sound/soc/codecs/rt5677.h
@@ -1425,14 +1425,6 @@ enum {
RT5677_AIFS,
};
-struct rt5677_pll_code {
- bool m_bp; /* Indicates bypass m code or not. */
- bool k_bp; /* Indicates bypass k code or not. */
- int m_code;
- int n_code;
- int k_code;
-};
-
struct rt5677_priv {
struct snd_soc_codec *codec;
struct rt5677_platform_data pdata;