Subscribe to our RSS news feed
AAPL 199.94 (-1.25)

AppleHDA: ALC880 / ICH7 working, Guide to adapt, Line-Out, SPDIF-Out, Line-In, Mic
*
  • Group: Members
  • Posts: 15
  • Joined: 22-November 06
  • Member No.: 65,533
Hi guys,

after being desperate on trying every hint and hack, every kext and following the guide of Taruga. I still had no luck. The AppleHDAControler seemed to load but not the AppleHDADriver.
So I decided to do a little 2 weeks research by myself, and eventually it works!

I can't upload, so the kext can be found here:
http://www.mediafire.com/?3fgnmmiv0yb

Disclaimer:
• This kext is based on Apples current Audio Update for 10.4.10 (kext version 1.3.3). It may work on older systems or not.
• Another thing: it seems to be very difficult to write a generic driver for the audio codecs, because the pathmaps seem to differ depending on the number of jacks you have on your board.
• One last thing: you should mute your speakers while the initialization (at booting the OSX) there are some cracking noise. Until now, I couldn't find out how to suppress this.

First, thanks to Taruga who has made a very good guide for AppleHDA hacking.

Things to do:
• If someone could help me, I would pack this one into an Installer package. Maybe skippyretard will add a package to his thread...
• not all jacks the codec supports are in the pathmap right now, because I only have 4 rear jacks to test
• 5.1 sound? I can't imagine how one could realize 5.1 sound with only 3 analogue jacks and one spdif, but this maybe possible somehow :-)

What is supported:
• commell LV-677 utilizing an intel 945GM/ICH7 with 3 Jacks (Line-in, Mic, Line-out) and SPDIF-out (optical)
• As the codec is documented I guess at least all boards with ICH7 and Realtek ALC880 Codec should work.

What's working by now:
• line-out with full volume and balance control
• spdif out
• line-in with gain control
• mic with gain control and ambient noise reduction. Mic is pre-amp'ed

What do you need:
• ALCInject
• this AppleHDA.kext
• luck :-)

The easiest way to install this:
• Use one of the alc88x packages to install ALCInject (e.g. http://forum.insanelymac.com/index.php?sho...&hl=alc883)
• Change the string DAAAAA== to NAAAAA==
• remove AppleAzaliaAudio.kext and AppleHDA.kext from your /System/Library/Extensions folder
• copy the AppleHDA.kext to your /System/Library/Extensions folder
• repair permissions, restart and cross fingers :-)


Documentation used:
• a self created codec dump of my sound codec using knoppix (cat /proc/asound/codec#0 >codec.dump)
• Taruga's HDA guide http://forum.insanelymac.com/index.php?sho...9&hl=alc883
• Documentation (Datasheet) from Realtek: http://www.realtek.com.tw/downloads/downlo...;Downloads=true

For the ones who want to adapt this kext to other codecs, here is what I've done:
• AppleHDA binary:
As described in Toruga's guide you have to patch the binary to match your codec. In my case exchanging the 2 occurrences of the original ALC885 codec (0x10EC0885) didn't work. So I tried something else. I changed the 3 occurrences of the sigmatel codec (0x83847680, search for 80768483) to the one of the realtek acl880 (0x10EC0880, insert 8008EC10).
• AppleHDAControler plist:
The original AppleHDAController plist already contained an entry for ICH7 but the codec ID was a Sigmatel (0x83847680, decimal: -2088470912 or 2206496384). So I changed this to the realtek alc880 (0x10EC0880, decimal: 283904128).
• ALCInject:
I tried all LayoutID's and injected them with ALCInject. I found only one that at least loaded the AppleHDADriver and gave some cracking noise to the speakers. Now I knew, I'm almost there :-). It was LayoutID 52 (0x34)
• AppleHDA plist:
I copied the Pathmap of LayoutID 52 (pathmap 18) to a new pathmap 19 and pointed the Layout 52 to it. Then I did some trial and error and used Taruga's Guide and my linux codec#0 dump to add more and more parts of the codec.

Greetings MacDanger
PM Profile Card
Go to the top of the page
+ Quote Post

