Audio: Check for jack status during boot time for HP_DET gpio pin only
authorVaibhav Agarwal <vaibhav.agarwal@intel.com>
Mon, 12 Mar 2012 09:51:44 +0000 (15:21 +0530)
committerbuildbot <buildbot@intel.com>
Fri, 30 Mar 2012 14:51:18 +0000 (07:51 -0700)
commit2eb9513f137a67f7db0e9c17c547a248fb3a49f6
tree9eea0918ee79f49c60c20d7c4d0be25a8fc6cba2
parenta38b8d2ebabbb782bdd7e6c756d793a044f86e34
Audio: Check for jack status during boot time for HP_DET gpio pin only

BZ: 27809

During clv_soc_jack_add_gpio(), clv_soc_jack_gpio_detect() is
executed irrespective of GPIO pin. (Headset detection, button press)
This caused, erroneous jack status reported to above layer during
boot time.

The solution is to verify jack status during boot time for HP_DET
gpio pin only.

This patch also contains some changes in clv_machine, cs42l73 driver
to be used as a loadable module.

Change-Id: I943fc6efb40bf16a6ecf2763c7263cbaeec9556c
Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@intel.com>
Reviewed-on: http://android.intel.com:8080/39830
Reviewed-by: Koul, Vinod <vinod.koul@intel.com>
Reviewed-by: M, Arulselvan <arulselvan.m@intel.com>
Tested-by: M, Arulselvan <arulselvan.m@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
sound/soc/codecs/cs42l73.c
sound/soc/mid-x86/clv_machine.c