summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8994.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-05-30 13:42:29 +0100
committerMark Brown <broonie@linaro.org>2013-06-01 19:28:58 +0100
commit2da1c4bf765cb32024e5db6fa75dab92916fa3b1 (patch)
treedbf9c6619cb1c0257398959c4a58d4b30f52b850 /sound/soc/codecs/wm8994.h
parent2d01e39b9073361317eb72b390dc2a4a3d76e192 (diff)
downloadop-kernel-dev-2da1c4bf765cb32024e5db6fa75dab92916fa3b1.zip
op-kernel-dev-2da1c4bf765cb32024e5db6fa75dab92916fa3b1.tar.gz
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 9d19a91..6536f8d 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;
OpenPOWER on IntegriCloud