From: Sugar Zhang Date: Wed, 20 May 2015 03:01:43 +0000 (+0800) Subject: ASoC: es8316: reduce standby power consumption around ~uA. X-Git-Tag: firefly_0821_release~4158^2~3 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3fcbca1c7c51ca4d20302e97ea4d4887f2ef3080;p=firefly-linux-kernel-4.4.55.git ASoC: es8316: reduce standby power consumption around ~uA. Signed-off-by: Sugar Zhang --- diff --git a/sound/soc/codecs/es8316.c b/sound/soc/codecs/es8316.c old mode 100644 new mode 100755 index bac349bbc0f4..0c47ad22bb5f --- a/sound/soc/codecs/es8316.c +++ b/sound/soc/codecs/es8316.c @@ -835,7 +835,8 @@ static void es8316_pcm_shutdown(struct snd_pcm_substream *substream, if (--es8316->pwr_count) { DBG("%s pwr count: %d\n", __func__, es8316->pwr_count); } else { - snd_soc_write(codec, ES8316_SYS_PDN_REG0D, 0x26); + snd_soc_write(codec, ES8316_SYS_PDN_REG0D, 0x3F); + snd_soc_write(codec, ES8316_CLKMGR_CLKSW_REG01, 0xF3); DBG("%s pwr count close ES8316_SYS_PDN_REG0D\n", __func__); } } @@ -1169,10 +1170,10 @@ static int es8316_probe(struct snd_soc_codec *codec) snd_soc_write(codec, ES8316_HPMIX_SWITCH_REG14, 0x00); snd_soc_write(codec, ES8316_HPMIX_PDN_REG15, 0x33); snd_soc_write(codec, ES8316_HPMIX_VOL_REG16, 0x00); - snd_soc_write(codec, ES8316_SYS_PDN_REG0D, 0x26); + snd_soc_write(codec, ES8316_SYS_PDN_REG0D, 0x3F); snd_soc_write(codec, ES8316_SYS_LP1_REG0E, 0xFF); snd_soc_write(codec, ES8316_SYS_LP2_REG0F, 0xFF); - snd_soc_write(codec, ES8316_CLKMGR_CLKSW_REG01, 0xFF); + snd_soc_write(codec, ES8316_CLKMGR_CLKSW_REG01, 0xF3); snd_soc_write(codec, ES8316_ADC_PDN_LINSEL_REG22, 0xc0); es8316_init_reg = 1;