PATCHING XML ( PATHMAPS AND LAYOUT )FILES AppleHDA

CHAPTER 4:PATCHING XML  ( PATHMAPS AND LAYOUT )FILES.

COMPRESSING AND UNCOMPRESSING ZLIB FILES OF PLATFORM AND LAYOUT XML:
From 10.8 or later, the xml files are compressed to zlib format. We have to uncompress them to edit the files. After editing, again we have to compress it back to zlib.

 

For Compressing and uncompressing, use the attached Zlib App , just drag .zlib files will convert them to xml files..

Layoutxx.xml file Patching

You can either use the attached xml files (or) can choose any one of the layout xml file from the apple Resources directory inside AppleHDA kext that matches Inputs and outputs of your codec and try this only if you want to experiment or modify as you desired .

I’m using the Layout1.xml of Apple and edited to the values of ALC887-VD. There is no specific reason behind choosing it and every works very well. The other layout id’s  ’12’ and ’28’ which are in most patched kext in hackintosh.

1.Now Use PlistEditorPro or Xcode to Edit files

2.Open files and do as directed :

 

1. Edit the “IntSpeaker” key  like below and remove all the signal processing elements.
Note: set MuteGPIO to 0 (or) remove this if its not working [ not supported by some codecs]

For Realtek: Desktop :

<key>IntSpeaker</key>
<dict>
    <key>MaximumBootBeepValue</key>
    <integer>64</integer>
</dict>
For Realtek: NoteBooks
<key>IntSpeaker</key>
<dict>
    <key>MaximumBootBeepValue</key>
    <integer>48</integer>
    <key>MuteGPIO</key>
    <integer>0</integer>
</dict>

For others:NoteBooks

 <key>IntSpeaker</key>

<dict>
    <key>MaximumBootBeepValue</key>
    <integer>110</integer>
</dict>

2. Edit the “LineIn” key  like below. 
For Realtek:

<key>LineIn</key>
<dict>
     <key>MuteGPIO</key>
     <integer>1342242840</integer>
</dict>

For Others:

<key>Mic</key>
<dict/>

6.  Edit the “Mic” key like below.
For Realtek:

<key>Mic</key>
<dict>
     <key>MuteGPIO</key>
     <integer>1342242841</integer>
</dict>

For Others:

<key>LineIn</key>
<dict/>

Note: SignalProcessing elements for Mic and Speaker are not supported by some codecs, so i’ve removed it. But can provide some good audio if used but not sure, so try to experiment with this later after getting audio working. I’ve attached xml files with the SignalProcessing working fine in ALC887-VD for speaker and Mic in Realtek and IDT for your reference, you can get more from Apple xml files.

Platforms.xml file Patching:

You can use the Platforms xml file i’ve attached which has all the PathMaps of Apple codec are removed and has only one PathMap of ALC887-VD in order to make it easy for editing instead of Apple file.

We need to add our pathMaps to this root key which is a mapping of our Pin Complex’s(O/P & I/P) to its Output/Input controls.
p1

p2

 

Note : Ouputs and Inputs Device take effect from here ,so set them as desired or output inputs devices you have according to Hardware or Manufacturer Module ..Any changes to it will change your Output and Input devices in System Preference /Sounds .

 

 

p2

P4

 

No Responses

Add Comment