ASoC: rt5645: set high voltage for capless power
authorBard Liao <bardliao@realtek.com>
Tue, 27 Dec 2016 04:05:06 +0000 (12:05 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 9 Jan 2017 11:57:43 +0000 (11:57 +0000)
The default capless power mode is low voltage mode. We should set
it to high voltage mode to get fair headphone performance.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c

index 1ac96ef9ee2077dc70ba940f939e8162ce1dec26..37fb2b6c34a5f9fcb69a1dafbadf6b71a12075bd 100644 (file)
@@ -3109,7 +3109,7 @@ static int rt5645_jack_detect(struct snd_soc_codec *codec, int jack_insert)
        unsigned int val;
 
        if (jack_insert) {
-               regmap_write(rt5645->regmap, RT5645_CHARGE_PUMP, 0x0006);
+               regmap_write(rt5645->regmap, RT5645_CHARGE_PUMP, 0x0e06);
 
                /* for jack type detect */
                snd_soc_dapm_force_enable_pin(dapm, "LDO2");