extcon: arizona: Support direct microphone measurement via HPDET
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 10 Jan 2013 23:55:54 +0000 (08:55 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 15 Jan 2013 06:42:18 +0000 (15:42 +0900)
commit1eda6aa7ce101b59dfd91abef2c8b0e51e96e199
tree9dd5a408d0e5d2df0b8ff1c397cbc92cc86a2539
parentdd235eea4ed75b1599dd9a53bb618fe5befeb731
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>
drivers/extcon/extcon-arizona.c
include/linux/mfd/arizona/pdata.h