CyanogenMod/android_frameworks_base — pull request #30 by lozohcum (2014-02-20 15:17:39+00:00)
Title: WiredAccessoryObserver: Headset detection for sony msm7x27a

Sony's headset driver uses the nonstandard headset_sensor switch
while other drivers (eg power button driver) still use the h2w
switch, so simply renaming back to h2w is not simple. This looks
for the headset_sensor switch, and if it's not present falls
back to the standard h2w switch.

I short wired headset is fixed now.