summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5645.c
diff options
context:
space:
mode:
authorBard Liao <bardliao@realtek.com>2015-03-27 20:19:09 +0800
committerMark Brown <broonie@kernel.org>2015-03-27 09:48:57 -0700
commit373225510f9608150a18b3491e756fbf3f58ff24 (patch)
tree8116c0b93202b8ab5643cffe4c8417291448cb30 /sound/soc/codecs/rt5645.c
parent1b5d0160e8f17db0714016a2550d3b1d65c70c3e (diff)
downloadop-kernel-dev-373225510f9608150a18b3491e756fbf3f58ff24.zip
op-kernel-dev-373225510f9608150a18b3491e756fbf3f58ff24.tar.gz
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 <bardliao@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5645.c')
-rw-r--r--sound/soc/codecs/rt5645.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
index b6d5b95..69528ae 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);
}
}
}
OpenPOWER on IntegriCloud