]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ASoC: rt5645: Restore HP depop setting in HP off
authorBard Liao <bardliao@realtek.com>
Fri, 27 Mar 2015 12:19:09 +0000 (20:19 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 27 Mar 2015 16:48:57 +0000 (09:48 -0700)
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 <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c

index b6d5b9570efb591646db1233f6d5a2533aee4814..69528ae5410c991125c2e16f3810d51ae7026b88 100644 (file)
@@ -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);
                }
        }
 }