diff options
author | Derek Fang <derek.fang@realtek.com> | 2021-11-09 10:54:50 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-11-12 19:16:43 +0100 |
commit | 2cd9b0ef82d936623d789bb3fbb6fcf52c500367 (patch) | |
tree | c3999f4fd7ba1102800b575de9b7eece2fb52646 /sound/soc/codecs/rt5682.h | |
parent | ASoC: rt5682: Avoid the unexpected IRQ event during going to suspend (diff) | |
download | linux-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.h')
-rw-r--r-- | sound/soc/codecs/rt5682.h | 1 |
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]; |