Add GU605C speaker fix

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-05-28 17:38:06 +01:00
parent cafcdbe7cc
commit 457e1b0bf7
5 changed files with 96 additions and 8 deletions

View File

@@ -0,0 +1,12 @@
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index cd0d7ba7320e..2a8791d30a5f 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -10982,6 +10982,7 @@ static const struct hda_quirk alc269_fixup_tbl[] = {
SND_PCI_QUIRK(0x1043, 0x1c43, "ASUS UX8406MA", ALC245_FIXUP_CS35L41_SPI_2),
SND_PCI_QUIRK(0x1043, 0x1c62, "ASUS GU603", ALC289_FIXUP_ASUS_GA401),
SND_PCI_QUIRK(0x1043, 0x1c63, "ASUS GU605M", ALC285_FIXUP_ASUS_GU605_SPI_SPEAKER2_TO_DAC1),
+ SND_PCI_QUIRK(0x1043, 0x1034, "ASUS GU605C", ALC285_FIXUP_ASUS_GU605_SPI_SPEAKER2_TO_DAC1),
SND_PCI_QUIRK(0x1043, 0x1c80, "ASUS VivoBook TP401", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE),
SND_PCI_QUIRK(0x1043, 0x1c92, "ASUS ROG Strix G15", ALC285_FIXUP_ASUS_G533Z_PINS),
SND_PCI_QUIRK(0x1043, 0x1c9f, "ASUS G614JU/JV/JI", ALC285_FIXUP_ASUS_HEADSET_MIC),

View File

@@ -0,0 +1,28 @@
{ pkgs, ... }:
pkgs.stdenv.mkDerivation rec {
pname = "asus-gu605c-acpi";
version = "0.0.1";
src = ./gu605c-spi-cs-gpio.asl;
nativeBuildInputs = [
pkgs.acpica-tools
pkgs.cpio
];
phases = [
"buildPhase"
"installPhase"
];
buildPhase = ''
mkdir -p kernel/firmware/acpi
iasl -we -p kernel/firmware/acpi/${pname} ${src}
find kernel | cpio -H newc -o > ${pname}.cpio
'';
installPhase = ''
mkdir -p $out
cp ${pname}.cpio $out/
'';
}

View File

@@ -0,0 +1,30 @@
/*
* This is an SSDT file.
*/
DefinitionBlock ("", "SSDT", 2, "Cirrus", "CsGpios", 0x00001000)
{
External (_SB_.PC00.SPI0, DeviceObj)
External (_SB_.PC00.SPI0.SPK1, DeviceObj)
Scope (_SB.PC00.SPI0)
{
Name (_DSD, Package ()
{
ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
Package ()
{
Package ()
{
"cs-gpios",
Package ()
{
0, // Native CS0
SPK1, 0, 0, 0, // first GPIO declared in SPK1
}
},
}
})
}
}