aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorChristos Margiolis <christos@FreeBSD.org>2024-05-14 13:42:04 +0000
committerChristos Margiolis <christos@FreeBSD.org>2024-05-14 13:42:04 +0000
commit54cc353f505dbc5f19168b6b1417b6736433d9ae (patch)
treed88772a14cd1e0418ccc7aa261bbc30d0f3193dc /sys/dev
parent79bffdf3f42e2e8e62223fcffd537d5d254ddbb7 (diff)
downloadsrc-54cc353f505dbc5f19168b6b1417b6736433d9ae.tar.gz
src-54cc353f505dbc5f19168b6b1417b6736433d9ae.zip
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
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sound/pci/hda/hdaa_patches.c3
-rw-r--r--sys/dev/sound/pci/hda/hdac.h1
2 files changed, 3 insertions, 1 deletions
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 */