Posts in this topic
- macdanger   AppleHDA: ALC880 / ICH7 working, Guide to adapt   Aug 27 2007, 11:21 AM
- - SamuelDB   Hi, does it work with alc882m (from asus n4l-vm dh...   Aug 27 2007, 12:05 PM
- - macdanger   nope, ALC880 only, but it maybe possible to adapt ...   Aug 27 2007, 12:37 PM
|- - SamuelDB   Yes I tried the Taruga's method with a codec d...   Aug 28 2007, 12:09 PM
- - maxoid   Macdanger, Well done. It's great to know that...   Aug 27 2007, 06:58 PM
- - Loccy   I am going to try this on my ALC262, and see if I ...   Aug 28 2007, 10:24 AM
|- - maxoid   Loccy, Change the string DAAAAA== to NAAAAA== me...   Aug 28 2007, 11:07 AM
- - krazubu   Hi Macdanger, It's nice to see a way to extend...   Aug 28 2007, 01:04 PM
- - Loccy   No joy on the 262 I'm afraid. Kexts wouldn...   Aug 28 2007, 01:36 PM
- - macdanger   Yes, this extension really only apply to alc880 wi...   Aug 29 2007, 12:35 PM
- - Loccy   QUOTE (macdanger)When i have the time, i will try ...   Aug 29 2007, 12:48 PM
- - Taruga   Hey Mac Danger, that is very good news !!...   Aug 29 2007, 10:21 PM
|- - emx22333   QUOTE (Taruga @ Aug 30 2007, 12:21 AM) He...   Aug 30 2007, 08:37 AM
|- - jjduro   QUOTE (emx22333 @ Aug 30 2007, 09:37 AM) ...   Aug 30 2007, 09:10 AM
||- - emx22333   QUOTE (jjduro @ Aug 30 2007, 11:10 AM) He...   Aug 30 2007, 09:55 AM
||- - jjduro   QUOTE (emx22333 @ Aug 30 2007, 10:55 AM) ...   Aug 30 2007, 10:42 AM
|- - Taruga   QUOTE (emx22333 @ Aug 30 2007, 09:37 AM) ...   Aug 31 2007, 06:02 AM
- - boyang.yue   very thanks for your working! could you try...   Aug 30 2007, 03:51 PM
- - King_Tone   QUOTE (Taruga @ Aug 29 2007, 08:21 PM) AL...   Aug 31 2007, 03:47 AM
- - 386dx   Thanks everybody. We just need it as package insta...   Aug 31 2007, 09:09 AM
- - boyang.yue   still waiting for ALC883 on ich7,|||   Aug 31 2007, 04:11 PM
- - amalf   I am on Intel915GAVL mobo with Realtek HD Audio 88...   Sep 1 2007, 03:20 PM
- - hedge605   My first post here, want to thank everyone for the...   Sep 2 2007, 07:02 AM
- - hedge605   For some reason, after rebooting my computer this ...   Sep 2 2007, 05:05 PM
- - snackole   Hey hedge, glad to hear it works. Could you upload...   Sep 2 2007, 05:51 PM
- - sn8k   well ... 1st of all, macD, great work ... but ... ...   Sep 8 2007, 10:03 PM
- - MadTux   macdanger where did you find LayoutID for ALCInjec...   Sep 13 2007, 05:26 PM
- - MadTux   Ok. I found otool inside tarugas patch.   Sep 13 2007, 07:10 PM
- - macdanger   @MadTux:I did trial and error, but this only gave ...   Sep 17 2007, 08:36 PM
- - sn8k   This error comes from kexts that doesn't have ...   Sep 19 2007, 09:08 PM
- - justinship   Hey Guys, I have a Toshiba P-205 laptop. I have ...   Nov 2 2007, 05:29 PM
- - braveskunk   so, anybody got it working with ad1986A maybe? lat...   Nov 3 2007, 02:32 PM
- - smokingmac   did someone save the attachment somewhere, I would...   Dec 28 2007, 11:06 PM
- - smokingmac   5.1 sound? I can't imagine how one could reali...   Dec 29 2007, 09:09 AM
- - macopolo   macdanger could you repost the kext, the link see...   Jan 2 2008, 05:44 AM
- - drumthrasher109   The link doesn't work...I really need this.   Jan 14 2008, 10:42 PM
- - Amitai Bar   Hi Can someone re-post the kext? I coudn't fin...   Feb 12 2008, 08:55 PM
- - alh   Bump.   Feb 18 2008, 03:06 AM
- - mulletman13   Bumping this to the top... I'm attempting to g...   Jun 22 2008, 02:23 AM
- - omix86   Hi I saw in previous posts ASUS P5GD1-VM was work...   Jul 20 2008, 09:06 AM
- - marcelokremer   I have installed it and now my audio is totally go...   Jul 23 2008, 11:12 PM
- - asae   Dear o Masters..would you be so kind to adapt this...   Aug 2 2008, 02:18 PM
- - RaMDaY   Link for the driver is down. Any other place to to...   Aug 9 2008, 02:27 PM
- - Necrosan   Link is dead. Anyone got a working link to this PO...   Aug 10 2008, 08:40 PM
- - osx007   please can someone reup the link   Nov 24 2008, 03:24 AM
- - mindsuk   Link for the driver is down. Please renew the link...   Feb 9 2009, 10:02 PM
- - sebus   QUOTE (mindsuk @ Feb 9 2009, 10:02 PM) Li...   Apr 10 2009, 02:56 PM

Reply to this topic Start new topic

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 21st November 2009 - 12:34 PM