summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8994.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-30 21:32:05 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-01 15:21:55 +0100
commitaf6b6fe41c4bc9e7933d66bbbf5106e0e7e6e484 (patch)
treea77dfb3341cffbf084986bdf53bd1503e2389ebc /sound/soc/codecs/wm8994.h
parentASoC: Rename WM8994 detecting flag to mic_detecting (diff)
downloadlinux-af6b6fe41c4bc9e7933d66bbbf5106e0e7e6e484.tar.xz
linux-af6b6fe41c4bc9e7933d66bbbf5106e0e7e6e484.zip
ASoC: Implement support for WM1811A jack detection
The WM1811A features an advanced low power accessory detection subsystem which allows the device to be maintained in a very low power state while the system is idle without sacrificing any accessory detection features. Implement software support for this, automatically managing the power configuration of the device depending on the detected accessory. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8994.h')
-rw-r--r--sound/soc/codecs/wm8994.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8994.h b/sound/soc/codecs/wm8994.h
index 8622bc4db2fe..6ef3f11878c6 100644
--- a/sound/soc/codecs/wm8994.h
+++ b/sound/soc/codecs/wm8994.h
@@ -85,6 +85,7 @@ struct wm8994_priv {
bool fll_locked_irq;
int vmid_refcount;
+ int active_refcount;
int dac_rates[2];
int lrclk_shared[2];
@@ -126,10 +127,12 @@ struct wm8994_priv {
const char **enh_eq_texts;
struct soc_enum enh_eq_enum;
+ struct mutex accdet_lock;
struct wm8994_micdet micdet[2];
bool mic_detecting;
bool jack_mic;
int btn_mask;
+ bool jackdet;
wm8958_micdet_cb jack_cb;
void *jack_cb_data;