Jump to content

E6540 help getting audio on Clover based 10.12(.2)


Guest Tuurbo
 Share

Recommended Posts

After searching about getting audio working on my Dell Latitude E6540 with Sierra 10.12.2 installed, I'm kinda stuck and hoping that you can help me.
 
My goal is to enable sound without VoodooHDA, so that I have the possibility to also send audio of HDMI. If possible I would like to keep the AppleHDA.kext untouched, and work with Clover patches plus a helper kext. After a lot of research, and trying out different combinations, I'm still without sound. Maybe it's something really simple, but the more I search and find, like cloverHDA, AppleHDA-IDT and all kinds of different patches for Clover, the more I'm not sure where I'm going  :|
 
Currently I have a DSDT with HDEF, patches in Clover and placed the following kexts in /L/E;

  • AppleHDA_ALC292.kext
  • CodecCommander.kext
  • DisableTurboBoostBattery.kext
  • EAPDFix.kext

these files are from Jake Lo's bootpack (and updated the AppleHDA_ALC292.kext)
 
 
DSDT
My DSDT has the following configuration;

Device (HDEF)
        {
            Name (_ADR, 0x001B0000)
            OperationRegion (HDAR, PCI_Config, 0x4C, 0x10)
            Field (HDAR, WordAcc, NoLock, Preserve)
            {
                DCKA,   1, 
                        Offset (0x01), 
                DCKM,   1, 
                    ,   6, 
                DCKS,   1, 
                        Offset (0x08), 
                        Offset (0x09), 
                PMEE,   1, 
                    ,   6, 
                PMES,   1
            }

            Method (_PRW, 0, NotSerialized)
            {
                Return (GPRW (0x09, 0x04))
            }

            Method (_DSM, 4, Serialized)
            {
                If (LEqual (Arg2, Zero))
                {
                    Return (Buffer (One)
                    {
                        0x03
                    })
                }

                Store (Package (0x12)
                    {
                        "codec-id", 
                        Buffer (0x04)
                        {
                            0x92, 0x02, 0xEC, 0x10
                        }, 

                        "layout-id", 
                        Buffer (0x04)
                        {
                            0x01, 0x00, 0x00, 0x00
                        }, 

                        "AAPL,clock-id", 
                        Buffer (One)
                        {
                            0x01
                        }, 

                        "built-in", 
                        Buffer (One)
                        {
                            0x00
                        }, 

                        "AAPL,current-available", 
                        0x0834, 
                        "AAPL,current-extra", 
                        0x0898, 
                        "AAPL,current-extra-in-sleep", 
                        0x0640, 
                        "AAPL,device-internal", 
                        0x02, 
                        "AAPL,max-port-current-in-sleep", 
                        0x0834
                    }, Local0)
                DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                Return (Local0)
            }
        }

(credits for the DSDT to Hervé, source of DSDT here)
 
 
Clover
Based of the bootpack from Jake Lo, combined with the information I found online, I think these are the correct patches for 10.12.2.
 
  Find [HEX] Replace [HEX] AppleHDA ALC 292 #1 (Patching 1984 with 10ec0292 codec) 8419D411 9202EC10 AppleHDA ALC 292 #2 (Zeroing 884 codec) 8408EC10 00000000 AppleHDA ALC 292 #3 (Zeroing 885 codec) 8508EC10 00000000 AppleHDA ALC 292 #4 (Zeroing 1983 codec) 8A19D411 00000000
 
which generate the follow code for config.plist;

			<dict>
				<key>Comment</key>
				<string>AppleHDA ALC 292 #1 (Patching 1984 with 10ec0292 codec)</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				hBnUEQ==
				</data>
				<key>Name</key>
				<string>AppleHDA</string>
				<key>Replace</key>
				<data>
				kgLsEA==
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>AppleHDA ALC 292 #2 (Zeroing 884 codec)</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				hAjsEA==
				</data>
				<key>Name</key>
				<string>AppleHDA</string>
				<key>Replace</key>
				<data>
				AAAAAA==
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>AppleHDA ALC 292 #3 (Zeroing 885 codec)</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				hQjsEA==
				</data>
				<key>Name</key>
				<string>AppleHDA</string>
				<key>Replace</key>
				<data>
				AAAAAA==
				</data>
			</dict>
			<dict>
				<key>Comment</key>
				<string>AppleHDA ALC 292 #4 (Zeroing 1983 codec)</string>
				<key>Disabled</key>
				<false/>
				<key>Find</key>
				<data>
				ihnUEQ==
				</data>
				<key>Name</key>
				<string>AppleHDA</string>
				<key>Replace</key>
				<data>
				AAAAAA==
				</data>
			</dict>

