ASoC: wcd9xxx: Avoid vddio switch during plug type detection

When MBHC detects new plug type, MBHC driver turns on vddio switch in order
to check if plug is fully inserted.  But utilizing vddio switch can lead to
plug type detection failure when plugged headset behaves differently
between with and without vddio switch.

The HPHL status register can replace the vddio switch so driver can check
if plug is fully inserted by reading the HPHL status register.  Hence
replace vddio switch with HPHL status register.

CRs-fixed: 440803
Change-Id: I5c23cb38459e806266c806e391f8f8f2e7c65a5d
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
[smuckle@codeaurora.org: backported to msm-3.7]
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
2 files changed