From: 邱建斌 Date: Tue, 18 Dec 2012 09:01:24 +0000 (+0800) Subject: rt5631 phone: standby enable micbias X-Git-Tag: firefly_0821_release~8096 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9e329ef41d6afa8b0ff21929d5f170e67fe38a59;p=firefly-linux-kernel-4.4.55.git rt5631 phone: standby enable micbias --- diff --git a/sound/soc/codecs/rt5631_phone.c b/sound/soc/codecs/rt5631_phone.c index 814e48bebb20..6409a170ea6b 100755 --- a/sound/soc/codecs/rt5631_phone.c +++ b/sound/soc/codecs/rt5631_phone.c @@ -2107,6 +2107,11 @@ static int rt5631_set_bias_level(struct snd_soc_codec *codec, snd_soc_update_bits(codec, RT5631_PWR_MANAG_ADD3, RT5631_PWR_FAST_VREF_CTRL, RT5631_PWR_FAST_VREF_CTRL); + msleep(100); + snd_soc_update_bits(codec, RT5631_PWR_MANAG_ADD2, + RT5631_PWR_MICBIAS1_VOL | RT5631_PWR_MICBIAS2_VOL, + RT5631_PWR_MICBIAS1_VOL | RT5631_PWR_MICBIAS2_VOL); + codec->cache_only = false; codec->cache_sync = 1; snd_soc_cache_sync(codec);