Headphone detection
Seems to be implemented using registers instead of a GPIO.
-
HP-DET
Headphone Detect -
MIC_DET
Headphone MIC Detect
(note that there are headphone with and without microphones so this information has to be available in user space)
https://source.android.com/devices/accessories/headset/jack-headset-spec
Edited by Luca Weiss