Unfortunately macOS doesn't recognize the audio;
post-5854-0-00942600-1483182774_thumb.pngpost-5854-0-40995900-1483182802_thumb.png

Link to comment
Share on other sites

  • Administrators

i believe audio device 0x80860c0c is an unsupported HDMI option in OS X. even though you see voodoo hda attaches to it. it will not work. you can modify voodoo hda plist to only attach to 80868C20 by changing "IOPCIClassMatch" to "IOPCIPrimaryMatch" and put the PCI ID of your audio card in string which is 0x80868C20. 

Link to comment
Share on other sites

  • Moderators

Remove this one, not needed in Sierra. Also make sure to repair permission and rebuild cache. If HDMI doesn't work, then add FakePCIID & FakePCIID_Intel_HDMI_Audio.kext

           <dict>
                <key>Comment</key>
                <string>AppleHDA ALC 292 #4 (Zeroing 1983 codec)</string>
                <key>Disabled</key>
                <false/>
                <key>Find</key>
                <data>
                ihnUEQ==
                </data>
                <key>Name</key>
                <string>AppleHDA</string>
                <key>Replace</key>
                <data>
                AAAAAA==
                </data>
            </dict>

I see you have HDEF patched to layout-id =1 which is correct, but make sure you also have IRQ fix patched too if you patched your own DSDT.

Link to comment
Share on other sites

I'm still having trouble to have audio working without the use of VoodooHDA, but I've made some progress!
 
post-5854-0-77637800-1487532818_thumb.png
The HDMI audio is operational, but still no integrated sound.
 
Just to be sure, I've attached a dump from the audio from Linux made a verbs.txt file of it.
I've expected the ALC292 in the file, but maybe the ALC3226 codec is the same somehow?
 
I've try'd the files from E6440_i5-4300M_HD4600_Sierra-Pack.zip

  • AppleHDA_ALC292.kext
  • AppleHDA.kext (installed to /S/L/E with Kext Utility)

I'm doing something wrong, but can't figure out how to get audio working with AppleHDA (in stead of VoodooHDA). Hoping that somebody help me or point me in the right direction?

card1-codec#0.txt

verbs.txt

Link to comment
Share on other sites

Guest Tuurbo

Update; I'm slowly getting there  :) I now have a working combination of AppleHDA (HDMI) with VoodooHDA (speaker/Line-out) as Bronxteck suggested.
 

i believe audio device 0x80860c0c is an unsupported HDMI option in OS X. even though you see voodoo hda attaches to it. it will not work. you can modify voodoo hda plist to only attach to 80868C20 by changing "IOPCIClassMatch" to "IOPCIPrimaryMatch" and put the PCI ID of your audio card in string which is 0x80868C20. 

 
It took me a while to figure out that I should change the string to 0x8C208086 (0xDeviceIDVendorID). Now I have the VoodooHDA only attached to the ALC292, and with the help of FakePCIID_Intel_HDMI_Audio.kext working audio over HDMI.

 

AppleHDA

I'm still hoping to find a solution without the use of VoodooHDA. I'm still struggling I can't figure out why it won't work. I have the three patches in clover and placed the AppleHDA_ALC292.kext in /S/L/E. To be sure I've also try'd disabling the patches in Clover and installed the patched AppleHDA (with the Kext Utility).

 

The only thing that keeps on bothering me, is that in the bios and in Linux I don't see a ALC292 sound card, but a ALC3226. If I compare my codec_dump with an other one I found on the forum here, there are some changes, like for example the subsystem id.

 

post-5854-0-07223200-1491752880_thumb.png

 

Could it be that I need to make some changes to the AppleHDA_ALC292.kext in my case?

 

Hissing/static noise on headphone

The next challenge is to get the headphone (line-out) working without static noise (hissing). Maybe it wil go magically away when I got a working solution without voodooHDA... I've try'd editing the plist of VoodooHDA with the iGain value from 90 to 0, but no luck.

 

Hoping that somebody could point me in the right direction again!

 

 

Link to comment
Share on other sites

Guest Tuurbo

@Bronxteck Yeah, try'd changing the values, but it make's no difference no matter what I choose (high, low and absolute zero). 

 

@Hervé Thanks for the info! So I can rest assure that it's a ALC292.

Link to comment
Share on other sites

 Share

×
×
  • Create New...