Jump to content
14 posts in this topic

Recommended Posts

Hello. I tried everything.

I patched my kext using this data

 

Verbs from Linux Codec Dump File: codec_dump.txt
 
Codec: Realtek ALC270   Address: 0   DevID: 283902576 (0x10ec0270)
 
   Jack   Color  Description                  Node     PinDefault             Original Verbs
--------------------------------------------------------------------------------------------------------
    1/8   Black  Speaker at Ext Rear         18 0x12   0x411111f0   01271cf0 01271d11 01271e11 01271f41
 Speaker at Int N/A    0x14 0x14                        2417426704 01471c10 01471d01     01471e17 01471f90  
    1/8   Black  Speaker at Ext Rear         23 0x17   0x411111f0   01771cf0 01771d11 01771e11 01771f41
    1/8   Black  Speaker at Ext Rear         24 0x18   0x411111f0   01871cf0 01871d11 01871e11 01871f41
 Mic at Int N/A    0x19 0x19                        2426865968 01971c30 01971d09     01971ea7 01971f90  
 HP Out at Ext Left    0x1a 0x1a                        52499488 01a71c20 01a71d14     01a71e21 01a71f03  
    1/8   Black  Speaker at Ext Rear         27 0x1b   0x411111f0   01b71cf0 01b71d11 01b71e11 01b71f41
Digital  Purple  Line Out at Ext N/A         29 0x1d   0x4006852d   01d71c2d 01d71d85 01d71e06 01d71f40
    1/8   Black  Speaker at Ext Rear         30 0x1e   0x411111f0   01e71cf0 01e71d11 01e71e11 01e71f41
    1/8   Black  Speaker at Ext Rear         33 0x21   0x411111f0   02171cf0 02171d11 02171e11 02171f41
--------------------------------------------------------------------------------------------------------
 
 
   Jack   Color  Description                  Node     PinDefault             Modified Verbs
--------------------------------------------------------------------------------------------------------
 Speaker at Int N/A    0x14 0x14                        2417426704 01471c10 01471d00     01471e17 01471f90  
 Mic at Int N/A    0x19 0x19                        2426865968 01971c30 01971d00     01971ea7 01971f90  
 HP Out at Ext Left    0x1a 0x1a                        52499488 01a71c20 01a71d10     01a71e21 01a71f00  
Digital  Purple  Line Out at Ext N/A         29 0x1d   0x4006852d   01d71c40 01d71d80 01d71e06 01d71f40

 

--------------------------------------------------------------------------------------------------------
 
so I suppose these are the verbs to add:
 
01471C10 01471D00 01471E17 01471F90 01971C30 01971D00 01971EA7 01971F90 01A71C20 01A71D10 01A71E21 01A71F00 01D71C40 01D71D80 01D71E06 01D71F40
 
the nodes are as in this file AppleHDA-269.25-ALC270_v2.zip
 
9 - 34 - 18 (described as "speaker at ext rear Stereo IN")
 
20 - 13 - 3 (described as "speaker at int N/A Stereo OUT EAPD detect")
 
33 - 12 - 2 (described as "speaker at ext rear Stereo OUT HP detect")
 
So I put those verbs in the info.plist of AppleHDAHardwareConfigDriver.kext.
The nodes are already correct in the linked kext ( I think).
I added the DSM method in HDEF of DSDT (layout 3)
installed the kext, restarted. Nothing happens.
Sometimes I don't know for what magic as I tried several times with verbs and stuff dpcimanager found these devices (look picture) but still no audio.
The windows driver tells I have ALC 277, linux found ALC270.
Can anyone help? Everything else is working now apart wifi. Thanks
 
 
post-76108-0-98707200-1424796906_thumb.png

codec_dump_dec.txt

Have you completed the binary patching??

 

what do you mean? 

I followed this guide: 

http://www.insanelymac.com/forum/topic/295001-guide-to-patch-applehda-for-your-codec/

 

 

edit.

 

you mean patch the binary? since that didn't work in yosemite I modified this one:

 

AppleHDA-269.25-ALC270_v2.zip

 

Which to my understanding is already binary patched.

Manualy try to load the AppleHDA.kext and check in system.log for errors while loading the kext.

 

there are no errors, kext is loaded

 

110    0 0xffffff7f82050000 0xab000    0xab000    com.apple.driver.AppleHDA (269.25) <109 85 71 70 69 68 6 5 4 3 1>

If the kext is loading without any problem, then issue might be with your config data/layout injection in DSDT. Check it once again. Also better you post this query on the thread which you had followed for patching.

I am using the DSDT method. The layout is correct there. I really don't know what else could be.

Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x0c)
                    {                        
                        "built-in", 
                        Buffer (One)
                        {
                            0x00
                        }, 
                        "layout-id", 
                        Buffer (0x04)
                        {
                            0x03, 0x00, 0x00, 0x00
                        }, 
                       "PinConfigurations", 
                       Buffer (0x00)
                       {
                           0x00
                       }
                    }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }

I am using the DSDT method. The layout is correct there. I really don't know what else could be.

Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x0c)
                    {                        
                        "built-in", 
                        Buffer (One)
                        {
                            0x00
                        }, 
                        "layout-id", 
                        Buffer (0x04)
                        {
                            0x03, 0x00, 0x00, 0x00
                        }, 
                       "PinConfigurations", 
                       Buffer (0x00)
                       {
                           0x00
                       }
                    }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }

 

The patch is not valid. The _DSM is returning a package of size 12, with only 6 entries. It will be ignored by OS X.

Hello, you mean the DSDT patch? That came with the kext (in the link). So how should I modify it?

Package size is clearly 6, not 12.

 

Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (6)
                    {                        
                        "built-in", 
                        Buffer (One)
                        {
                            0x00
                        }, 
                        "layout-id", 
                        Buffer (0x04)
                        {
                            0x03, 0x00, 0x00, 0x00
                        }, 
                       "PinConfigurations", 
                       Buffer (0x00)
                       {
                           0x00
                       }
                    }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }

I used Store (Package (0x06). Still no audio but id 3 is recognized in system report, (before was 0).

Did you verify your patched AppleHDA.kext uses layout-id=3. You have to look inside the Info.plist for AppleHDAHardwareConfigDriver.kext (in PlugIns). Also, did you patch DSDT with "IRQ Fix"?

 

Note: 6 and 0x06 are the same thing. Both the number six.

×
×
  • Create New...