From nobody Sun Jan 23 20:04:40 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B66ED1984AE2; Sun, 23 Jan 2022 20:04:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jhkbr3ZZyz4f3v; Sun, 23 Jan 2022 20:04:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642968280; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jG1VND5KFKz6uPZv/luyAzpF9mVwEFhbEGioNCcyA8k=; b=BYLlaWn9BP9Yg/IN/SBVfDcON+fKUWpTMNTj30xT6FAJ5TaGW4FjZWSf2rAOpe6RjyVbYS 61b2KBWzcIm1dDZwTrrtWCCj6JDO87m0NcidBnOLNiUlpF72eTXmoiYyvfoRPQA4c1SKWb Zs60XewebTHlcHBjFz466XY/W+1mkJMH8Qlcbh43BGHn+VfbGcAQa9CPV4afKcRJjzqzM4 2ljNFuueJZHqliSAHpqTJ9DjL8SdLQZu7uhrlm+/esSA9oS9+58xlXQw42RalSokzMQcRE Jrdn2M7zS65TucuhMZmJF2O0PW0kaMhD9UBrCJeIhZBg9drvfule77pFCQhaWA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 437D57C2; Sun, 23 Jan 2022 20:04:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 20NK4emF077968; Sun, 23 Jan 2022 20:04:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20NK4eRI077967; Sun, 23 Jan 2022 20:04:40 GMT (envelope-from git) Date: Sun, 23 Jan 2022 20:04:40 GMT Message-Id: <202201232004.20NK4eRI077967@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 45f0e5710509 - main - sound: add patch for Lenovo Legion 5 AMD List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 45f0e5710509c510955c56a1b3e7d0e392407b0d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642968280; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jG1VND5KFKz6uPZv/luyAzpF9mVwEFhbEGioNCcyA8k=; b=EFnS+4TJmw4xcu/63SrqwPchpcs+nfaElyKJFEiYUQnI85phvbIUndjXeueSshBMDBeuLC bgVzhheT3zy7upRM+OLuO+nOYV5EWZ96/YIKjzQYlQteSutTsXh6Lo9/TW6hQ1bJALkzLg PuTyk/qY1V37vreAVHGUhmtlheFE8ibEAHIYzhKptuVtnnqMzz0eod0mDdJov/TC8WM/b1 wdlxTAbXhjSqpLjuvQZAJDflH2QsaLraUj/1vd40q41U+SBK/DrcAgVlFibrzSJKSDMYM/ U2RzR+/phz7CUcW+lcQGpedjjdPs1phxJPjRsRVmtsygHFtc5OGxeC4V8Ed/dQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642968280; a=rsa-sha256; cv=none; b=jtFWHj36JUNYVgovRu0JqFs3hZJuQoVoT7YlciVuOX0qx72nqx7C95KLFDHR7n6/fl9uNL HTIay40fi/L202KsiyFAUiWzb3mk9fw3JqJRC/JIrRqwLKNVBRiuvnH/DK0W3VYY6QIPRT 42qyPRrD2z5qQGczaM+K+w6UzYOhY09mDqnq+Z1zDy8n3LnfSqVSE+4SlzwYgI8seB6B8I ZMgokixgijGucHgHMPtqOgcL3p4iInZO6ZoZTH9SmIngiwQI8imImOCxgeh2DX3t406LJw 2H5NT8VaUTgAat0DPPG13lgOSnBS/s88NRHTj6ExqiPAFHHz8/Af/w77PAnEWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=45f0e5710509c510955c56a1b3e7d0e392407b0d commit 45f0e5710509c510955c56a1b3e7d0e392407b0d Author: Philippe Michaud-Boudreault AuthorDate: 2021-05-19 14:38:34 +0000 Commit: Ed Maste CommitDate: 2022-01-23 20:04:25 +0000 sound: add patch for Lenovo Legion 5 AMD MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30333 --- 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 37744065fdc1..2c05033aa3ad 100644 --- a/sys/dev/sound/pci/hda/hdac.h +++ b/sys/dev/sound/pci/hda/hdac.h @@ -360,6 +360,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)