Jump to content

[HOW TO] Patch AppleHDA - Knowledge Base


THe KiNG
 Share

392 posts in this topic

Recommended Posts

Have you figured which files to edit to get either the "mute" or "volume slider" working?

That depends on each codec, but first you should have on inputs/outputs on Layouts MuteGPIO, then looking on CodecGraph where u see a bright blue triangle(that is amplifier) on that NID you should add amp entry with all from it checked

Still as example mute dosen't work yet on AD1988b but at least volume works...maybe i have to add mute entry on other NID, will research more...

Link to comment
Share on other sites

I'm trying to edit AppleHDA.kext from Leopard. My Taruga-Tiger AppleHDA works, but I'd like to try editing the new version of it.

 

I have edited Controller and Driver, I have written the same nodes I had in the previous working AppleHDA, but it doesn't work. When I reboot my computer, AppleHDA loads, but I cannot see any devices in System Preferences nor in System Profiler. Do you know why?

Link to comment
Share on other sites

@THe KiNG: please re-up your last kext because rapidshare report this error :

"ERROR

This file is neither allocated to a Premium Account, or a Collector's Account, and can therefore only be downloaded 10 times.

This limit is reached."

Link to comment
Share on other sites

Finally have working ALC883 address 1 for Notebooks with motherboard L50IIx (HASEE, OLIVETTI, FUJITSU-SIEMENS, etc) also could work for others too

 

The only problem I have is that the channels are not playing right ie.: left chanel seems to have a bit less vol than the right when using HP, just using the balance control for now ( that doesn`t happens with Taruga patcher)

 

The jack sensing works too!

 

Thanks for this great guide!

Link to comment
Share on other sites

Finally have working ALC883 address 1 for Notebooks with motherboard L50IIx (HASEE, OLIVETTI, FUJITSU-SIEMENS, etc) also could work for others too

 

The only problem I have is that the channels are not playing right ie.: left chanel seems to have a bit less vol than the right when using HP, just using the balance control for now ( that doesn`t happens with Taruga patcher)

 

The jack sensing works too!

 

Thanks for this great guide!

When you got something working SHARE!

This is a topic where people share knowledge and what they get working... ;)

Link to comment
Share on other sites

Hey The King, thanks for this, brilliant stuff - i've been struggling to get my ATI3850 HDMI audio working and now i know why!

 

Any chance you can post the Kext for that please to compare with may hacked together equivalent? I also have an ALC1200 on the MB (OSX sees 888) so the combination of the two should be similar in implementation to yours.

 

Cheers!

Link to comment
Share on other sites

I could use a little help I am trying to get my IDT audio working and I feel in order to understand it fully I need the graph and I have followed your guide very closely, however when I go to Terminal to create the graph it tells me that my IDT.txt(codec dump) is not a codec description. I have tried with Ubuntu 8.10 and Mandriva latest edition. I am confused....... is there any other way to get a codec dump that will be recognized?

Thanks, for all your time and effort King.

 

Attached s my dump please take a look and let me know if you see something wrong......

Link to comment
Share on other sites

When you got something working SHARE!

This is a topic where people share knowledge and what they get working... ;)

OH! Sory! I just about to post the whole thing, just cleaning and making it more clear to all, because my approach is working on the AppleHDA itself and I don`t have boot132 yet so can`t post the mod kext here and have somehow figure how to explain what I did. Patience...

 

Thanks Again!

Link to comment
Share on other sites

Working two channel output, with the kext from first post, on a GA-EP43C-DS3 with Alc888 on ICH10.

Thanks a lot, You'd helped me to enable sound on my Hackintosh motherboard, next I'm gonna try to enable 5.1 sound.

Thanks again.

Link to comment
Share on other sites

Hello,

 

Thanks for the great how to;

I spend two days trying to figure out how to get my spdif out working but so far no luck ;) i am noobie when

it comes to Mac;

I am using Asus P5Q3 motherboard ADI2000B which is 1989B and i attach my codec dump, windows registry and codec graph;

i will appreciate if someone take a look is help me this out;

 

Thanks in advance

 

Idris

P5Q3_Windows_Registry.txt

P5Q3.Audio.Linux.Dump.txt

Link to comment
Share on other sites

I am using Asus P5Q3 motherboard ADI2000B which is 1989B and i attach my codec dump, windows registry and codec graph;

i will appreciate if someone take a look is help me this out;

