Jump to content

How to patch AppleHDA.kext from 10.5.2 and above


  • Please log in to reply
227 replies to this topic

#41
comatron

comatron

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 145 posts

It is all about correct nodes in Pathmap of Platform.plist, I will check on that and send U something over PM, I think atad6 posted codec dump for this card, and that was one I took for HOW TO FIND NODES INSIDE YOUR CODEC DUMP.


thank you very very much. i did write to atad6 via pm too. seems like he failed cause the whole community for alc269 got no solution yet :blink: i checked how to find nodes on your first post (uad) but i dont understand those steps with the 3 nodes and their connections. ill check my pm all the time so i can test your stuff! thanx for the effort of time

#42
dRkLePtO

dRkLePtO

    InsanelyMac Protégé

  • Members
  • Pip
  • 25 posts
I tried to find out my nodes..

Mic: Input Selector PinCom
HEX: 04 0B 18
DEC: 4 11 24

Out: PinCom Mixer Output
HEX: 06 0E 02
DEC: 6 14 2

As already stated, I'm working on a AD1981. I've edited the AppleHDA binary and changed 8b19d411 to 8119d411 twice.

In AppleHDA.kext/Contents/PlugIns/AppleHDAPlatformDriver.kext/Contents/Info.plist:
  • Layouts/PathMapRef:
  • Deleted SPDIF IN/OUT.
  • Changed CodecID to 299112833.
  • PathMaps
  • Changed nodes 0 and 3 to the settings found above
Left AppleHDA.kext/Contents/PlugIns/AppleHDAController.kext/Contents/Info.plist untouched. I'm using the plist prepared by MadTux.
After replacing the stock AppleHDA.kext, removed AppleAzalia, repaired perms, reloaded kextcache and booted with -f -v, the system doesn't see anything. No audio devices at all.
ioreg -l | grep HDA gave no information. Apparently the kext doesn't load.
Maybe should I adjust some PCI Class Match?

Thanks for the help!

Attached Files



#43
MadTux

MadTux

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 103 posts
  • Gender:Male

I tried to find out my nodes..

Mic: Input Selector PinCom
HEX: 04 0B 18
DEC: 4 11 24

Out: PinCom Mixer Output
HEX: 06 0E 02
DEC: 6 14 2

As already stated, I'm working on a AD1981. I've edited the AppleHDA binary and changed 8b19d411 to 8119d411 twice.

In AppleHDA.kext/Contents/PlugIns/AppleHDAController.kext/Contents/Info.plist:

  • Layouts/PathMapRef:
  • Deleted SPDIF IN/OUT.
  • Changed CodecID to 299112833.
  • PathMaps
  • Changed nodes 0 and 3 to the settings found above
Left AppleHDA.kext/Contents/PlugIns/AppleHDAController.kext/Contents/Info.plist untouched. I'm using the plist prepared by MadTux.
After replacing the stock AppleHDA.kext, removed AppleAzalia, repaired perms, reloaded kextcache and booted with -f -v, the system doesn't see anything. No audio devices at all.
ioreg -l | grep HDA gave no information. Apparently the kext doesn't load.
Maybe should I adjust some PCI Class Match?

Thanks for the help!



AppleHDA.kext/Contents/PlugIns/AppleHDAController.kext/Contents/Info.plist
PUT INSIDE YOUR CODEC ID IN DECIMAL, WITH layout ID to 12.
Remove numbers inside PinConfig line.
It should help.

And Pathmap and Layout are inside Platform driver kext, U stated that U puted inside
AppleHDA.kext/Contents/PlugIns/AppleHDAController.kext/Contents/Info.plist:

#44
Cheops

Cheops

    InsanelyMac Protégé

  • Members
  • PipPip
  • 67 posts
Hi MadTux,

Would it be possible to give me a hand getting the ALC268 working using this method?

I am trying to get my laptop builtin SubWoofer working using this method! basically 2.1 sound.

Thanks

Ade.

#45
MadTux

MadTux

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 103 posts
  • Gender:Male

Hi MadTux,

Would it be possible to give me a hand getting the ALC268 working using this method?

I am trying to get my laptop builtin SubWoofer working using this method! basically 2.1 sound.

Thanks

Ade.


Believe me, I don't know, maybe, bigest problem with your ALC268 is if it is muted in bios, coz when U using this method U are relaying on a default pin config from bios, and for this card and ALC862 is a big problem, U may tray to find a DefaultPinConfig and that is a biggest deal. Only if U have sound with azalia kext, then your card could work with this AppleHDA(if it works, that means that pin configuration inside your bios are right)

#46
dRkLePtO

dRkLePtO

    InsanelyMac Protégé

  • Members
  • Pip
  • 25 posts

