diff options
author | Oder Chiou <oder_chiou@realtek.com> | 2015-09-23 09:35:30 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-09-23 20:59:13 +0300 |
commit | fce97b4d70ad632dd9c6058622492501377bbaaa (patch) | |
tree | 145da638e6a3c82123656c3825989ad19901fafc /sound/soc/codecs/rt5645.c | |
parent | 4f4794124e0421b080a0f1f5f1207636ba55eb85 (diff) | |
download | linux-fce97b4d70ad632dd9c6058622492501377bbaaa.tar.xz |
ASoC: rt5645: Prevent the pop sound in case of playback and the jack is plugging
Signed-off-by: Oder Chiou <oder_chiou@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.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c index 61384ee989fc..268a28bd1df4 100644 --- a/sound/soc/codecs/rt5645.c +++ b/sound/soc/codecs/rt5645.c @@ -2832,6 +2832,9 @@ static int rt5645_jack_detect(struct snd_soc_codec *codec, int jack_insert) } else { /* jack out */ rt5645->jack_type = 0; + regmap_update_bits(rt5645->regmap, RT5645_HP_VOL, + RT5645_L_MUTE | RT5645_R_MUTE, + RT5645_L_MUTE | RT5645_R_MUTE); regmap_update_bits(rt5645->regmap, RT5645_IN1_CTRL2, RT5645_CBJ_MN_JD, RT5645_CBJ_MN_JD); regmap_update_bits(rt5645->regmap, RT5645_IN1_CTRL1, |