Planet-X / android_device_asus_zenfone3

LineageOS and TWRP device trees for the Asus Zenfone 3 ZE552KL and ZE520KL.
7 stars 7 forks source link

lineage-15.1: Headphones are not detected #2

Closed Planet-X closed 6 years ago

Planet-X commented 6 years ago

In LineageOS 15.1 headphones are not detected. This bug was not present on LineageOS 14.1. On stock rom, when monitoring input events via "getevent", event8 gets triggered as soon as a headphone is plugged in. This event doesn't get triggered on LOS.

To narrow down the cause of the issue I already tried two things:

  1. I booted the rom using a precompiled kernel extracted from stock rom. Due to a bug in this kernel sdcardfs has to be disabled (ro.sys.sdcardfs=false). It booted properly but the headphone event still wasn't firing. Using the unaltered stock kernel source results were the same.
  2. Just to be sure it's in no way connected to the custom audio HAL I compiled the rom with the default one. Still no input event for the headphone jack.

All logs have been collected using an eng build to get them as early as possible: dmesg: https://www.dropbox.com/s/e2j1tt4ghrfws2z/dmesg.log?dl=1

logcat: https://www.dropbox.com/s/plfw4wecttavt3l/logcat.log?dl=1

getevent output shows all events: https://www.dropbox.com/s/96n0epc0rmebm7t/getevent.log?dl=1

Plugging in a headphone didn't cause any additional log outputs. I'll also try to get some early boot logs from stock rom.

Planet-X commented 6 years ago

Issue has been solved in the kernel. For more information please check this commit: https://github.com/Planet-X/android_kernel_asus_Z017/commit/3658d9f46600cc4cd1584c3c84c857d7e483adaa