diff options
author | Oder Chiou <oder_chiou@realtek.com> | 2014-05-08 02:47:36 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-08 04:02:41 -0400 |
commit | 4809b96ebb301a8e6c9b61665bef70191fedd2dc (patch) | |
tree | 246ece0324fdb35357b02adca8f967526341ed25 | |
parent | 9e22f7826a6f2c255dd2ee96515597ed7a189022 (diff) |
ASoC: rt5645: Move settings from probe() to reg_default struct
The patch moves the private register settings from probe() to reg_default
struct.
Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | sound/soc/codecs/rt5645.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c index 9d8c7c833234..0165e07f09ab 100644 --- a/sound/soc/codecs/rt5645.c +++ b/sound/soc/codecs/rt5645.c | |||
@@ -50,6 +50,10 @@ static const struct regmap_range_cfg rt5645_ranges[] = { | |||
50 | 50 | ||
51 | static const struct reg_default init_list[] = { | 51 | static const struct reg_default init_list[] = { |
52 | {RT5645_PR_BASE + 0x3d, 0x3600}, | 52 | {RT5645_PR_BASE + 0x3d, 0x3600}, |
53 | {RT5645_PR_BASE + 0x1c, 0xfd20}, | ||
54 | {RT5645_PR_BASE + 0x20, 0x611f}, | ||
55 | {RT5645_PR_BASE + 0x21, 0x4040}, | ||
56 | {RT5645_PR_BASE + 0x23, 0x0004}, | ||
53 | }; | 57 | }; |
54 | #define RT5645_INIT_REG_LEN ARRAY_SIZE(init_list) | 58 | #define RT5645_INIT_REG_LEN ARRAY_SIZE(init_list) |
55 | 59 | ||
@@ -2205,10 +2209,6 @@ static int rt5645_probe(struct snd_soc_codec *codec) | |||
2205 | rt5645_set_bias_level(codec, SND_SOC_BIAS_OFF); | 2209 | rt5645_set_bias_level(codec, SND_SOC_BIAS_OFF); |
2206 | 2210 | ||
2207 | snd_soc_update_bits(codec, RT5645_CHARGE_PUMP, 0x0300, 0x0200); | 2211 | snd_soc_update_bits(codec, RT5645_CHARGE_PUMP, 0x0300, 0x0200); |
2208 | snd_soc_write(codec, RT5645_PR_BASE + 0x1c, 0xfd20); | ||
2209 | snd_soc_write(codec, RT5645_PR_BASE + 0x20, 0x611f); | ||
2210 | snd_soc_write(codec, RT5645_PR_BASE + 0x21, 0x4040); | ||
2211 | snd_soc_write(codec, RT5645_PR_BASE + 0x23, 0x0004); | ||
2212 | 2212 | ||
2213 | return 0; | 2213 | return 0; |
2214 | } | 2214 | } |