summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8994.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-05-30 14:42:29 +0200
committerMark Brown <broonie@linaro.org>2013-06-01 20:28:58 +0200
commit2da1c4bf765cb32024e5db6fa75dab92916fa3b1 (patch)
treedbf9c6619cb1c0257398959c4a58d4b30f52b850 /sound/soc/codecs/wm8994.h
parentASoC: wm8994: Remove unused variable (diff)
downloadlinux-2da1c4bf765cb32024e5db6fa75dab92916fa3b1.tar.xz
linux-2da1c4bf765cb32024e5db6fa75dab92916fa3b1.zip
ASoC: wm8994: Allow debounce before MICDET identification
For systems which do not have a jack detection feature allow some debounce to be specified before we perform accessory identification, improving robustness without impacting button detection responsiveness. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8994.h')
-rw-r--r--sound/soc/codecs/wm8994.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8994.h b/sound/soc/codecs/wm8994.h
index 9d19a9185d35..6536f8d45ac6 100644
--- a/sound/soc/codecs/wm8994.h
+++ b/sound/soc/codecs/wm8994.h
@@ -135,6 +135,8 @@ struct wm8994_priv {
struct wm8994_micdet micdet[2];
struct delayed_work mic_work;
struct delayed_work open_circuit_work;
+ struct delayed_work mic_complete_work;
+ u16 mic_status;
bool mic_detecting;
bool jack_mic;
int btn_mask;