Audio: Extend GPIO jack detection support for all medfield based devices
authorNamarta Kohli <namartax.kohli@intel.com>
Mon, 21 May 2012 09:38:44 +0000 (15:08 +0530)
committerbuildbot <buildbot@intel.com>
Wed, 23 May 2012 10:52:15 +0000 (03:52 -0700)
commit6001f6f9c4a93d0b4254d571bf81a2e3d5284b37
tree08337339f236a284b64a812714cc33677246ebf4
parent07128e141feb41eb81526180ec095ce9dd3ee4c5
Audio: Extend GPIO jack detection support for all medfield based devices

BZ: 37120

Redridge device has a GPIO pin which can be used to detect high impedance
headsets.

With this GPIO support, whenever an insert interrupt is received and the
micbias value is out of range, it checks the GPIO pin and reports the jack as
a HEADSET if the GPIO pin says that there is a headset.

Change-Id: I6ea08050b1c965a23937ab9a5e6d36e9a66486d2
Signed-off-by: Namarta Kohli <namartax.kohli@intel.com>
Reviewed-on: http://android.intel.com:8080/49514
Reviewed-by: Babu, Ramesh <ramesh.babu@intel.com>
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
sound/soc/mid-x86/mfld_machine.c