Jump to content

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


bcc9
 Share

168 posts in this topic

Recommended Posts

  • 2 weeks later...
  • 2 weeks later...

bcc9, it breaks again:

./patch-hda
OSX version 10.10 detected
Default target codec: 111d7605
 detected.
Enter codec-id or codec-name for AppleHDA patch.  Eg. 111d7675 or IDT 7675
Press enter for default, or ? for help (Default: 111d7605
)
? 
Couldn't get target codec id for 111d7605

Supported codecs:
Target		Target		Patch
Codec ID	Name		Codec Name
-------------------------------------------
10ec0662	Realtek ALC662	ALC 885
10ec0272	Realtek ALC272	ADI 1984
10ec0282	Realtek ALC282	ADI 1984
10ec0889	Realtek ALC889	Choice 1: ALC 885
				Choice 2: ADI 1984
111d76df	IDT 76df	ADI 1984B
10ec0892	Realtek ALC892	Choice 1: ALC 885
				Choice 2: ADI 1984B
10ec0883	Realtek ALC883	ALC 885
10ec0270	Realtek ALC270	ADI 1984
11068446	VIA VT1802	ADI 1984
10ec0887	Realtek ALC887	ADI 1984B
14f1510f	Conexant CX20752	ADI 1984
10ec0898	Realtek ALC898	ADI 1984B
10ec0888	Realtek ALC888	ALC 885
111d76d9	IDT 76d9	ADI 1984B
10ec0268	Realtek ALC268	ADI 1984
111d7605	IDT 7605	ADI 1984B
111d7603	IDT 7603	ADI 1984
10ec0663	Realtek ALC663	ADI 1984
14f1506e	Conexant CX20590	ADI 1984
14f15115	Conexant CX20757	ADI 1984
111d76e0	IDT 76e0	ADI 1984B
14f15067	Conexant CX20583	ADI 1984
111d7675	IDT 7675	ADI 1984
10ec0275	Realtek ALC275	ADI 1984
10ec0670	Realtek ALC670	ADI 1984
11060441	VIA VT2021	ADI 1984
14f15069	Conexant CX20585	ADI 1984
11d4989b	ADI AD2000B	ADI 1984B
10ec0283	Realtek ALC283	ADI 1984
10ec0269	Realtek ALC269	ADI 1984
111d76d1	IDT 76d1	ADI 1984
10ec0882	Realtek ALC882	ALC 885
10ec0900	Realtek ALC1150	ADI 1984B
14f1506e	Conexant CX20672	ADI 1984B

The problem is when it gets default codec, the new line is not trimmed. This will work:

chomp($default_codec = `ioreg -rxn IOHDACodecDevice | grep VendorID | awk '{print \$4}' | tr -d '\040\011\012\015'`);
Link to comment
Share on other sites

  • 2 weeks later...

Some problems in 10.10:

sudo ./patch-hda.pl 0x10134213
OSX version 10.10 detected
Default target codec: 111d7605 detected.
Patching AppleHDA codec 11d41984 with 10134213
9 codec range comparison(s) to patch
Patching range comparison 10de0006
Patching range comparison 11d41983
Patching range comparison 10ec0884
Patching range comparison 10ec0261
Patching range comparison 10de003f
Patching range comparison 10de0013
Patching range comparison 10de0007
Patching range comparison 10de000a
Patching range comparison 10de000c
Quantifier follows nothing in regex; marked by <-- HERE in m/? <-- HERE / at ./patch-hda.pl line 227, <$IN> line 1.
sudo ./patch-hda.pl "IDT 7605"
OSX version 10.10 detected
Default target codec: 111d7605
 detected.
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

Link to comment
Share on other sites

 

I used to fix cirrus logic 4210 

no error here.

 

Hi, I have this same codec on my vizio laptop. Would you care to share your patched applehda? Or at least your platform and layout12? I can't seem to ever edit layout12 and Platforms correctly. :P

Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...

Here is the 3.4 script modified to work with 10.10, have fun:

 

https://www.dropbox.com/s/l5pclf0l2z0w9no/patch-hda.zip

 

I still can't fix error with 0x10134213

Thanks for your effort and help.

I found this script works for  ALC-282 in 10.10DP8.

Although there is no error during patching in both 10.9.4 and 10.9.5, no actual audio devices shown or working.

Dos it mean these scripts not working for ALC-282 in Mavericks 10.9.x ?

Link to comment
Share on other sites

  • 3 weeks later...

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 ;)

Link to comment
Share on other sites

  • 1 month later...

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:

Link to comment
Share on other sites

  • 2 months later...

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?

Link to comment
Share on other sites

  • 1 month later...
 Share

×
×
  • Create New...