Contribute
Register

Clarification on AppleHDA patching....

Status
Not open for further replies.
Joined
Jan 12, 2014
Messages
37
Motherboard
Dell XPS 14Z (L412Z)-Clover
CPU
I5 2450M/HM67
Graphics
HD 3000, 1366 x 768
I have done a lot of reading on this, and I have working sound currently, but I am not happy with my current solution. I tried to use the CloverALC audio patching script, but could never get it to work on my machine. My audio codec is ALC269. All of the scripts out there support audio layout IDs of 1 & 3 for IntelHD3000. However, the only way I have been able to get my sound working is by patching my DSDT with an audio layout ID of 5. I'm still using a patched AppleHDA.kext from Yosemite that is patched for layout ID 5 that somebody posted on this forum. However, I want to patch dynamically the native AppleHDA.kext via Clover so I can stay with the latest AppleHDA.kext for El Capitan.

1.) It is my understanding that the layout ID is specific to the system. Is this correct? If I currently have working sound with DSDT patched with layout ID of 5, then is that the only layout ID for my system?

2.) I understand it after reading that the audio patch is dependant on the DSDT first being patched with the correct audio layout ID. Is this also correct?

3.) I currently have working sound but something isn't patched correctly currently as my internal mic does not work and the input section of my sound panel shows "Internal Speakers", just like the output section.

Can somebody clarify the dependencies for patching AppleHDA.kext correctly? I have read the guides but still need some clarification in regards to the layout ID dependencies.

Thanks for any clarification. I have attached my current ioreg, clover folder, & the patch Yosemite AppleHDA.kext that I am currently using for audio layout ID 5.
 

Attachments

  • IOREG_Jeremy’s MacBook Pro.zip
    434.3 KB · Views: 65
  • CLOVER.zip
    3 MB · Views: 81
  • Patched_Yosemite_AppleHDA.kext.zip
    1.3 MB · Views: 123
I have done a lot of reading on this, and I have working sound currently, but I am not happy with my current solution. I tried to use the CloverALC audio patching script, but could never get it to work on my machine. My audio codec is ALC269. All of the scripts out there support audio layout IDs of 1 & 3 for IntelHD3000. However, the only way I have been able to get my sound working is by patching my DSDT with an audio layout ID of 5. I'm still using a patched AppleHDA.kext from Yosemite that is patched for layout ID 5 that somebody posted on this forum. However, I want to patch dynamically the native AppleHDA.kext via Clover so I can stay with the latest AppleHDA.kext for El Capitan.

1.) It is my understanding that the layout ID is specific to the system. Is this correct? If I currently have working sound with DSDT patched with layout ID of 5, then is that the only layout ID for my system?

2.) I understand it after reading that the audio patch is dependant on the DSDT first being patched with the correct audio layout ID. Is this also correct?

3.) I currently have working sound but something isn't patched correctly currently as my internal mic does not work and the input section of my sound panel shows "Internal Speakers", just like the output section.

Can somebody clarify the dependencies for patching AppleHDA.kext correctly? I have read the guides but still need some clarification in regards to the layout ID dependencies.

Thanks for any clarification. I have attached my current ioreg, clover folder, & the patch Yosemite AppleHDA.kext that I am currently using for audio layout ID 5.

Layout id is an arbitrary choice on the part of the person patching AppleHDA.

See FAQ.

http://www.tonymacx86.com/el-capita...faq-read-first-laptop-frequent-questions.html
 
Layout id is an arbitrary choice on the part of the person patching AppleHDA.

See FAQ.

