aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOder Chiou <oder_chiou@realtek.com>2015-10-05 07:34:16 -0400
committerMark Brown <broonie@kernel.org>2015-10-05 10:27:16 -0400
commita2c026cfec3fb84375785dd2d6ec80bd60c5120e (patch)
treef29d505e6d9643f181fb5266e3bd431a383bfa79
parentfbe039bb0815e6113f82021aa8c0e36a1941f511 (diff)
ASoC: rt5645: Prevent the weird sound of the headphone while rebooting
The patch adds the codec reset setting in the shutdown function to prevent the weird sound of the headphone happened by rebooting. Signed-off-by: Oder Chiou <oder_chiou@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-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 66b7332e8654..cd1a4ec980ac 100644
--- a/sound/soc/codecs/rt5645.c
+++ b/sound/soc/codecs/rt5645.c
@@ -3514,6 +3514,8 @@ static void rt5645_i2c_shutdown(struct i2c_client *i2c)
3514 RT5645_CBJ_MN_JD); 3514 RT5645_CBJ_MN_JD);
3515 regmap_update_bits(rt5645->regmap, RT5645_IN1_CTRL1, RT5645_CBJ_BST1_EN, 3515 regmap_update_bits(rt5645->regmap, RT5645_IN1_CTRL1, RT5645_CBJ_BST1_EN,
3516 0); 3516 0);
3517 msleep(20);
3518 regmap_write(rt5645->regmap, RT5645_RESET, 0);
3517} 3519}
3518 3520
3519static struct i2c_driver rt5645_i2c_driver = { 3521static struct i2c_driver rt5645_i2c_driver = {