phonepad: rt3261 open micbias when resume, it solve auto open voice search error.
author宋秀杰 <sxj@rock-chips.com>
Wed, 21 Nov 2012 09:56:56 +0000 (17:56 +0800)
committer宋秀杰 <sxj@rock-chips.com>
Wed, 21 Nov 2012 09:56:56 +0000 (17:56 +0800)
sound/soc/codecs/rt3261.c

index 794c015939b52e1ee0c4c44913ff3bbf586ebecf..abc1b65068723bc2e60c93e0709d22e16e29faa5 100755 (executable)
@@ -3138,6 +3138,9 @@ static int rt3261_set_bias_level(struct snd_soc_codec *codec,
                                RT3261_PWR_FV1 | RT3261_PWR_FV2,
                                RT3261_PWR_FV1 | RT3261_PWR_FV2);
                        snd_soc_write(codec, RT3261_GEN_CTRL1, 0x3701);
+                       snd_soc_update_bits(codec, RT3261_PWR_ANLG2,
+                               RT3261_PWR_MB1 | RT3261_PWR_MB2,
+                               RT3261_PWR_MB1 | RT3261_PWR_MB2);
                        codec->cache_only = false;
                        codec->cache_sync = 1;
                        snd_soc_cache_sync(codec);