Jump to content

Non Ascii Value(s) error


ashindnile
 Share

11 posts in this topic

Recommended Posts

Hey guys my card is the Mobility Radeon HD 4530,

 

I saw a guide with this dsdt code and I wanted to know if any of you can scan through this code and tell me what's wrong with it, I always get compile errors with messages like "NonAscii value.. maybe binary" or something along those lines.

 

Here is the code:

Device (GFX0)		
                {
                    Name (_ADR, Zero)
                    Name (_SUN, One)
                    Method (_DSM, 4, NotSerialized)
                    {
                        Store (Package (0x0C)
                            {
                                "@0,name", 
                                Buffer (0x0D)
                                {
                                    "ATY,Shrike”
                                }, 

                                "@1,name", 
                                Buffer (0x0D)
                                {
                                    "ATY,Shrike”
                                }, 

                                "@2,name", 
                                Buffer (0x0D)
                                {
                                    "ATY,Shrike”
                                },
                                "model", 
                                Buffer (0x13)
                                {
                                    "ATI Radeon HD 4530”
                                }, 

                                "hda-gfx", 
                                Buffer (0x0A)
                                {
                                    "onboard-1"
                                }
                            }, Local0)
                        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                        Return (Local0)
                    }
                }

                Device (HDAU)
                {
                    Name (_ADR, One)
                    Method (_DSM, 4, NotSerialized)
                    {
                        Store (Package (0x02)
                            {
                                "hda-gfx", 
                                Buffer (0x0A)
                                {
                                    "onboard-1"
                                }
                            }, Local0)
                        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                        Return (Local0)
                    }
                }

I largely appreciate your help! Please correct this(or me) if you can! :D :D

 

Link to comment
Share on other sites

  • 2 weeks later...

IASL compiler doesn't like invisible characters other then SPACE and LINE_FEED.

I may propose you to check your dsl file with a text editor that shows you any invisible symbols.

Link to comment
Share on other sites

link

 

Thank you :)

The error is _PLD must be package of Buffers.

This is wrong

                        Name (_PLD, Package (0x10)  // _PLD: Physical Location of Device
                        {
                            Zero, 
                            Zero, 
                            Zero, 
                            0x81, 
                            Zero, 
                            Zero, 
                            Zero, 
                            Zero, 
                            Zero, 
                            Zero, 
                            Zero, 
                            Zero, 
                            Zero, 
                            Zero, 
                            Zero, 
                            Zero
                        })

This is good

                        Name (_PLD, Package (One)  // _PLD: Physical Location of Device
                        {
                          Buffer () {
                            Zero, 
                            Zero, 
                            Zero, 
                            0x81, 
                            Zero, 
                            Zero, 
                            Zero, 
                            Zero, 
                            Zero, 
                            Zero, 
                            Zero, 
                            Zero, 
                            Zero, 
                            Zero, 
                            Zero, 
                            Zero
                            }
                        })

Correct, please, these errors and try again

 

Compilation complete. 64 Errors, 31 Warnings, 78 Remarks, 38 Optimizations

Link to comment
Share on other sites

 Share

×
×
  • Create New...