I sad several times...please no requests here, I know its hard to get it working...but patience its a virtute...

Read the guide several time, play, and on the end you will understand..

Especial for your codec, I mess a lot with AD1988b, so far is full of bugs and I'm kind of out of idea what to do more to fix it...

Its hard to work on someone else codec without the hardware...

The solution is you, I gave you the way...

Link to comment
Share on other sites

Woah - tons of excellent stuff here. I'll be digesting it slowly.

 

Sadly, I tried the Mandriva you suggested, and it still dumps my ALC889a as an ALC885. Evidently this fix is slow to come in ALSA.

 

May be ALC889A is ALC885 in reality you can never belive what the manifacturers say they change stuff without notice sometimes

I have a GA-EP45T-DS3 I also get ALC885 from my linux codec dumps instead of ALC889a ...

but look at the bright side ALC885 is already existing in the vanilla kexts ..... so you might edit as litlle posible to getyour sound work

Link to comment
Share on other sites

guys I have two one fully working kext for ALC883 (at least it works on my hasee which I think has an intel 965 something motherboard).

 

The first one: you have to manually switch from speakers to headphones when you plug them in and vice versa

 

The second one: the switch is automatic when you plug in your headphones, but unfortunately when you plug them off you get no sound from the internal speakers, even if in the sound panel it switches back to int speakers, any suggestion?

 

Internal mic works in both, as well as external I guess (I have no external mics to try)

 

they must be installed with the HDAenabler included in the zip file.

 

remember to rename to AppleHDA.text

 

UPDATE: everything works now, including autoswitch between internal speakers and hearphones. Also, I had some problems with the internal mic volume which was low, fixed now

 

thankyou

ALC883.zip

Link to comment
Share on other sites

FOR ALC883 address 1 ONLY! (HASSE, some SIEMENS AMILO, OLIVETTI notebooks based on L50IIX motherboard)

 

1. In my case the linux dumps no matter what distro, always shows the same, and it`s at some point wrong. I noticed that even under linux this soundcard does not work properly.

 

2.You have to follow the guide to get the codec verbs and carefully check it.

 

3.There`s always an error about sound assertion "unsolicited widget" in the logs and sometimes the AppleHDA kext would eventually crash the system in some situations.

 

4. Be carefull to use the correct kext, the one for alc883 posted before in this thread seems not to be the latest HDA.

 

HERE IT IS:

AppleHDA.kext.zip

 

This one has layout id 12 and pathmap id 9 in the plists, and the HdaEnabler.kext is there into the plugins dir.

 

If anyone can get the it working without the assertion bug please let me know.

 

EDIT-----

