aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLutz Bichler <Lutz.Bichler@gmail.com>2024-05-22 22:19:50 +0000
committerChristos Margiolis <christos@FreeBSD.org>2024-05-23 00:24:15 +0000
commit1fb0a65ab2dd7f6fb5dfcac2d78b6dcb6e3c6c9e (patch)
treeb7c937e83c429156ac23a5c4c0dd646d93cb7ec4
parente85f2ed0950ae81fa0343103c5ba8fe88e7d204d (diff)
downloadsrc-1fb0a65ab2dd7f6fb5dfcac2d78b6dcb6e3c6c9e.tar.gz
src-1fb0a65ab2dd7f6fb5dfcac2d78b6dcb6e3c6c9e.zip
snd_hda: Add patch for Asus UX331UAL
PR: 242802 MFC after: 1 day Differential Revision: https://reviews.freebsd.org/D45238 (cherry picked from commit 93ad59a251897431627345c287390ae134925a95)
-rw-r--r--sys/dev/sound/pci/hda/hdaa_patches.c11
-rw-r--r--sys/dev/sound/pci/hda/hdac.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/sound/pci/hda/hdaa_patches.c b/sys/dev/sound/pci/hda/hdaa_patches.c
index 9f3532562252..d425e3c0080b 100644
--- a/sys/dev/sound/pci/hda/hdaa_patches.c
+++ b/sys/dev/sound/pci/hda/hdaa_patches.c
@@ -359,6 +359,17 @@ hdac_pin_patch(struct hdaa_widget *w)
patch_str = "as=4 seq=15";
break;
}
+ } else if (id == HDA_CODEC_ALC294 &&
+ subid == ASUS_UX331_SUBVENDOR) {
+ switch (nid) {
+ case 25:
+ /* XXX You are not expected to understand this. */
+ config = 0x01a1103c;
+ break;
+ case 33:
+ patch_str = "as=1 seq=15";
+ break;
+ }
} else {
/*
* loop over hdaa_model_pin_patch
diff --git a/sys/dev/sound/pci/hda/hdac.h b/sys/dev/sound/pci/hda/hdac.h
index 6a3314280a22..6b6bc58a4818 100644
--- a/sys/dev/sound/pci/hda/hdac.h
+++ b/sys/dev/sound/pci/hda/hdac.h
@@ -332,6 +332,7 @@
#define ASUS_G2K_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x1339)
#define ASUS_Z550SA_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x13b0)
#define ASUS_A7T_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x13c2)
+#define ASUS_UX331_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x14de)
#define ASUS_UX31A_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x1517)
#define ASUS_GL553VE_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x15e0)
#define ASUS_Z71V_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x1964)