AppleHDA.kext/Contents/PlugIns/AppleHDAController.kext/Contents/Info.plist
PUT INSIDE YOUR CODEC ID IN DECIMAL, WITH layout ID to 12.
Remove numbers inside PinConfig line.
It should help.

And Pathmap and Layout are inside Platform driver kext, U stated that U puted inside
AppleHDA.kext/Contents/PlugIns/AppleHDAController.kext/Contents/Info.plist:


Thanks for the quick reply! -_- And sorry for the error.. I meant AppleHDA.kext/Contents/PlugIns/AppleHDAPlatformDriver.kext/Contents/Info.plist.. :)

I filled my CodecID and emptied the ConfigData line.. And now ioreg gives me some results..
But.. Still no sound at all! Maybe I've extracted the wrong nodes?
If you can find some spare time, could anybody check them? This is what I got..

Many thanks again! :P

#47
Cheops

Cheops

    InsanelyMac Protégé

  • Members
  • PipPip
  • 67 posts

Believe me, I don't know, maybe, bigest problem with your ALC268 is if it is muted in bios, coz when U using this method U are relaying on a default pin config from bios, and for this card and ALC862 is a big problem, U may tray to find a DefaultPinConfig and that is a biggest deal. Only if U have sound with azalia kext, then your card could work with this AppleHDA(if it works, that means that pin configuration inside your bios are right)


Thanks for the quick reply MadTux

If I use taruga ALC268 Installer 2 I get sound fine but no sub.

Let me see if I understand what your saying..

1. On booting the laptop sound is defaulted with a sound config and the bass(sub) may NOT be enabled am I right?
2. If the above is correct would it not be possible to change the default config with a custom kext?
3. if it works in linux with bass(sub) as well would the Node assignment show up on dumping the codec?
4. Is it possible to get the DefaultPinConfig using the Microsoft Tools?

Thanks

Ade

#48
MadTux

MadTux

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 103 posts
  • Gender:Male

1. On booting the laptop sound is defaulted with a sound config and the bass(sub) may NOT be enabled am I right?

Yes, the default pinconfig for your sound card in your bios is not correct. That is reason, why your card is eneabled in alsa thru realtek patch, and not automatic thru bios pin config

2. If the above is correct would it not be possible to change the default config with a custom kext?

Yes it would be, but U need a proper sound pinconfig

3. if it works in linux with bass(sub) as well would the Node assignment show up on dumping the codec?

Yes it would, but U still need a proper pin config, so your card would be properly "activated"

4. Is it possible to get the DefaultPinConfig using the Microsoft Tools?

Yes it is, but who has HDAU.exe program?
If some one has, please post it.
And how to get these PinConfig defaults thru linux, I don't know

#49
idoc

idoc

    InsanelyMac Protégé

  • Members
  • PipPip
  • 77 posts
The HDAU.exe program would be really handy to determine the correct NODEIDs for your realtek codec, but it is not necessary for the ConfigData (PinConfigOverrideVerbs in Vista). If you use regedit to dump your registers in Vista and search for the above phrase you will find a series of hex codes which are series of 32-bit Pin Configuration registers for each device, and in Vista can override the BIOS pin setup (and I think, but I'm not sure) AppleHDA.kext uses the same codes just reversed e.g. regedit "0000"=hex:f0,1c,17,01 OSX 01171cf0. If someone with a macbook or macbookpro that uses AppleHDA.kext could run vista and compare the numbers, this could be confirmed.
The handy thing about HDAU.exe (again I surmise having not been able to et my hands on it) is that it should be able to tell us exactly how the NodeIDs are hooked up in a system where the audio definitely works (under vista). I'm trying to get my head around the eeepc ALC269 which has 4 devices - internal and external mic both hooked together with jack autosensing and internal speakers + headphones again which share an amp. Vista of course handles these perfectly, but it's a real pain trying to guess which nodes form which pin complex.
Cheers
Steve

#50
Cheops

Cheops

    InsanelyMac Protégé

  • Members
  • PipPip
  • 67 posts
Hi All,

So I dumped my PinConfigOverrideVerbs but i'm not sure how to translate this data back to the AppleHDA codec plist?

Anyone care to expand

Thanks

Ade.


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}000\PinConfigOverrideVerbs]
"0000"=hex:f0,1c,27,01
"0001"=hex:11,1d,27,01
"0002"=hex:11,1e,27,01
"0003"=hex:41,1f,27,01
"0004"=hex:f0,1c,37,01
"0005"=hex:11,1d,37,01
"0006"=hex:11,1e,37,01
"0007"=hex:41,1f,37,01
"0008"=hex:1f,1c,47,01
"0009"=hex:10,1d,47,01
"0010"=hex:21,1e,47,01
"0011"=hex:02,1f,47,01
"0012"=hex:10,1c,57,01
"0013"=hex:01,1d,57,01
"0014"=hex:13,1e,57,01
"0015"=hex:99,1f,57,01
"0016"=hex:f0,1c,67,01
"0017"=hex:11,1d,67,01
"0018"=hex:11,1e,67,01
"0019"=hex:41,1f,67,01
"0020"=hex:40,1c,87,01
"0021"=hex:98,1d,87,01
"0022"=hex:a1,1e,87,01
"0023"=hex:02,1f,87,01
"0024"=hex:41,1c,97,01
"0025"=hex:09,1d,97,01
"0026"=hex:a3,1e,97,01
"0027"=hex:99,1f,97,01
"0028"=hex:4e,1c,a7,01
"0029"=hex:30,1d,a7,01
"0030"=hex:81,1e,a7,01
"0031"=hex:02,1f,a7,01
"0032"=hex:f0,1c,c7,01
"0033"=hex:11,1d,c7,01
"0034"=hex:11,1e,c7,01
"0035"=hex:41,1f,c7,01
"0036"=hex:2d,1c,d7,01
"0037"=hex:95,1d,d7,01
"0038"=hex:17,1e,d7,01
"0039"=hex:40,1f,d7,01
"0040"=hex:30,1c,e7,01
"0041"=hex:11,1d,e7,01
"0042"=hex:45,1e,e7,01
"0043"=hex:02,1f,e7,01
"NumVerbs"=hex:2c,00,00,00

