diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-01-10 18:55:54 -0500 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2013-01-15 01:42:18 -0500 |
commit | 1eda6aa7ce101b59dfd91abef2c8b0e51e96e199 (patch) | |
tree | 9dd5a408d0e5d2df0b8ff1c397cbc92cc86a2539 /include/linux/mfd/arizona/pdata.h | |
parent | dd235eea4ed75b1599dd9a53bb618fe5befeb731 (diff) |
extcon: arizona: Support direct microphone measurement via HPDET
With some GPIO control it is possible to detect microphones in a wider
range of configurations by directly measuring the microphone impedance
when the HPDET method cannot distinguish between the behaviour of the
two grounds. Allow a GPIO to be provided in platform data and use it to
implement this behaviour.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Myungjoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'include/linux/mfd/arizona/pdata.h')
-rw-r--r-- | include/linux/mfd/arizona/pdata.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mfd/arizona/pdata.h b/include/linux/mfd/arizona/pdata.h index 7c0878778357..bcbe4fda87cb 100644 --- a/include/linux/mfd/arizona/pdata.h +++ b/include/linux/mfd/arizona/pdata.h | |||
@@ -102,6 +102,9 @@ struct arizona_pdata { | |||
102 | /** Use the headphone detect circuit to identify the accessory */ | 102 | /** Use the headphone detect circuit to identify the accessory */ |
103 | bool hpdet_acc_id; | 103 | bool hpdet_acc_id; |
104 | 104 | ||
105 | /** GPIO used for mic isolation with HPDET */ | ||
106 | int hpdet_id_gpio; | ||
107 | |||
105 | /** GPIO for mic detection polarity */ | 108 | /** GPIO for mic detection polarity */ |
106 | int micd_pol_gpio; | 109 | int micd_pol_gpio; |
107 | 110 | ||