git: 3732e805b3f7 - stable/13 - sound: add patch for Lenovo Legion 5 Intel
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 05 Feb 2023 13:40:36 UTC
The branch stable/13 has been updated by eduardo (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=3732e805b3f75008caf3bfc2a139d2893812457e commit 3732e805b3f75008caf3bfc2a139d2893812457e Author: Nuno Teixeira <eduardo@FreeBSD.org> AuthorDate: 2022-09-16 13:29:30 +0000 Commit: Nuno Teixeira <eduardo@FreeBSD.org> CommitDate: 2023-02-05 13:39:55 +0000 sound: add patch for Lenovo Legion 5 Intel Laptop Legion Lenovo 5 15MH05 (Intel) Patch to fix the sound on this machine. It requires sending the speaker and the headphone jack to the same nid. PR: 265632 Approved by: emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D36511 (cherry picked from commit b44869cba1b391931b831135a9cefcc6ca635103) --- 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 c64a824d7d5e..a8e45139494e 100644 --- a/sys/dev/sound/pci/hda/hdaa_patches.c +++ b/sys/dev/sound/pci/hda/hdaa_patches.c @@ -313,7 +313,8 @@ hdac_pin_patch(struct hdaa_widget *w) break; } } else if (id == HDA_CODEC_ALC257 && - (subid == LENOVO_L5AMD_SUBVENDOR)) { + (subid == LENOVO_L5AMD_SUBVENDOR || + subid == LENOVO_L5INTEL_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 5261bf9c7543..4a31d26c2b6a 100644 --- a/sys/dev/sound/pci/hda/hdac.h +++ b/sys/dev/sound/pci/hda/hdac.h @@ -376,6 +376,7 @@ #define LENOVO_T431S_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x2208) #define LENOVO_G580_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x3977) #define LENOVO_L5AMD_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x381b) +#define LENOVO_L5INTEL_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x380f) #define LENOVO_3000_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x384e) #define LENOVO_ALL_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0xffff)