Jump to content

[Closed] AppleHDA patching requests


plsh2me

Recommended Posts

I'm currently trying to patch AppleHDA to use the Analog Devices 1984a codec on the Dell Precision T5500 (OS X 10.11.5).
When it came to Pathmaps, I got slightly confused because the connections to my outputs lead to more than one audio mixer/selector.
For example:

Green Heaphones Front Jack: 0x11->0x07->0x22->0x04

0x11: Pin Complex "Headphone Playback Switch"

0x07: Audio Mixer

0x22: Audio Selector

0x04: Audio Output "Headphone Playback Volume"

So when it came to Platforms.xml patching I added an extra audio mixer <dict> structure to supplement the proper connection.
I figured it wouldn't work, but I had to give it a try. If anyone has experience with ADI codecs and would like to lend a hand, I've put all of my research into the attached zip file. For the .md files, it's best to view them on dillinger.io for a very nicely formatted version of the codec process.
 
For reference here's the pin configuration:

--incorrect

and Pathmaps:

Green Heaphones Front Jack : 0x11->0x07->0x22->0x04
Green Line-out Back Jack   : 0x12->0x0a-0x04
Speaker                    : 0x13->0x1f->0x1e
Pink Mic Front Jack        : 0x14->0x0c->0x08
Blue Line-in Back Jack     : 0x15->0x0d->0x09

Also the error I receive from the kernel is a sound assertion spammed quite a few times:

6/28/16 9:19:01.000 AM kernel[0]: Sound assertion in AppleHDACodecGeneric at line 532

Edit: I seem to have made some huge mistakes with the pin configuration, the correct pin configuration is:

<01171c40 01171d40 01171e21 01171f02 01271c10 01271d40 01271e01 01271f01 01270c00 01371cf0 01371d01 01371e13 01371f99 01370c00 01471c20 01471d90 01471ea1 01471f02 01571c30 01571d30 01571e81 01571f01 01671cf0 01671d00 01671e00 01671f40 01771cf0 01771d00 01771e00 01771f40 01a71cf0 01a71d00 01a71e00 01a71f40 01b71cf0 01b71d00 01b71e00 01b71f40 01c71cf0 01c71d00 01c71e00 01c71f40>

AD1984a.zip

Link to comment
Share on other sites

  • Replies 390
  • Created
  • Last Reply

Top Posters In This Topic

Here i extracted data from codec_dump of ADI AD1984A

 

PinConfiguration :
<01271c10 01271d40 01271e01 01271f01 
01471c20 01471d90 01471ea1 01471f91 
01571c30 01571d30 01571e81 01571f01 
01171c40 01171d40 01171e21 01171f01 
01371c50 01371d00 01371e13 01371f90>
 
PathMaps :
Speaker              =   19->31->30->3
Headphone            =   17->7->34->4
LineOut              =   18->10->4    
Mic Internal         =   8->12->20
Mic External         =   8->12->21

 

Patched AppleHDA ADI1984A : 10.11.5 

Patched AppleHDA_ADI AD1984A .zip

 

Use Layout_ID=13 for AppleHDA 

inject using DSDT (HDEF ) or Clover 

Good Luck :)

 

 
  • Like 1
Link to comment
Share on other sites

Headphone audio works perfectly! :)

There are some inputs and outputs missing, but I'm just glad that the audio works.

I took some screenshots just in case you wanted to look further into the missing ones.

 

Perfect audio for headphones, only thing missing is green audio port on the back of the case:

post-95304-0-53574600-1467194024_thumb.png

 

Missing External Front Pink Mic Input:

post-95304-0-69799300-1467194121_thumb.png

 

Kernel log, if it helps at all:

post-95304-0-84883600-1467194173_thumb.png

 

Thank you so much for your help InsanelyDeepak, I really appreciate it. 

Link to comment
Share on other sites

Yes v1 and v2 had the same results.

I'm currently using the newest one and the outputs and inputs show, however, no sound makes to through the Mic (Pink Front), it's dead silence when recorded and the names look slightly weird compared to before. I've taken some screenshots for you!

 

post-95304-0-25866600-1467208447_thumb.png

post-95304-0-49053300-1467208457_thumb.png

post-95304-0-24878600-1467208470_thumb.png

 

Thank you for your help!

Link to comment
Share on other sites

I've been in contact with MacPeet as well on the InsanelyMac forums since he's done a 1984A codec for the dell optiplex.

Although this method is slightly different, it works perfectly on El Capitan 10.11.5. Make sure to use layout ID 1 in Clover or in your DSDT, and also use the AppleHDA binary patches here:

post-95304-0-72003600-1467210879_thumb.png

 

All credit goes to MacPeet for these files!:

AD1984A.zip

 

Thank you so much for your help though Deepak! :)

 

 

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

×
×
  • Create New...