Jump to content

Script to patch AppleHDA binary for osx10.7/10.8/10.9

AppleHDA binary patch

  • Please log in to reply
158 replies to this topic

#141
jsl

jsl

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 427 posts

Yes it works for 10.9 x. I've corrected several AppleHDA's for 10.9. x using this script.

After using this script should I set Audio ID = 3 for ALC-282 in 10.9.x ?



#142
Mirone

Mirone

    InsanelyMacaholic

  • Local Moderators
  • 2,720 posts
  • Gender:Male
  • Location:Brazil
so the script corrects the AppleHDA binary 
other files you need to fix manually 
or use a tool for this.


#143
lilryu

lilryu

    InsanelyMac Protégé

  • Members
  • Pip
  • 18 posts

Hey all, I have the 0x10134213 codec also. Any progress on this?



#144
BlackSheep VS RustyNail

BlackSheep VS RustyNail

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 366 posts
  • Gender:Male
  • Location:Mödling, Austria

sudo ./patch-hda.pl -y -c 2

Password:

OSX version 10.9.5 detected

Default target codec: 11060397

 detected.

Couldn't get target codec id for 11060397

 

lspci shows:

 

00:1b.0 0403: 8086:1e20 (rev 04)

Subsystem: 1043:8415

Flags: bus master, fast devsel, latency 0, IRQ 22

Memory at f7c10000 (64-bit, non-prefetchable)

Capabilities: [50] Power Management version 2

Capabilities: [60] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable+

Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00

Capabilities: [100] #8086

 

it's an ASUS P8H77-I Mainboard ;)



#145
ciuffoly

ciuffoly

    InsanelyMac Protégé

  • Members
  • Pip
  • 26 posts
  • Gender:Male

My HDMI Audio work now but how to patch AppleHDA to ear audio with integrated CS4213  ?

 

Dell Vostro 2520



#146
Micky1979

Micky1979

    I realized that I am lucky

  • Moderators
  • 2,583 posts
  • Gender:Male
  • Location:a 100m dal Tevere, vicino a Peppe

My HDMI Audio work now but how to patch AppleHDA to ear audio with integrated CS4213  ?

 

Dell Vostro 2520

Not with this script, you have to manually create your Platform.xml, Layoutx.xml then "zlib" compress it, patch the Info.plist (on AppleHDAHardwareConfigDriver.kext plugin) to point your Layoutx.xml...add a patched pinconfig, activate AppleHDA.kext with your choiced layout-id (multiple options here) ... and test...test..test.. :rolleyes:



#147
plsh2me

plsh2me

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 189 posts
  • Gender:Male
  • Location:Bangladesh

With latest version of script got this error for IDT 92HD81B1X5 -

 

Sahil:~ palash$ /Users/palash/Desktop/patch-hda/patch-hda 

OSX version 10.10.2 detected

Default target codec: 1002aa01

 detected.

Enter codec-id or codec-name for AppleHDA patch.  Eg. 111d7675 or IDT 7675

Press enter for default, or ? for help (Default: 1002aa01

)

? 111d7605

Patching AppleHDA codec 11d4198b with 111d7605

2 codec range comparison(s) to patch

Patching range comparison 11d41983

Patching range comparison 11d41984

Unexpected codec match count: 2 (4 expected)

Aborting with AppleHDA NOT patched

Sahil:~ palash$ 

 

 

Don't know what's wrong. Anything wrong with script or I have done something wrong?



#148
Jithin Chandran

Jithin Chandran

    InsanelyMac Protégé

  • Members
  • PipPip
  • 84 posts
  • Gender:Male
  • Location:India

Hi bcc9,

Any way to perform the binary patch from Yosemite?? I can only run it from Mavericks.



#149
vandebergz

vandebergz

    InsanelyMac Protégé

  • Members
  • PipPip
  • 82 posts

It says that the file can't be found. Is the link dead?

 


It says that the file can't be found. Is the link dead?

 



#150
Jithin Chandran

Jithin Chandran

    InsanelyMac Protégé

  • Members
  • PipPip
  • 84 posts
  • Gender:Male
  • Location:India

It says that the file can't be found. Is the link dead?

 


It says that the file can't be found. Is the link dead?

 

 

Which file you want?



#151
vandebergz

vandebergz

    InsanelyMac Protégé

  • Members
  • PipPip
  • 82 posts

Which file you want?

The one on the first page http://www.insanelym...ttach_id=141301



#152
Jithin Chandran

Jithin Chandran

    InsanelyMac Protégé

  • Members
  • PipPip
  • 84 posts
  • Gender:Male
  • Location:India

The one on the first page http://www.insanelym...ttach_id=141301

 

Download it from here https://drive.google...a2c&usp=sharing


With latest version of script got this error for IDT 92HD81B1X5 -

 

Sahil:~ palash$ /Users/palash/Desktop/patch-hda/patch-hda 

OSX version 10.10.2 detected

Default target codec: 1002aa01

 detected.

Enter codec-id or codec-name for AppleHDA patch.  Eg. 111d7675 or IDT 7675

Press enter for default, or ? for help (Default: 1002aa01

)

? 111d7605

Patching AppleHDA codec 11d4198b with 111d7605

2 codec range comparison(s) to patch

Patching range comparison 11d41983

Patching range comparison 11d41984

Unexpected codec match count: 2 (4 expected)

Aborting with AppleHDA NOT patched

Sahil:~ palash$ 

 

 

Don't know what's wrong. Anything wrong with script or I have done something wrong?

 

Share your patched AppleHDA.



#153
pokenguyen

