audio: add GPIO support for Lex jack detection
authorKuldeepX Vyas <kuldeepx.vyas@intel.com>
Tue, 5 Jun 2012 09:52:16 +0000 (15:22 +0530)
committerbuildbot <buildbot@intel.com>
Wed, 27 Jun 2012 20:47:11 +0000 (13:47 -0700)
commit850efe3d90d6f72f30a5dee10abe34c9abc26e6e
tree8358b9861db1c4b986ceb258c5f8e6548dec443e
parent9b14ebe811c4948eae4dd0594fa160cd0b44f6ee
audio: add GPIO support for Lex jack detection

BZ: 39875

In PR2.1 board, a GPIO is added to improve the jack
detection logic.

Add driver support GPIO jack detection. _JACK_DET line is
connected to PNW GPIO line.  In addition to existing MSIC
jack detection interrupt, driver reads the GPIO line for
making decision on type jack device connected.

Change-Id: Ib4d8f0f4ecfa7b74f835d902ca8957845ef42261
Signed-off-by: KuldeepX Vyas <kuldeepx.vyas@intel.com>
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Reviewed-on: http://android.intel.com:8080/51674
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Tested-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
sound/soc/mid-x86/mfld_common.h
sound/soc/mid-x86/mfld_machine_gi.c