summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5682.h
diff options
context:
space:
mode:
authorDerek Fang <derek.fang@realtek.com>2021-11-09 17:54:50 +0800
committerMark Brown <broonie@kernel.org>2021-11-12 18:16:43 +0000
commit2cd9b0ef82d936623d789bb3fbb6fcf52c500367 (patch)
treec3999f4fd7ba1102800b575de9b7eece2fb52646 /sound/soc/codecs/rt5682.h
parenta3774a2a6544a7a4a85186e768afc07044aa507f (diff)
downloadlinux-2cd9b0ef82d936623d789bb3fbb6fcf52c500367.tar.bz2
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.h')
-rw-r--r--sound/soc/codecs/rt5682.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5682.h b/sound/soc/codecs/rt5682.h
index d93829c35585..c917c76200ea 100644
--- a/sound/soc/codecs/rt5682.h
+++ b/sound/soc/codecs/rt5682.h
@@ -1463,6 +1463,7 @@ struct rt5682_priv {
int jack_type;
int irq_work_delay_time;
+ struct mutex jdet_mutex;
};
extern const char *rt5682_supply_names[RT5682_NUM_SUPPLIES];