Jump to content

Audio Problem on Asus k501ux


33 posts in this topic

Recommended Posts

I've installed 10.11.6 el capitan on my laptop Asus501ux
everything works fine, except for audio
If I listen to a song on youtube at the beginning the sound is great, but after about two minutes becomes crackly, more and more '
while on the audio safari is jerky one second you hear a second not, but this does not always

 

Audio device [0403]: Intel Corporation Sunrise Point-LP HD Audio [8086:9d70]
I'm using applealc.kext and id 28

DSDT.aml.zip

config.plist.zip

EFI.zip

Link to comment
Share on other sites

Use AppleHdaPatcher and try see ur codec

Use Show Jarvis

MaLd0n 2017-03-21 às 10.08.37.png

 

u apply SBUS into HDAS/HDEF

SKYLAKE and KABYLAKE, the patches is others

Device (HDAS)
        {
            Name (_ADR, 0x001F0003)  // _ADR: Address
            OperationRegion (HDAR, PCI_Config, Zero, 0x0100)
            Field (HDAR, WordAcc, NoLock, Preserve)
            {
                VDID,   32, 
                Offset (0x48), 
                    ,   6, 
                MBCG,   1, 
                Offset (0x54), 
                Offset (0x55), 
                PMEE,   1, 
                    ,   6, 
                PMES,   1
            }

            Name (_S0W, 0x03)  // _S0W: S0 Device Wake State
            Method (_DSW, 3, NotSerialized)  // _DSW: Device Sleep Wake
            {
                Store (Arg0, PMEE)
            }

            Method (GPEH, 0, NotSerialized)
            {
                If (LEqual (VDID, 0xFFFFFFFF))
                {
                    
                }

                If (LAnd (PMEE, PMES))
                {
                    ADBG ("HDAS GPEH")
                    Store (One, PMES)
                    Notify (HDAS, 0x02)
                }
                Return (Zero)
            }

            Name (NBUF, ResourceTemplate ()
            {
                QWordMemory (ResourceConsumer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadOnly,
                    0x0000000000000001, // Granularity
                    0x0000000000000000, // Range Minimum
                    0x0000000000000000, // Range Maximum
                    0x0000000000000000, // Translation Offset
                    0x0000000000000000, // Length
                    ,, _Y1A, AddressRangeACPI, TypeStatic)
            })
            Method (AUWA, 0, Serialized)
            {
                If (LEqual (PCHS, One))
                {
                    If (LEqual (^^LPCB.CRID, Zero))
                    {
                        Return (One)
                    }
                }
                Else
                {
                    If (LEqual (^^LPCB.CRID, Zero))
                    {
                        Return (One)
                    }

                    If (LEqual (^^LPCB.CRID, One))
                    {
                        Return (One)
                    }

                    If (LEqual (^^LPCB.CRID, 0x09))
                    {
                        Return (One)
                    }
                }

                Return (Zero)
            }

            Method (_INI, 0, NotSerialized)  // _INI: Initialize
            {
                ADBG ("HDAS _INI")
                CreateQWordField (NBUF, \_SB.PCI0.HDAS._Y1A._MIN, NBAS)  // _MIN: Minimum Base Address
                CreateQWordField (NBUF, \_SB.PCI0.HDAS._Y1A._MAX, NMAS)  // _MAX: Maximum Base Address
                CreateQWordField (NBUF, \_SB.PCI0.HDAS._Y1A._LEN, NLEN)  // _LEN: Length
                Store (NHLA, NBAS)
                Add (NHLA, Subtract (NHLL, One), NMAS)
                Store (NHLL, NLEN)
                If (LEqual (AUWA (), One))
                {
                    Store (Zero, MBCG)
                }
                Return (Zero)
            }

            Method (XDSM, 4, Serialized)
            {
                Name (_T_0, Zero)  // _T_x: Emitted by ASL Compiler
                ADBG ("HDAS XDSM")
                If (PCIC (Arg0))
                {
                    Return (PCID (Arg0, Arg1, Arg2, Arg3))
                }

                If (LEqual (Arg0, ToUUID ("a69f886e-6ceb-4594-a41f-7b5dce24c553")))
                {
                    While (One)
                    {
                        Store (Arg2, _T_0)
                        If (LEqual (_T_0, Zero))
                        {
                            Return (Buffer (One)
                            {
                                 0x0F                                           
                            })
                        }
                        ElseIf (LEqual (_T_0, One))
                        {
                            ADBG ("XDSM Fun 1 NHLT")
                            Return (NBUF)
                        }
                        ElseIf (LEqual (_T_0, 0x02))
                        {
                            ADBG ("XDSM Fun 2 FMSK")
                            Return (ADFM)
                        }
                        ElseIf (LEqual (_T_0, 0x03))
                        {
                            ADBG ("XDSM Fun 3 PPMS")
                            Return (Zero)
                        }
                        Else
                        {
                            ADBG ("XDSM Fun NOK")
                            Return (Buffer (One)
                            {
                                 0x00                                           
                            })
                        }

                        Break
                    }
                }

                ADBG ("XDSM UUID NOK")
            }

            Device (BUS0)
            {
                Name (_CID, "smbus")  // _CID: Compatible ID
                Name (_ADR, Zero)  // _ADR: Address
                Device (DVL0)
                {
                    Name (_ADR, 0x57)  // _ADR: Address
                    Name (_CID, "diagsvault")  // _CID: Compatible ID
                    Method (_DSM, 4, NotSerialized)  // _DSM: Device-Specific Method
                    {
                        If (LEqual (Arg2, Zero))
                        {
                            Return (Buffer (One)
                            {
                                 0x03                                           
                            })
                        }

                        Return (Package (0x02)
                        {
                            "address", 
                            0x57
                        })
                    }
                }
            }

why u use xdsm patches? is a very suck patch, use it if u use hacknvme, u can rename only _DSM with cause K.P, not entire DSDT, in many cases smart HDD is not detect if u use this patch, take a test

  • Like 1
Link to comment
Share on other sites

sound, u need changed id, found the best for u

battery u need apply ur specific patch ;)

what ur codec audio?

try it for battery

attachicon.gifDSDT.02.zip

no battery no audio

Audio now working :-)

battery no

If possible, I can take advantage of your kindness?

the brightness keys do not work, the volume keys work :) :P

marco’s MacBook Pro.zip

Link to comment
Share on other sites

attachicon.gifArquivo Comprimido.zip

I need new ioreg after reboot, extract after reboot

 

update kexts too

ok

Audio now working :-)

battery no

 

 

attachicon.gifArquivo Comprimido.zip

I need new ioreg after reboot, extract after reboot

 

update kexts too

 

 
 

brightness keys work, thank you very much

the battery still does not work

Battery patch one of 2 asus

marco’s MacBook Pro2.zip

Link to comment
Share on other sites

 Share

×
×
  • Create New...