ASoC: codecs: Fix headset detection
authorRavindra Lokhande <rlokhande@nvidia.com>
Wed, 28 Aug 2013 10:36:17 +0000 (15:36 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Tue, 17 Sep 2013 00:40:43 +0000 (17:40 -0700)
commit5597a18ec470c92a3bec7515601c54a2e1b5fccf
tree0654baafc3f6351def4d0686b0f857ba68cc4c59
parentf005e01de8fbc5c255edaf731067e631d5f27787
ASoC: codecs: Fix headset detection

Ceres ERS and FFD has different headset jack. ERS has closed jack
whereas FFD has open jack. Max97236 fails to detect headset for both.
Added code to check board id and use respective jack detection.

Bug 1332257

Change-Id: I64fd45504a090c08e5465c84fec1826367e828c4
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/267264
(cherry picked from commit 21459e02e3c0ff2d0f5697c99bdad7ddf1295246)
Reviewed-on: http://git-master/r/269585
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
sound/soc/codecs/max97236.c
sound/soc/codecs/max98090.c