pokenguyen

    InsanelyMac Legend

  • Pandora Team
  • 611 posts
  • Gender:Male

This is my modified script for 10.7 ~ 10.11

https://www.dropbox....ch-hda.zip?dl=0



#154
Ciro82

Ciro82

    InsanelyMac Legend

  • Donators
  • 1,453 posts
  • Gender:Male
  • Location:Aosta

This is my modified script for 10.7 ~ 10.11

https://www.dropbox....ch-hda.zip?dl=0

 

Hi Poken! My result:

 

iMac-di-Ciro:~ ciro$ cd desktop

iMac-di-Ciro:desktop ciro$ cd patch-hda

iMac-di-Ciro:patch-hda ciro$ sudo ./patch-hda.pl

OSX version 10.11 detected

Default target codec: 10ec0892 detected.

Enter codec-id or codec-name for AppleHDA patch.  Eg. 111d7675 or IDT 7675

Press enter for default, or ? for help (Default: 10ec0892)

? 10ec0892

There are 2 choices for target codec 

Choose codec number to patch to (1 thru 2) (default 1)

Choice 1: ALC 885

Choice 2: ADI 1984B

? 1

Patching AppleHDA codec 10ec0885 with 10ec0892

No codec range comparisons require patching

mv: rename /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA to /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA.orig: Operation not permitted

iMac-di-Ciro:patch-hda ciro$



#155
polyzargone

polyzargone

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,011 posts
  • Gender:Male
  • Location:France

Hi Poken! My result:

 

iMac-di-Ciro:~ ciro$ cd desktop

iMac-di-Ciro:desktop ciro$ cd patch-hda

iMac-di-Ciro:patch-hda ciro$ sudo ./patch-hda.pl

OSX version 10.11 detected

Default target codec: 10ec0892 detected.

Enter codec-id or codec-name for AppleHDA patch.  Eg. 111d7675 or IDT 7675

Press enter for default, or ? for help (Default: 10ec0892)

? 10ec0892

There are 2 choices for target codec 

Choose codec number to patch to (1 thru 2) (default 1)

Choice 1: ALC 885

Choice 2: ADI 1984B

? 1

Patching AppleHDA codec 10ec0885 with 10ec0892

No codec range comparisons require patching

mv: rename /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA to /System/Library/Extensions/AppleHDA.kext/Contents/MacOS/AppleHDA.orig: Operation not permitted

iMac-di-Ciro:patch-hda ciro$

 

Try with bootflag rootless=0 along with kext-dev-mode=1

 

But script doesn't work with my ALC887 on OS X 10.11.

 

After reboot and kernel cache rebuilt, I have no audio outputs :(.



#156
pokenguyen

pokenguyen

    InsanelyMac Legend

  • Pandora Team
  • 611 posts
  • Gender:Male
The script only patches binary of AppleHDA. You have to edit .xml.zlib, edit codec config in info.plist. The script only plays 1 of 3 steps for AppleHDA patching. Please look for AppleHDA guides for more detail.

#157
newapple4g

newapple4g

    InsanelyMac Protégé

  • Members
  • PipPip
  • 81 posts
  • Gender:Male
  • Location:Armenia

The script only patches binary of AppleHDA. You have to edit .xml.zlib, edit codec config in info.plist. The script only plays 1 of 3 steps for AppleHDA patching. Please look for AppleHDA guides for more detail.

Pokenguyen I followed your guide for pathcing apple hda on fly using update script but sound did'nt work. Then I use only script to get clover on fly patch config and use older one dummyhda downloaded from here httpwww.insanelymac.comforumtopic290687-wip-hp-envy-17t-j000-quad-haswell-10851091010 and sound works. Can you tell me what i do wrong by makeing my custom apple hda.



#158
pokenguyen

pokenguyen

    InsanelyMac Legend

  • Pandora Team
  • 611 posts
  • Gender:Male

Pokenguyen I followed your guide for pathcing apple hda on fly using update script but sound did'nt work. Then I use only script to get clover on fly patch config and use older one dummyhda downloaded from here httpwww.insanelymac.comforumtopic290687-wip-hp-envy-17t-j000-quad-haswell-10851091010 and sound works. Can you tell me what i do wrong by makeing my custom apple hda.

My guide is "Convert your patched AppleHDA to Clover patch on the fly", it means that you have to get sound first with a patched AppleHDA before following the guide, it's useless if you don't have sound yet. The guide you should find is "AppleHDA Patch guide" written by toleda or Mirone.



#159
manor

manor

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 336 posts
  • Gender:Male

can you update this code too

No codec range comparisons require patching

0x80868D20, 0x1458A036, 0x11020011, 0x0918, Creative CA0132

Last login: Wed Jul 15 04:48:23 on console

manoranjans-Mac-Pro:~ manoranjan$ cd ~/Desktop/patch-hda

manoranjans-Mac-Pro:patch-hda manoranjan$ ./patch-hda.pl -x 11000211

OSX version 10.10.3 detected

Default target codec: 10de0040 detected.

Couldn't find a codec map to apply for '11000211'.

Would you like to try using ADI 1984 (the default) (Y/N)? Y

Patching AppleHDA codec 11d41984 with 11000211

No codec range comparisons require patching

<dict>

<key>Name</key>

<string>AppleHDA</string>

<key>Comment</key>

<string>Expect 2 matches</string>

<key>Find</key>

<data>hBnUEQ==</data>

<key>Replace</key>

<data>EQIAEQ==</data>

</dict>

manoranjans-Mac-Pro:patch-hda manoranjan$ 

 







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2015 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy