summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/rl6231.c
diff options
context:
space:
mode:
authorderek.fang <derek.fang@realtek.com>2020-06-12 08:15:22 +0300
committerMark Brown <broonie@kernel.org>2020-06-15 22:58:36 +0300
commit8d8efecb28b8f622330ea3546cbdcc06e667f6b5 (patch)
treec70a07a2fd819bb0f2d1b5599cf98f1725e31c25 /sound/soc/codecs/rl6231.c
parent6b9fbb073636906eee9fe4d4c05a4f445b9e2a23 (diff)
downloadlinux-8d8efecb28b8f622330ea3546cbdcc06e667f6b5.tar.xz
ASoC: rl6231: Add new supports on rl6231
Add pll preset maps for Realtek codecs' PLL2 freq conversions. Signed-off-by: derek.fang <derek.fang@realtek.com> Link: https://lore.kernel.org/r/1591938925-1070-2-git-send-email-derek.fang@realtek.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rl6231.c')
-rw-r--r--sound/soc/codecs/rl6231.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/rl6231.c b/sound/soc/codecs/rl6231.c
index 8c9daf32bab8..d1fc1706422f 100644
--- a/sound/soc/codecs/rl6231.c
+++ b/sound/soc/codecs/rl6231.c
@@ -103,7 +103,9 @@ struct pll_calc_map {
static const struct pll_calc_map pll_preset_table[] = {
{19200000, 4096000, 23, 14, 1, false, false},
{19200000, 24576000, 3, 30, 3, false, false},
+ {48000000, 3840000, 23, 2, 0, false, false},
{3840000, 24576000, 3, 30, 0, true, false},
+ {3840000, 22579200, 3, 5, 0, true, false},
};
static unsigned int find_best_div(unsigned int in,