#51
idoc

idoc

    InsanelyMac Protégé

  • Members
  • PipPip
  • 77 posts
OK. 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>

I'd be interested if this has any effect on your system profiler just paste the above into ConfigData of Info.plist of Applecontroller.

#52
MadTux

MadTux

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 103 posts
  • Gender:Male

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>

I'd be interested if this has any effect on your system profiler just paste the above into ConfigData of Info.plist of Applecontroller.


This could work...

#53
Cheops

Cheops

    InsanelyMac Protégé

  • Members
  • PipPip
  • 67 posts
Ok i'll give it a go, Do I have to have a working AppleHDA 10.5.5 first?

Thanks

Ade.

#54
miglo

miglo

    InsanelyMac Protégé

  • Members
  • Pip
  • 24 posts
Please let us know if you get the ALC269 codec to work! Add the Lenovo S10 community on the list of peeps waiting for it!

#55
comatron

comatron

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 145 posts
interresting stuff ... even if i cant handle it myself. this makes me remember the old good amiga-action-replay times where we knocked down protections with some guys ... :)

#56
MadTux

MadTux

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 103 posts
  • Gender:Male

interresting stuff ... even if i cant handle it myself. this makes me remember the old good amiga-action-replay times where we knocked down protections with some guys ... :)


I believe this will be interesting story to talk about.

Ok i'll give it a go, Do I have to have a working AppleHDA 10.5.5 first?

Thanks

Ade.


U need to have a least patched HDA binary for thing like this, and maybe some code in pathmap

But it should show you all your Devices in Profiler

AND I LOVE WHEN WE HAVE SOME PROGRESS!!

#57
comatron

comatron

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 145 posts
@miglo: the lenovo netbook got that alc269 too? so all the new netbooks have that damn chip. we need to get this working. dell, lenovo, msi, asus and acer use all the 269 in their netbooks. and they run so l33t - except sound. check my other thread here in "sound" for progress ...

LINE OUT is working ...

#58
Dr. Hurt

Dr. Hurt

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 1,456 posts
  • Gender:Male
  • Location:Cairo, Egypt and NYC, USA
  • Interests:Wandering around on the internet!! Politics, Sci/Tech, Medicine.
Mad Tux,
Might I suggest that you make a patcher if you have enough knowledge and time. Also, if you could contact taruga, maybe you two can work together and make the ultimate patcher and finally fix the sound problems of everyone.

#59
MadTux

MadTux

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 103 posts
  • Gender:Male

Mad Tux,
Might I suggest that you make a patcher if you have enough knowledge and time. Also, if you could contact taruga, maybe you two can work together and make the ultimate patcher and finally fix the sound problems of everyone.

First we have a different aproach. second I believe that he has already built something like "ultimat patch" for sound, but it is not public yet. So what is the point of merging? And I don't have time to build a patcher, I have a exams to take. A lot of uninsanelymac life to cach.

#60
idoc

idoc

    InsanelyMac Protégé

  • Members
  • PipPip
  • 77 posts
MadTux,
Still playing around with the ALC269. AppleHDA loads but I get loads of cool errors in my system.log file and not surprisingly no devices pop up.
Could you please show me what you get under system.log (search HDA) or no errors (hopefully) with your working ALC880 kext.
Could I see your output for ioreg -l -w0 | grep HDA.
Thanks
Steve





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

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