ASoC: hdac_hdmi: Handle MST pin jack detection at boot/resume
authorJeeja KP <jeeja.kp@intel.com>
Tue, 7 Feb 2017 13:39:46 +0000 (19:09 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 16 Feb 2017 18:55:32 +0000 (18:55 +0000)
commita9ce96bcd9c4d0c1ffd3d37c000bcee470b2535b
treec5a6e0bd7cb50523036fbe16036e56eedcba4a2a
parentfc181b04f2d44805624d4bc5a0615bc084199a81
ASoC: hdac_hdmi: Handle MST pin jack detection at boot/resume

The ELD notification can be received asynchronously from the graphics
side and this may happen just at the moment the sound driver is
initializing and notification will be missed. Similarly at system
resume, the notification is ignored as the  ELD and connection states
are updated in anyway at the end of the resume.
So check the jack status in boot/resume by querying the port presence
based on pin caps and report the jack status.

Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hdac_hdmi.c