Skip to content

Instantly share code, notes, and snippets.

@Flex1911
Last active February 23, 2024 00:03
Show Gist options
  • Save Flex1911/1bce378645fc95a5743671bd5deabfc8 to your computer and use it in GitHub Desktop.
Save Flex1911/1bce378645fc95a5743671bd5deabfc8 to your computer and use it in GitHub Desktop.
ASUS ROG Zephyrus G16 (GU603ZV) DSDT patch for CS35L41 amplifier (not necessary as of kernel 6.7)
DefinitionBlock ("", "SSDT", 1, "CUSTOM", "CSC3551", 0x00000001)
{
External (_SB_.PC00.SPI0, DeviceObj)
External (_SB_.PC00.SPI0.SPK1, DeviceObj)
Scope (_SB.PC00.SPI0.SPK1)
{
Name (_DSD, Package () // _DSD: Device-Specific Data
{
ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
Package ()
{
Package () { "cirrus,dev-index", Package () { Zero, One }},
Package () { "reset-gpios", Package () {
SPK1, One, Zero, Zero,
SPK1, One, Zero, Zero,
} },
Package () { "cirrus,speaker-position", Package () { Zero, One } },
// gpioX-func: 0 not used, 1 VPSK_SWITCH, 2: INTERRUPT, 3: SYNC
Package () { "cirrus,gpio1-func", Package () { One, One } },
Package () { "cirrus,gpio2-func", Package () { 0x02, 0x02 } },
// boost-type: 0 internal, 1 external
Package () { "cirrus,boost-type", Package () { One, One } },
},
})
}
Scope (_SB.PC00.SPI0)
{
Name (_DSD, Package ()
{
ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
Package ()
{
Package () { "cs-gpios", Package () {
Zero, // Native CS
SPK1, Zero, Zero, Zero // GPIO CS
} }
}
})
}
}
@flukejones
Copy link

Hey mate, in case you weren't aware patches have been merged to fix this https://lore.kernel.org/all/20231218151221.388745-3-sbinding@opensource.cirrus.com/

@Flex1911
Copy link
Author

Flex1911 commented Jan 9, 2024

Hey mate, in case you weren't aware patches have been merged to fix this https://lore.kernel.org/all/20231218151221.388745-3-sbinding@opensource.cirrus.com/

Thanks, I've been running 6.7 for the last week and it works fine, gonna put a note

@MathiasDeWeerdt
Copy link

MathiasDeWeerdt commented Feb 23, 2024

hi, I am wondering if a DSDT patch would be possible in my case. (Slow wake from sleep, due to the SD Host Controller GL9755) or if u have any other ideas since we have a similar laptop.

Discussion and more information: https://www.reddit.com/r/archlinux/s/p12xRH1hzO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment