How to patch AppleHDA.kext from 10.5.2 and above, It is a little bit hard, but is fun. |
How to patch AppleHDA.kext from 10.5.2 and above, It is a little bit hard, but is fun. |
|
MadTux
InsanelyMac Geek
|
![]() |
Sep 21 2008, 02:01 AM Post #1
|
![]() ![]()
|
Os X Leopard introduced new codecs, inside their AppleHDA binary so why not to use them.
I will try to explain how to patch and modify a new AppleHDA.kext and hopefully help others in making their one. I believe that here are guys/girls ho want to work on this. I don't know perfect solution, U will need to try and test a bit. Learn and stuff... This tutorial will be based on AppleHDA 10.5.5 kext coz it is latest one Things that we need: HexEditor:
HexEdit_220.dmg ( 525.8K )
Number of downloads: 4780Plist Editor:
Property_List_Editor.zip ( 89.09K )
Number of downloads: 3021AppleHDA.kext:
AppleHDA.kext.zip ( 516.61K )
Number of downloads: 5287And this generic plist files for PlatformPlugin and Controler plugins.
Platform_Controler.zip ( 3.78K )
Number of downloads: 2952And your own codec dump from Linux, (U can get your codec dump information from Taruga HDAudio.kext, but I never had time to test that) Let's begin: These are codecs we have in AppleHDA binary
codecs.rtf ( 573bytes )
Number of downloads: 5084And this is a test codec: Test codec Name: ALC880 Decimal : 283904128 Hex: 0x10ec0880 Hexedit: 8008EC10 First We need to patch AppleHDA binary with Hexedit Binary is inside AppleHDA.kext (~/AppleHDA.kext/Contenst/MacOS/AppleHDA) Open AppleHDA in HexEdit and find a codec dump that is close to yours. Best way of knowing your card is reading patch_realtek.c from ALSA source:
patch_realtek.c.txt ( 534.95K )
Number of downloads: 3839(Or if U are lucky it is the one from original AppleHDA and all that U need to do is create plist files) I will edit AppleHDA binary with 8008EC10. what is backward of 10EC0880 So I searched for ALC0262 what is in hex 10EC0262 and changed to 8008EC10 P.S: Try different codecs, for this card 10ec0880, sigmatel codec works too, so U have to make some test, don't stuck on first one. Give it a try. Second: After U patched your AppleHDA next it is to create a working PlatformDriver.plist I made(hopefully) a generic one with all thing that U could have. How to Platform:
Platform.zip ( 489.86K )
Number of downloads: 1924Third - Contorler.plist Change CodecID to your codec in decimal number and put a LayoutID to 12. Under PinConfigDefault put nothing. (It would be best to know your own exact PinConfigDefault numbers, U can obtain them from Vista Registry Explorer, or obtain them thru linux dump(thx Kabyl and The King on this one). Swap Contorler.plist with Info.plist inside Controler plugin ~/AppleHDA.kext/Contenst/PlugIns/AppleHDAController.kext/Contenst/Info.plist RENAME Controler.plist to Info.plist!
controler.jpg ( 182.52K )
Number of downloads: 4508With this U can hopefully boot and have sound. P.P.S: Change in Controler plist are crucial,but U can boot with your AppleHDA.kext with only this informations in HDAController plist file, but System profiler will not show your inputs. To change from HEX to DECIMAL use Calculator in Applications. And U have to use HDAEneabler(If U have Intel chipset) or EFI string for your HDA to load, it is better to use HDAEneabler, coz it sets ClassMatch HDA value for Controler.plist. After all this U have a working latest HDAkext for alc880:
AppleHDA880.zip ( 481.72K )
Number of downloads: 1268How to read your codec dump I will Use a codec dump from user adat6 and try to explane how to find a pins inside codec dump. And hopefully U will find yours inside your dump
atad6.txt ( 8.07K )
Number of downloads: 1405How to codec dump:
Codecdump.zip ( 4.28K )
Number of downloads: 1214How to PinConfig, PinConfigDefault or PinConfigOverRides U can obtain this PinConfig thru Vista registry explorer. Click on: START RUN and write: regedit (this will start registry explorer) Search for PinConfig, and U will get something like this:
VistaRegEdit.rtf ( 1.51K )
Number of downloads: 1226Then as user idoc said: "strip out the junk!" f01c2701 111d2701 111e2701 411f2701 f01c3701 111d3701 111e3701 411f3701 1f1c4701 101d4701 211e4701 021f4701 101c5701 011d5701 131e5701 991f5701 f01c6701111d6701 111e6701411f6701 401c8701981d8701 a11e8701021f8701 411c9701091d9701 a31e9701991f9701 4e1ca701301da701 811ea701021fa701 f01cc701111dc701 111ec701411fc701 2d1cd701951dd701 171ed701401fd701 301ce701111de701 451ee701021fe701 then you have to byte flip each double word; <01271CF0 01271D11 01271E11 01271F41 01371CF0 01371D11 01371E11 01371F41 01471C1F 01471D10 01471E21 01471F02 01571C10 01571D01 01571E13 01571F99 01671D11 01671CF0 01671F41 01671E11 01871D98 01871C40 01871F02 01871EA1 01971D09 01971C41 01971F99 01971EA3 01A71D30 01A71C4E 01A71F02 01A71E81 01C71D11 01C71CF0 01C71F41 01C71E11 01D71D95 01D71C2D 01D71F40 01D71E17 01E71D11 01E71C30 01E71F02 01E71E45> And after U done this go here so The King can tell U what to do with PinConfig: PinConfig How to; The King aka XyZ: Next... how to overide your BIOS with HDAVerbs... and get any card to work A made this guide for people who cards are not supported by HDA patcher from Taruga, like mine card ALC880, this guide could be alternative. I don't know what cards are working U will have to try on your one. If U found this guide useful, I am glad. If U ask for help, and want to post a codec dump or registry dump from windows, please post them in text format as atachment. It is easier for every one. Related stuff AppleHDA collection and knowledge base from The King aka XyZ: Anemic sound from limini:
Reason for edit: fixed links
Attached File(s)
|
MadTux How to patch AppleHDA.kext from 10.5.2 and above Sep 21 2008, 02:01 AM
atad6 Thanks for the great guide! I'm a bit new ... Sep 21 2008, 07:39 AM
limini MadTux: this has the potential to be brilliant... Sep 21 2008, 04:03 PM
MadTux QUOTE (limini @ Sep 21 2008, 04:03 PM) Ma... Sep 21 2008, 07:18 PM
age_sabres18 omg this is exactly what im looking for! now i... Sep 21 2008, 04:17 PM
atad6 Like I said before, thanks for the great guide. I... Sep 21 2008, 06:06 PM
atad6 RE: How to patch AppleHDA.kext from 10.5.2 and above Sep 21 2008, 08:10 PM
MadTux Rename your codec in codecdump
Codec: Realtek ALC2... Sep 21 2008, 09:20 PM
atad6 Sigh, still no luck. I was able to find the pin nu... Sep 21 2008, 11:12 PM
limini OK: this is interesting. I did a codec dump of the... Sep 22 2008, 04:01 AM
MadTux QUOTE (limini @ Sep 22 2008, 04:01 AM) OK... Sep 22 2008, 03:41 PM
limini QUOTE (MadTux @ Sep 22 2008, 11:41 AM) Li... Sep 22 2008, 06:38 PM
MadTux QUOTE (limini @ Sep 22 2008, 06:38 PM) In... Sep 22 2008, 10:42 PM
limini QUOTE (MadTux @ Sep 22 2008, 06:42 PM) U ... Sep 23 2008, 01:05 AM
MadTux QUOTE (limini @ Sep 23 2008, 01:05 AM) I... Sep 23 2008, 01:38 AM
limini QUOTE (MadTux @ Sep 22 2008, 09:38 PM) Ye... Sep 23 2008, 06:51 AM
MadTux QUOTE (limini @ Sep 23 2008, 06:51 AM) I... Sep 23 2008, 12:51 PM
enb14 Thanks for your tips MadTux, now my question is wh... Sep 22 2008, 04:27 AM
MacNutty I think the easiest way is to use AppleHDA patcher... Sep 22 2008, 05:20 AM
limini QUOTE (MacNutty @ Sep 22 2008, 01:20 AM) ... Sep 22 2008, 06:13 AM
enb14 QUOTE (limini @ Sep 22 2008, 12:13 AM) Ye... Sep 22 2008, 05:02 PM
age_sabres18 hi im on a pavillion laptop with IDT audio codec a... Sep 23 2008, 12:35 AM
Cheops Would this method work getting my internal subwoof... Sep 23 2008, 12:06 PM
xghost Hey I'm stuck at finding out my nodes.
Becaus... Sep 24 2008, 12:04 PM
MadTux QUOTE (xghost @ Sep 24 2008, 12:04 PM) He... Sep 24 2008, 01:32 PM
machotom have u got any idea with sigmatel 9200 audio ?... Sep 24 2008, 12:24 PM
xghost Okay I'll try. But I stumbled across another p... Sep 24 2008, 01:35 PM
limini Just an FYI: I tried to use EFIStudio's genera... Sep 24 2008, 08:46 PM
MadTux QUOTE (limini @ Sep 24 2008, 08:46 PM) Ju... Sep 26 2008, 05:10 AM
SticMAN™ Hi Madtux,
is this a typo error?
"- PathMap
... Sep 24 2008, 08:52 PM
MadTux QUOTE (SticMAN™ @ Sep 24 2008, 08:52 PM) ... Sep 25 2008, 04:55 AM
dflow MadTux,
I think your idea is pretty brilliant and ... Sep 26 2008, 08:38 AM
MadTux QUOTE (dflow @ Sep 26 2008, 08:38 AM) Mad... Sep 26 2008, 08:49 AM
sensei730000 MadTux you're the one! Thanks to you my al... Sep 26 2008, 11:30 AM
limini Hi MadTux. I'm looking into re-organizing the ... Sep 26 2008, 03:26 PM
dRkLePtO I'm trying to get the AnalogDevices1981 work o... Sep 27 2008, 04:32 PM
MadTux QUOTE (dRkLePtO @ Sep 27 2008, 04:32 PM) ... Sep 27 2008, 10:54 PM
comatron RE: How to patch AppleHDA.kext from 10.5.2 and above Sep 27 2008, 10:33 PM
comatron here the workring link for the intel-hda-document:... Sep 27 2008, 11:08 PM
MadTux QUOTE (comatron @ Sep 27 2008, 11:08 PM) ... Sep 27 2008, 11:15 PM
comatron QUOTE (MadTux @ Sep 28 2008, 01:15 AM) It... Sep 27 2008, 11:33 PM
dRkLePtO I tried to find out my nodes..
Mic: Input ... Sep 28 2008, 01:30 PM
MadTux QUOTE (dRkLePtO @ Sep 28 2008, 01:30 PM) ... Sep 28 2008, 04:16 PM
dRkLePtO QUOTE (MadTux @ Sep 28 2008, 04:16 PM) Ap... Sep 28 2008, 11:28 PM
Cheops Hi MadTux,
Would it be possible to give me a hand... Sep 28 2008, 10:48 PM
MadTux QUOTE (Cheops @ Sep 28 2008, 10:48 PM) Hi... Sep 28 2008, 11:25 PM
Cheops QUOTE (MadTux @ Sep 29 2008, 12:25 AM) Be... Sep 29 2008, 12:29 AM
MadTux QUOTE (Cheops @ Sep 29 2008, 12:29 AM) 1.... Sep 29 2008, 01:58 AM
idoc The HDAU.exe program would be really handy to dete... Sep 29 2008, 02:17 PM
Cheops Hi All,
So I dumped my PinConfigOverrideVerbs but... Sep 29 2008, 02:53 PM
idoc OK. Strip out the junk;
f01c2701 111d2701 111e2701... Sep 29 2008, 04:12 PM
MadTux QUOTE (idoc @ Sep 29 2008, 04:12 PM) then... Sep 29 2008, 04:16 PM
Cheops Ok i'll give it a go, Do I have to have a work... Sep 29 2008, 04:36 PM
miglo Please let us know if you get the ALC269 codec to ... Sep 29 2008, 04:39 PM
comatron interresting stuff ... even if i cant handle it my... Sep 29 2008, 04:42 PM
MadTux QUOTE (comatron @ Sep 29 2008, 04:42 PM) ... Sep 29 2008, 04:51 PM
comatron @miglo: the lenovo netbook got that alc269 too? so... Sep 29 2008, 08:57 PM
Dr. Hurt Mad Tux,
Might I suggest that you make a patcher i... Sep 29 2008, 09:14 PM
MadTux QUOTE (Dr. Hurt @ Sep 29 2008, 09:14 PM) ... Sep 30 2008, 03:16 AM
idoc MadTux,
Still playing around with the ALC269. Appl... Sep 30 2008, 04:18 AM
Cheops Ok I cannot get my 10.5.5 kext to load to try the ... Sep 30 2008, 11:04 AM
Cheops Anyone help. Please don't let this thread die ... Oct 1 2008, 02:57 PM
MadTux QUOTE (Cheops @ Oct 1 2008, 02:57 PM) Any... Oct 2 2008, 09:05 PM
cparm thank you madtux, now i understand how to remap ap... Oct 1 2008, 08:23 PM
jaadkd Has anyone had any luck getting the ALC888 on ICH7... Oct 1 2008, 11:41 PM
justvisiting Very good instructions. I do have one problem. M... Oct 4 2008, 12:53 AM
justvisiting OK, my mistake. MadTux is not saying edit AppleHD... Oct 4 2008, 04:03 AM
nobb1x hi MadTux, thanks for this guide, i'm trying t... Oct 4 2008, 11:58 AM
barnum Hi all,
I've an ALC1200 (p5q pro motherboard)... Oct 5 2008, 10:01 AM
nobb1x QUOTE (barnum @ Oct 5 2008, 10:01 AM) Hi ... Oct 5 2008, 10:14 AM
MadTux QUOTE (barnum @ Oct 5 2008, 10:01 AM) Hi ... Oct 5 2008, 10:44 AM
nobb1x QUOTE (MadTux @ Oct 5 2008, 10:44 AM) Why... Oct 5 2008, 11:52 AM
MadTux QUOTE (nobb1x @ Oct 5 2008, 11:52 AM) I... Oct 5 2008, 03:09 PM
nobb1x QUOTE (MadTux @ Oct 5 2008, 03:09 PM) try... Oct 5 2008, 07:29 PM
MadTux QUOTE (nobb1x @ Oct 5 2008, 07:29 PM) Yes... Oct 5 2008, 08:03 PM
MadTux nobb1x so U have sound from speakers with 10.5.5? Oct 5 2008, 08:14 PM

nobb1x QUOTE (MadTux @ Oct 5 2008, 08:14 PM) nob... Oct 5 2008, 09:19 PM
Cheops QUOTE (nobb1x @ Oct 5 2008, 08:29 PM) Yes... Oct 6 2008, 10:29 AM
clockworx Can anyone tell me if a full reboot is necessary t... Oct 5 2008, 01:26 PM
MadTux QUOTE (clockworx @ Oct 5 2008, 01:26 PM) ... Oct 5 2008, 04:01 PM
IronFly Tried to follow the guide but i can't have sou... Oct 5 2008, 08:10 PM
olvko Anyone tried to prepatch AppleHDA for ALC600-VD? I... Oct 5 2008, 11:09 PM
MadTux QUOTE (olvko @ Oct 5 2008, 11:09 PM) Anyo... Oct 6 2008, 12:59 AM
olvko The working old kext from Taruga site and ALSA dum... Oct 6 2008, 09:59 AM
collit99 Hi MadTux,
In your post at this thread AppleHDA A... Oct 6 2008, 10:36 AM
Wiwi Ok, first, many thanks for your job.
I've tri... Oct 6 2008, 10:47 AM
MadTux QUOTE (Wiwi @ Oct 6 2008, 10:47 AM) Ok, f... Oct 6 2008, 11:56 AM
Wiwi QUOTE (MadTux @ Oct 6 2008, 12:56 PM) fir... Oct 6 2008, 06:16 PM
MadTux QUOTE (Wiwi @ Oct 6 2008, 06:16 PM) I don... Oct 6 2008, 07:55 PM
nobb1x just a more question, looking at Taruga's hda ... Oct 6 2008, 12:19 PM
MadTux QUOTE (nobb1x @ Oct 6 2008, 12:19 PM) jus... Oct 6 2008, 02:04 PM
Cheops I did add my Vista Config Verbs with the bytes swi... Oct 6 2008, 12:34 PM
nobb1x QUOTE (Cheops @ Oct 6 2008, 12:34 PM) I d... Oct 6 2008, 12:57 PM
Cheops The MadTux one is an old one though yes?
Ade. Oct 6 2008, 01:56 PM
RoyIdeas Anybody can make for msi wind working sound and mi... Oct 6 2008, 04:16 PM
eberts Your tutorial is a bit hard to read indeed. Althou... Oct 6 2008, 08:54 PM
MadTux QUOTE (eberts @ Oct 6 2008, 08:54 PM) You... Oct 6 2008, 10:59 PM
themyers Any luck trying to get the ACL269 Asus 1000h Kext?... Oct 7 2008, 12:44 AM
THe KiNG Hi MadTux, nice guide
I didnt know that u write i... Oct 7 2008, 04:13 PM
MadTux QUOTE (THe KiNG @ Oct 7 2008, 04:13 PM) H... Oct 7 2008, 05:00 PM ![]() |
|
Lo-Fi Version | Time is now: 22nd November 2009 - 11:10 AM |