git: 54cc353f505d - main - snd_hda: Add patch for Lenovo Ideapad 3

From: Christos Margiolis <christos_at_FreeBSD.org>
Date: Tue, 14 May 2024 13:42:35 UTC
The branch main has been updated by christos:

URL: https://cgit.FreeBSD.org/src/commit/?id=54cc353f505dbc5f19168b6b1417b6736433d9ae

commit 54cc353f505dbc5f19168b6b1417b6736433d9ae
Author:     Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2024-05-14 13:42:04 +0000
Commit:     Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2024-05-14 13:42:04 +0000

    snd_hda: Add patch for Lenovo Ideapad 3
    
    Reported by:    bsd-lists@bsdforge.com
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days
    Reviewed by:    emaste
    Differential Revision:  https://reviews.freebsd.org/D45100
---
 sys/dev/sound/pci/hda/hdaa_patches.c | 3 ++-
 sys/dev/sound/pci/hda/hdac.h         | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/sys/dev/sound/pci/hda/hdaa_patches.c b/sys/dev/sound/pci/hda/hdaa_patches.c
index 3a7dfc63637a..76f677d69614 100644
--- a/sys/dev/sound/pci/hda/hdaa_patches.c
+++ b/sys/dev/sound/pci/hda/hdaa_patches.c
@@ -318,7 +318,8 @@ hdac_pin_patch(struct hdaa_widget *w)
 		}
 	} else if (id == HDA_CODEC_ALC257 &&
 	    (subid == LENOVO_L5AMD_SUBVENDOR ||
-	    subid == LENOVO_L5INTEL_SUBVENDOR)) {
+	    subid == LENOVO_L5INTEL_SUBVENDOR ||
+	    subid == LENOVO_I3_SUBVENDOR)) {
 		switch (nid) {
 		case 20:
 			patch_str = "as=1 seq=0";
diff --git a/sys/dev/sound/pci/hda/hdac.h b/sys/dev/sound/pci/hda/hdac.h
index 4dd589ed2a09..12552286bd8c 100644
--- a/sys/dev/sound/pci/hda/hdac.h
+++ b/sys/dev/sound/pci/hda/hdac.h
@@ -383,6 +383,7 @@
 #define	LENOVO_L5INTEL_SUBVENDOR	HDA_MODEL_CONSTRUCT(LENOVO, 0x380f)
 #define	LENOVO_3000_SUBVENDOR	HDA_MODEL_CONSTRUCT(LENOVO, 0x384e)
 #define	LENOVO_I330_SUBVENDOR	HDA_MODEL_CONSTRUCT(LENOVO, 0x3808)
+#define	LENOVO_I3_SUBVENDOR	HDA_MODEL_CONSTRUCT(LENOVO, 0x3881)
 #define LENOVO_ALL_SUBVENDOR	HDA_MODEL_CONSTRUCT(LENOVO, 0xffff)
 
 /* Samsung */