projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbe039b
)
ASoC: rt5645: Prevent the weird sound of the headphone while rebooting
author
Oder Chiou
<oder_chiou@realtek.com>
Mon, 5 Oct 2015 11:34:16 +0000
(19:34 +0800)
committer
Mark Brown
<broonie@kernel.org>
Mon, 5 Oct 2015 14:27:16 +0000
(15:27 +0100)
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>
sound/soc/codecs/rt5645.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/rt5645.c
b/sound/soc/codecs/rt5645.c
index 66b7332e8654957ca3c9b84ea6fe527f1e4f3fa3..cd1a4ec980ace651665dc5d7264f0078452dd548 100644
(file)
--- 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)
RT5645_CBJ_MN_JD);
regmap_update_bits(rt5645->regmap, RT5645_IN1_CTRL1, RT5645_CBJ_BST1_EN,
0);
+ msleep(20);
+ regmap_write(rt5645->regmap, RT5645_RESET, 0);
}
static struct i2c_driver rt5645_i2c_driver = {