diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-30 15:32:05 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-12-01 09:21:55 -0500 |
commit | af6b6fe41c4bc9e7933d66bbbf5106e0e7e6e484 (patch) | |
tree | a77dfb3341cffbf084986bdf53bd1503e2389ebc /sound/soc/codecs/wm8994.h | |
parent | 157a75e664f8c811c660de1d1b9abb16a1f72579 (diff) |
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.h | 3 |
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 { | |||
85 | bool fll_locked_irq; | 85 | bool fll_locked_irq; |
86 | 86 | ||
87 | int vmid_refcount; | 87 | int vmid_refcount; |
88 | int active_refcount; | ||
88 | 89 | ||
89 | int dac_rates[2]; | 90 | int dac_rates[2]; |
90 | int lrclk_shared[2]; | 91 | int lrclk_shared[2]; |
@@ -126,10 +127,12 @@ struct wm8994_priv { | |||
126 | const char **enh_eq_texts; | 127 | const char **enh_eq_texts; |
127 | struct soc_enum enh_eq_enum; | 128 | struct soc_enum enh_eq_enum; |
128 | 129 | ||
130 | struct mutex accdet_lock; | ||
129 | struct wm8994_micdet micdet[2]; | 131 | struct wm8994_micdet micdet[2]; |
130 | bool mic_detecting; | 132 | bool mic_detecting; |
131 | bool jack_mic; | 133 | bool jack_mic; |
132 | int btn_mask; | 134 | int btn_mask; |
135 | bool jackdet; | ||
133 | 136 | ||
134 | wm8958_micdet_cb jack_cb; | 137 | wm8958_micdet_cb jack_cb; |
135 | void *jack_cb_data; | 138 | void *jack_cb_data; |