ASoC: Enhance default WM8958 microphone detection

Actively manage the detection rate for microphones with WM8958, providing
improved power consumption and maximising the benefit from the hardware
debounce.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
Mark Brown
2011-08-13 11:57:18 +09:00
parent 500fa30ed5
commit b00adf76a6
2 changed files with 111 additions and 11 deletions

View File

@@ -126,6 +126,8 @@ struct wm8994_priv {
struct soc_enum enh_eq_enum;
struct wm8994_micdet micdet[2];
bool detecting;
bool jack_mic;
wm8958_micdet_cb jack_cb;
void *jack_cb_data;