[WORKAROUND]audio: SW support to swap mic bias1 & bias2
authorKuldeepX Vyas <kuldeepx.vyas@intel.com>
Wed, 6 Jun 2012 13:07:52 +0000 (18:37 +0530)
committerbuildbot <buildbot@intel.com>
Wed, 27 Jun 2012 20:46:59 +0000 (13:46 -0700)
commit9b14ebe811c4948eae4dd0594fa160cd0b44f6ee
tree149bf233a57d1da06e4f88d3c310db3f184232db
parentf062714b69c10c8fb19c40e3939a1859f293336e
[WORKAROUND]audio: SW support to swap mic bias1 & bias2

BZ: 39873

Lex PR1.1 and PR2.1 have their AMIC bias lines are swapped.
Codec and Machine driver needs to handle the difference
between these two boards using SPID.

During driver initialization drivers reads SPID and based on
board, appropriate audio map is initialized.  In machine driver,
use appropriate AMIC Bias to handle headset button presses.

This patch should be reverted once Lex PR1.1 is EOLed.

Change-Id: I11c35644419e2d6b683cbb0e130c3bac51f4dfe9
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/53652
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Tested-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Yang, Fei <fei.yang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
sound/soc/codecs/sn95031.c
sound/soc/mid-x86/mfld_machine_gi.c