mirror of
https://github.com/LineageOS/android_kernel_samsung_msm8226.git
synced 2026-10-01 00:00:50 +02:00
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>