summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5682-i2c.c
diff options
context:
space:
mode:
authorDerek Fang <derek.fang@realtek.com>2021-11-09 10:54:50 +0100
committerMark Brown <broonie@kernel.org>2021-11-12 19:16:43 +0100
commit2cd9b0ef82d936623d789bb3fbb6fcf52c500367 (patch)
treec3999f4fd7ba1102800b575de9b7eece2fb52646 /sound/soc/codecs/rt5682-i2c.c
parentASoC: rt5682: Avoid the unexpected IRQ event during going to suspend (diff)
downloadlinux-2cd9b0ef82d936623d789bb3fbb6fcf52c500367.tar.xz
linux-2cd9b0ef82d936623d789bb3fbb6fcf52c500367.zip
ASoC: rt5682: Re-detect the combo jack after resuming
Sometimes, end-users change the jack type under suspending, so it needs to re-detect the combo jack type after resuming to avoid any unexpected behaviors. Signed-off-by: Derek Fang <derek.fang@realtek.com> Link: https://lore.kernel.org/r/20211109095450.12950-2-derek.fang@realtek.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5682-i2c.c')
-rw-r--r--sound/soc/codecs/rt5682-i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5682-i2c.c b/sound/soc/codecs/rt5682-i2c.c
index 983347b65127..20e0f90ea498 100644
--- a/sound/soc/codecs/rt5682-i2c.c
+++ b/sound/soc/codecs/rt5682-i2c.c
@@ -198,6 +198,7 @@ static int rt5682_i2c_probe(struct i2c_client *i2c,
}
mutex_init(&rt5682->calibrate_mutex);
+ mutex_init(&rt5682->jdet_mutex);
rt5682_calibrate(rt5682);
rt5682_apply_patch_list(rt5682, &i2c->dev);