Skip to content

Instantly share code, notes, and snippets.

@kenzoi
Last active February 8, 2024 08:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenzoi/85c93c7e90471d6d0bec7b85c391e9f0 to your computer and use it in GitHub Desktop.
Save kenzoi/85c93c7e90471d6d0bec7b85c391e9f0 to your computer and use it in GitHub Desktop.
Linux kernel >v7.2 patch for Asus UX3402VA

Asus Zenbook UX3402VA speakers on Linux > v7.2

Important

THIS PATCH WAS ALREADY ACCEPTED AND APPLIED BY ONE OF THE SOUND.GIT MAINTAINERS link

It just a matter of time to arrive on a stable branch, I'm just leaving this here in case someone doesn't want to wait for it.

git clone https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/

git checkout branch linux-6.7.y

For Fedora follow these instructions considering the notes below.

  • skip "Getting the Sources"

  • apply the patches

  • copy your latest kernel configuration from /boot

  • when run make oldconfig stay on default values for everything (just press Enter to the prompts)

  • compile the kernel with:

make -jx bzImage # (where x is the number of cpu cores that you want dedicate to compilation)
make -jx modules # (where x is the number of cpu cores that you want dedicate to compilation)
From c8fb48c0c28ccdce751df03ecca383552510cf4c Mon Sep 17 00:00:00 2001
From: Kenzo Gomez <kenzo.sgomez@gmail.com>
Date: Sat, 27 Jan 2024 17:30:28 +0100
Subject: [PATCH v3] ALSA: hda: cs35l41: Support additional ASUS Zenbook
UX3402VA
Add new model entry into configuration table.
Signed-off-by: Kenzo Gomez <kenzo.sgomez@gmail.com>
---
sound/pci/hda/cs35l41_hda_property.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/pci/hda/cs35l41_hda_property.c b/sound/pci/hda/cs35l41_hda_property.c
index 35277ce890a4..59504852adc6 100644
--- a/sound/pci/hda/cs35l41_hda_property.c
+++ b/sound/pci/hda/cs35l41_hda_property.c
@@ -76,6 +76,7 @@ static const struct cs35l41_config cs35l41_config_table[] = {
{ "10431533", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4500, 24 },
{ "10431573", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 1000, 4500, 24 },
{ "10431663", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, -1, 0, 1000, 4500, 24 },
+ { "104316A3", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 0, 0, 0 },
{ "104316D3", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 0, 0, 0 },
{ "104316F3", 2, EXTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 1, 2, 0, 0, 0, 0 },
{ "104317F3", 2, INTERNAL, { CS35L41_LEFT, CS35L41_RIGHT, 0, 0 }, 0, 1, -1, 1000, 4500, 24 },
@@ -410,6 +411,7 @@ static const struct cs35l41_prop_model cs35l41_prop_model_table[] = {
{ "CSC3551", "10431533", generic_dsd_config },
{ "CSC3551", "10431573", generic_dsd_config },
{ "CSC3551", "10431663", generic_dsd_config },
+ { "CSC3551", "104316A3", generic_dsd_config },
{ "CSC3551", "104316D3", generic_dsd_config },
{ "CSC3551", "104316F3", generic_dsd_config },
{ "CSC3551", "104317F3", generic_dsd_config },
--
2.43.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment