git: 5abe178970dd - main - hda: Add a patch for ASUS ROG GL553VE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 04 Aug 2022 10:57:58 UTC
The branch main has been updated by arrowd (ports committer):
URL: https://cgit.FreeBSD.org/src/commit/?id=5abe178970dd39cb9ca843a2b1bfe368aa3265a8
commit 5abe178970dd39cb9ca843a2b1bfe368aa3265a8
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2022-08-01 11:07:04 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2022-08-04 10:57:32 +0000
hda: Add a patch for ASUS ROG GL553VE.
Summary:
This change enables headset detection on the laptop.
PR: 256169
Approved by: mav
Differential Revision: https://reviews.freebsd.org/D36007
---
sys/dev/sound/pci/hda/hdaa_patches.c | 6 ++++++
sys/dev/sound/pci/hda/hdac.h | 1 +
2 files changed, 7 insertions(+)
diff --git a/sys/dev/sound/pci/hda/hdaa_patches.c b/sys/dev/sound/pci/hda/hdaa_patches.c
index 0f5cfa87cc9d..dc677bc36143 100644
--- a/sys/dev/sound/pci/hda/hdaa_patches.c
+++ b/sys/dev/sound/pci/hda/hdaa_patches.c
@@ -302,6 +302,12 @@ hdac_pin_patch(struct hdaa_widget *w)
patch_str = "as=2";
break;
}
+ } else if (id == HDA_CODEC_ALC235 && subid == ASUS_GL553VE_SUBVENDOR) {
+ switch (nid) {
+ case 33:
+ patch_str = "as=1 seq=15";
+ break;
+ }
} else if (id == HDA_CODEC_ALC256 && (subid == DELL_I7577_SUBVENDOR ||
subid == DELL_L7480_SUBVENDOR)) {
switch (nid) {
diff --git a/sys/dev/sound/pci/hda/hdac.h b/sys/dev/sound/pci/hda/hdac.h
index 802e2e8f4ec4..80284a20ff11 100644
--- a/sys/dev/sound/pci/hda/hdac.h
+++ b/sys/dev/sound/pci/hda/hdac.h
@@ -318,6 +318,7 @@
#define ASUS_Z550SA_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x13b0)
#define ASUS_A7T_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x13c2)
#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)
#define ASUS_W2J_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x1971)
#define ASUS_M5200_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x1993)