Date: Thu, 24 Mar 2022 13:55:09 GMT From: Ed Maste <emaste@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 43354d957060 - stable/13 - sound: add patch for Lenovo Legion 5 AMD Message-ID: <202203241355.22ODt9CU086467@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=43354d95706024d0b5e0abd78eeb10a2ae477149 commit 43354d95706024d0b5e0abd78eeb10a2ae477149 Author: Philippe Michaud-Boudreault <pitwuu@gmail.com> AuthorDate: 2021-05-19 14:38:34 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2022-03-24 13:52:37 +0000 sound: add patch for Lenovo Legion 5 AMD MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30333 (cherry picked from commit 45f0e5710509c510955c56a1b3e7d0e392407b0d) --- sys/dev/sound/pci/hda/hdaa_patches.c | 10 ++++++++++ sys/dev/sound/pci/hda/hdac.h | 1 + 2 files changed, 11 insertions(+) diff --git a/sys/dev/sound/pci/hda/hdaa_patches.c b/sys/dev/sound/pci/hda/hdaa_patches.c index 45577819e897..f824472fc9a2 100644 --- a/sys/dev/sound/pci/hda/hdaa_patches.c +++ b/sys/dev/sound/pci/hda/hdaa_patches.c @@ -312,6 +312,16 @@ hdac_pin_patch(struct hdaa_widget *w) patch_str = "as=1 seq=15"; break; } + } else if (id == HDA_CODEC_ALC257 && + (subid == LENOVO_L5AMD_SUBVENDOR)) { + switch (nid) { + case 20: + patch_str = "as=1 seq=0"; + 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 f30caf8b001f..8fcdad7ac7a5 100644 --- a/sys/dev/sound/pci/hda/hdac.h +++ b/sys/dev/sound/pci/hda/hdac.h @@ -363,6 +363,7 @@ #define LENOVO_X230T_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x2203) #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_3000_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0x384e) #define LENOVO_ALL_SUBVENDOR HDA_MODEL_CONSTRUCT(LENOVO, 0xffff)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203241355.22ODt9CU086467>