ASoC: rl6231: Add new supports on rl6231
authorDerek Fang <derek.fang@realtek.com>
Thu, 6 Feb 2020 06:22:13 +0000 (14:22 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 11 Feb 2020 11:22:29 +0000 (11:22 +0000)
1. Increases the max limit of PLL input frequency
   on RL6231 shared support.
2. Add a new pll preset map.

Signed-off-by: Derek Fang <derek.fang@realtek.com>
Link: https://lore.kernel.org/r/1580970133-14089-1-git-send-email-derek.fang@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rl6231.c
sound/soc/codecs/rl6231.h

index a887d5ccb10d6c2e5e7a2fb35cdd8e23b780f776..d181c217d835b5711a1cb22d1597fdf30c6c61c4 100644 (file)
@@ -102,6 +102,7 @@ struct pll_calc_map {
 static const struct pll_calc_map pll_preset_table[] = {
        {19200000,  4096000,  23, 14, 1, false},
        {19200000,  24576000,  3, 30, 3, false},
+       {3840000,   24576000,  3, 30, 0, true},
 };
 
 static unsigned int find_best_div(unsigned int in,
index 31a9643b0afd435c7d481de203149b6b95930dc5..6d8ed0377296da990198e7dc971309718c19f690 100644 (file)
@@ -10,7 +10,7 @@
 #ifndef __RL6231_H__
 #define __RL6231_H__
 
-#define RL6231_PLL_INP_MAX     40000000
+#define RL6231_PLL_INP_MAX     50000000
 #define RL6231_PLL_INP_MIN     256000
 #define RL6231_PLL_N_MAX       0x1ff
 #define RL6231_PLL_K_MAX       0x1f