http://www.tonymacx86.com/el-capita...faq-read-first-laptop-frequent-questions.html
I think this part finally makes sense after some additional reading. I was able to get everything working minus HDMI audio out, which I have learned, for whatever reason, REQUIRES an audio layout ID of 3. (my current is layout ID 6 using a kext Mirone made for Yosemite). I have been following the guide here (http://www.insanelymac.com/forum/topic/295001-guide-to-patch-applehda-for-your-codec/#entry1980947) to try and apply my own patch to my vanilla 10.11.5 AppleHDA.kext. However, some of the screenshots are broken in that thread, and I am stuck at applying the patching to the info.plist file within the AppleHDAHardwareConfigDriver.kext. I am using PrefSetter, and am stuck specifically on this step: "2-configdata: Here we put our configdata / Verbs codec that previously corrected." I thought I would need to put ALL of my modified codec verbs from the below codec dump, but it appears the data field only allows one line of entry. Am I trying to use the wrong information here? The CodecId was the decimal version of my audio codec below (283902569). Is the ConfigData in the info.plist not all of my "modified verbs"? Any clarification is appreciated.
Code:
Verbs from Linux Codec Dump File: codec_dump.txt

Codec: Realtek ALC259   Address: 0   DevID: 283902569 (0x10ec0269)

   Jack   Color  Description                  Node     PinDefault             Original Verbs
--------------------------------------------------------------------------------------------------------
  ATAPI Unknown  Mic at Int ATAPI            18 0x12   0x99a30920   01271c20 01271d09 01271ea3 01271f99
  ATAPI Unknown  Speaker at Int ATAPI        20 0x14   0x99130110   01471c10 01471d01 01471e13 01471f99
    1/8   Black  Speaker at Ext Rear         23 0x17   0x411111f0   01771cf0 01771d11 01771e11 01771f41
 Mic at Ext Right    0x18 0x18                        77666352 01871c30 01871d18     01871ea1 01871f04  
    1/8   Black  Speaker at Ext Rear         25 0x19   0x411111f0   01971cf0 01971d11 01971e11 01971f41
    1/8   Black  Speaker at Ext Rear         26 0x1a   0x411111f0   01a71cf0 01a71d11 01a71e11 01a71f41
    1/8   Black  Speaker at Ext Rear         27 0x1b   0x411111f0   01b71cf0 01b71d11 01b71e11 01b71f41
 Analog    Pink  Line Out at Ext N/A         29 0x1d   0x40079a2d   01d71c2d 01d71d9a 01d71e07 01d71f40
    1/8   Black  Speaker at Ext Rear         30 0x1e   0x411111f0   01e71cf0 01e71d11 01e71e11 01e71f41
    1/8   Black  HP Out at Ext Right         33 0x21   0x0421101f   02171c1f 02171d10 02171e21 02171f04
--------------------------------------------------------------------------------------------------------


   Jack   Color  Description                  Node     PinDefault             Modified Verbs
--------------------------------------------------------------------------------------------------------
  ATAPI Unknown  Mic at Int ATAPI            18 0x12   0x99a30920   01271c20 01271d00 01271ea3 01271f90
  ATAPI Unknown  Speaker at Int ATAPI        20 0x14   0x99130110   01471c10 01471d00 01471e13 01471f90
 Mic at Ext Right    0x18 0x18                        77666352 01871c30 01871d10     01871ea1 01871f00  
 Analog    Pink  Line Out at Ext N/A         29 0x1d   0x40079a2d   01d71c40 01d71d90 01d71e07 01d71f40
    1/8   Black  HP Out at Ext Right         33 0x21   0x0421101f   02171c50 02171d10 02171e21 02171f00
--------------------------------------------------------------------------------------------------------

Also, I think at this point I understand everywhere the layout-id is used and referenced that I could modified the existing kext I am using to change the layout ID from 6 to 3. However, I think it's best to continue and patch this latest version from 10.11.5.
 
Thanks! I was just reading over that guide this morning. Did you have any thoughts in regards to my ConfigData question for patching the info.plist of the AppleHDAHardwareConfigDriver.kext? I plan to finish patching my 10.11.5 AppleHDA.kext and then proceed to the your Intel HDMI guide above.

You should probably read the Intel HDA spec to understand how pinconfig data is written to the codec (there are 4 verbs involved, each one to set a different byte of the 32-bit value).
 
Status
Not open for further replies.
Back
Top