Use AppleALC with layout 28 and report
Maybe it will be util for someone...
I was having a problem with Apple HDA patcher with layout-id 3.
This is the problem: The sound output was working fine, either the mic was working, but when I plug a headphone in the audio jack to audio p3 port, the system suddenly shutdown!
So, I though: Maybe if I updated the system the problem go away... So, I updated to Sierra 10.12.4 the audio stop working.. probably because Apple updater remove non-official kext HDAEnable, so there I was without audio again, I was already tried VoodooHDA but it has low quality audio and no working mic, tried AppleHDA with HDAEnable but system shutdown when plug audio jack, So I decided to try AppleALC.kext with Lilu.kext both in version 1.1.1, now audio working fine either with phone connected.
thanks.Go to the full post