Skip to content

Instantly share code, notes, and snippets.

@steffengy
steffengy / linux-sound-UX3405MA.patch
Last active August 16, 2024 23:55
NOT NEEDED >=v6.11-rc1. Linux 6.8.2 patch 10431A63 - UX3405MA.304 Sound CS35L41 Workaround For context: In bios version 304 pretty much all the config is present (confirmed via dumping and looking at ssdt16), except for "spk-id-gpios".
--- ./cs35l41_hda_property.old.c 2024-04-03 15:32:51.000000000 +0200
+++ ./cs35l41_hda_property.c 2024-04-03 20:27:58.179588400 +0200
@@ -83,6 +83,7 @@
{ "104317F3", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4500, 24 },
{ "10431863", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 1000, 4500, 24 },
{ "104318D3", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 0, 0, 0 },
+ { "10431A63", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, -1, 2, -1, 0, 0, 0 },
{ "10431A83", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4500, 24 },
{ "10431C9F", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 1000, 4500, 24 },
{ "10431CAF", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 1000, 4500, 24 },