From: Bard Liao Date: Fri, 27 Mar 2015 12:19:09 +0000 (+0800) Subject: ASoC: rt5645: Restore HP depop setting in HP off X-Git-Tag: v4.1-rc1~117^2~1^2~9^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=373225510f9608150a18b3491e756fbf3f58ff24;p=karo-tx-linux.git ASoC: rt5645: Restore HP depop setting in HP off This driver will set RT5645_DEPOP_MAN bit in headphone power up depop process. We need to restore it in headphone power down process. Otherwise, we will get headphone noise when push button function is enabled. Signed-off-by: Bard Liao Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c index b6d5b9570efb..69528ae5410c 100644 --- a/sound/soc/codecs/rt5645.c +++ b/sound/soc/codecs/rt5645.c @@ -1270,6 +1270,8 @@ static void hp_amp_power(struct snd_soc_codec *codec, int on) snd_soc_update_bits(codec, RT5645_PWR_ANLG1, RT5645_PWR_HP_L | RT5645_PWR_HP_R | RT5645_PWR_HA, 0); + snd_soc_update_bits(codec, RT5645_DEPOP_M2, + RT5645_DEPOP_MASK, 0); } } }