HINT: If you don`t get sound at all you could delete the codec verb thing in HDAcontroller or delete the verb line/s that are not used.

 

 

Namaste.

Link to comment
Share on other sites

I am getting audio assertion errors is there anything specific I should look for to cure these? it has to do with the DSPFUNCLIB but, I can see the card I just get no sound. I also have map errors. Not asking anyone to write this for me just give me a idea of what I maybe doing wrong.....

 

I also noticed unlike the ALC and other audio cards mine send me on speaker audio out from a pin to a selector to a mixer to a selector and then out. I am on an IDT card and I can not get the graphicviz to work but I done pretty well in-spite of that I think.

Link to comment
Share on other sites

Here comes my codec dump.

Codec: Realtek ALC883
Address: 1
Vendor Id: 0x10ec0883
Subsystem Id: 0x10190000
Revision Id: 0x100002
No Modem Function Group found
Default PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
GPIO: io=2, o=0, i=0, unsolicited=1, wake=0
 IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0
 IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0
Node 0x02 [Audio Output] wcaps 0x11: Stereo
 Converter: stream=0, channel=0
 PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x03 [Audio Output] wcaps 0x11: Stereo
 Converter: stream=0, channel=0
 PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x04 [Audio Output] wcaps 0x11: Stereo
 Converter: stream=0, channel=0
 PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x05 [Audio Output] wcaps 0x11: Stereo
 Converter: stream=0, channel=0
 PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x06 [Audio Output] wcaps 0x211: Stereo Digital
 Converter: stream=0, channel=0
 Digital:
 Digital category: 0x0
 PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0x1e]: 16 20 24 32
formats [0x1]: PCM
Node 0x07 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x08 [Audio Input] wcaps 0x10011b: Stereo Amp-In
 Amp-In caps: ofs=0x08, nsteps=0x1f, stepsize=0x05, mute=1
 Amp-In vals:  [0x18 0x18]
 Converter: stream=0, channel=0
 SDI-Select: 0
 PCM:
rates [0x160]: 44100 48000 96000
bits [0x6]: 16 20
formats [0x1]: PCM
 Connection: 1
 0x23
Node 0x09 [Audio Input] wcaps 0x10011b: Stereo Amp-In
 Amp-In caps: ofs=0x08, nsteps=0x1f, stepsize=0x05, mute=1
 Amp-In vals:  [0x18 0x18]
 Converter: stream=0, channel=0
 SDI-Select: 0
 PCM:
rates [0x160]: 44100 48000 96000
bits [0x6]: 16 20
formats [0x1]: PCM
 Connection: 1
 0x22
Node 0x0a [Audio Input] wcaps 0x100391: Stereo Digital
 Converter: stream=0, channel=0
 SDI-Select: 0
 Digital:
 Digital category: 0x0
 PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0x1e]: 16 20 24 32
formats [0x1]: PCM
 Unsolicited: tag=00, enabled=0
 Connection: 1
 0x1f
Node 0x0b [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
 Amp-In caps: ofs=0x17, nsteps=0x1f, stepsize=0x05, mute=1
 Amp-In vals:  [0x98 0x98] [0x98 0x98] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
 Connection: 10
 0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17
Node 0x0c [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
 Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
 Amp-In vals:  [0x00 0x00] [0x00 0x00]
 Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
 Amp-Out vals:  [0x11 0x11]
 Connection: 2
 0x02 0x0b
Node 0x0d [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
 Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
 Amp-In vals:  [0x00 0x00] [0x00 0x00]
 Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
 Amp-Out vals:  [0x11 0x11]
 Connection: 2
 0x03 0x0b
Node 0x0e [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
 Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
 Amp-In vals:  [0x00 0x00] [0x00 0x00]
 Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
 Amp-Out vals:  [0x00 0x00]
 Connection: 2
 0x04 0x0b
Node 0x0f [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
 Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
 Amp-In vals:  [0x00 0x00] [0x00 0x00]
 Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
 Amp-Out vals:  [0x00 0x00]
 Connection: 2
 0x05 0x0b
Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x12 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x13 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x14 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
 Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
 Amp-In vals:  [0x00 0x00]
 Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
 Amp-Out vals:  [0x00 0x00]
 Pincap 0x083e: IN OUT HP Detect Trigger
 Pin Default 0x0121101f: [Jack] HP Out at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0x1, Sequence = 0xf
 Pin-ctls: 0xc0: OUT HP
 Unsolicited: tag=00, enabled=0
 Connection: 5
 0x0c 0x0d* 0x0e 0x0f 0x26
Node 0x15 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
 Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
 Amp-In vals:  [0x00 0x00]
 Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
 Amp-Out vals:  [0x00 0x00]
 Pincap 0x083e: IN OUT HP Detect Trigger
 Pin Default 0x99130110: [Fixed] Speaker at Int ATAPI
Conn = ATAPI, Color = Unknown
DefAssociation = 0x1, Sequence = 0x0
Misc = NO_PRESENCE
 Pin-ctls: 0x40: OUT
 Unsolicited: tag=00, enabled=0
 Connection: 5
 0x0c 0x0d* 0x0e 0x0f 0x26
Node 0x16 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
 Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
 Amp-In vals:  [0x00 0x00]
 Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
 Amp-Out vals:  [0x80 0x80]
 Pincap 0x083e: IN OUT HP Detect Trigger
 Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
 Pin-ctls: 0x20: IN
 Unsolicited: tag=00, enabled=0
 Connection: 5
 0x0c 0x0d 0x0e* 0x0f 0x26
Node 0x17 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
 Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
 Amp-In vals:  [0x00 0x00]
 Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
 Amp-Out vals:  [0x80 0x80]
 Pincap 0x083e: IN OUT HP Detect Trigger
 Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
 Pin-ctls: 0x20: IN
 Unsolicited: tag=00, enabled=0
 Connection: 5
 0x0c 0x0d 0x0e 0x0f* 0x26
Node 0x18 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
 Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
 Amp-In vals:  [0x02 0x02]
 Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
 Amp-Out vals:  [0x80 0x80]
 Pincap 0x08173e: IN OUT HP Detect Trigger
Vref caps: HIZ 50 GRD 80
 Pin Default 0x01a19830: [Jack] Mic at Ext Rear
Conn = 1/8, Color = Pink
DefAssociation = 0x3, Sequence = 0x0
 Pin-ctls: 0x24: IN VREF_80
 Unsolicited: tag=00, enabled=0
 Connection: 5
 0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x19 [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
 Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
 Amp-In vals:  [0x02 0x02]
 Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
 Amp-Out vals:  [0x80 0x80]
 Pincap 0x08173e: IN OUT HP Detect Trigger
Vref caps: HIZ 50 GRD 80
 Pin Default 0x99a3093f: [Fixed] Mic at Int ATAPI
Conn = ATAPI, Color = Unknown
DefAssociation = 0x3, Sequence = 0xf
Misc = NO_PRESENCE
 Pin-ctls: 0x24: IN VREF_80
 Unsolicited: tag=00, enabled=0
 Connection: 5
 0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1a [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
 Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
 Amp-In vals:  [0x00 0x00]
 Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
 Amp-Out vals:  [0x80 0x80]
 Pincap 0x08173e: IN OUT HP Detect Trigger
Vref caps: HIZ 50 GRD 80
 Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
 Pin-ctls: 0x20: IN VREF_HIZ
 Unsolicited: tag=00, enabled=0
 Connection: 5
 0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1b [Pin Complex] wcaps 0x40018f: Stereo Amp-In Amp-Out
 Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
 Amp-In vals:  [0x00 0x00]
 Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
 Amp-Out vals:  [0x80 0x80]
 Pincap 0x08173e: IN OUT HP Detect Trigger
Vref caps: HIZ 50 GRD 80
 Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
 Pin-ctls: 0x20: IN VREF_HIZ
 Unsolicited: tag=00, enabled=0
 Connection: 5
 0x0c* 0x0d 0x0e 0x0f 0x26
Node 0x1c [Pin Complex] wcaps 0x400001: Stereo
 Pincap 0x0820: IN
 Pin Default 0x593301f0: [N/A] CD at Int ATAPI
Conn = ATAPI, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
 Pin-ctls: 0x00:
Node 0x1d [Pin Complex] wcaps 0x400000: Mono
 Pincap 0x0820: IN
 Pin Default 0x598301f0: [N/A] Line In at Int ATAPI
Conn = ATAPI, Color = Unknown
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
 Pin-ctls: 0x00:
Node 0x1e [Pin Complex] wcaps 0x400300: Mono Digital
 Pincap 0x0810: OUT
 Pin Default 0x01451120: [Jack] SPDIF Out at Ext Rear
Conn = Optical, Color = Black
DefAssociation = 0x2, Sequence = 0x0
Misc = NO_PRESENCE
 Pin-ctls: 0x00:
 Connection: 1
 0x06
Node 0x1f [Pin Complex] wcaps 0x400200: Mono Digital
 Pincap 0x0820: IN
 Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
Conn = 1/8, Color = Black
DefAssociation = 0xf, Sequence = 0x0
Misc = NO_PRESENCE
 Pin-ctls: 0x00:
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
 Processing caps: benign=0, ncoeff=17
Node 0x21 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x22 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
 Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
 Amp-In vals:  [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
 Amp-Out caps: N/A
 Amp-Out vals:  [0x00 0x00]
 Connection: 11
 0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x23 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
 Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
 Amp-In vals:  [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
 Amp-Out caps: N/A
 Amp-Out vals:  [0x00 0x00]
 Connection: 11
 0x18 0x19 0x1a 0x1b 0x1c 0x1d 0x14 0x15 0x16 0x17 0x0b
Node 0x24 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x25 [Audio Output] wcaps 0x11: Stereo
 Converter: stream=0, channel=0
 PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
formats [0x1]: PCM
Node 0x26 [Audio Mixer] wcaps 0x20010f: Stereo Amp-In Amp-Out
 Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
 Amp-In vals:  [0x00 0x00] [0x00 0x00]
 Amp-Out caps: ofs=0x1f, nsteps=0x1f, stepsize=0x05, mute=0
 Amp-Out vals:  [0x00 0x00]
 Connection: 2
 0x25 0x0b

Link to comment
Share on other sites

@ kidalive what part of Please don't ask here for patched kexts or anything else, try to keep this topic just for info! do you not understand?

Also spaming my PM with your request would not make me patch your codec!

Read the guide several times and LEARN how to do it by yourself! :wacko:

Link to comment
Share on other sites

 Share

×
×
  • Create New...