From nobody Fri Sep 16 13:33:24 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 4MTZlS68tTz4crTN; Fri, 16 Sep 2022 13:33:24 +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 4MTZlS5bfPz3G18; Fri, 16 Sep 2022 13:33:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663335204; 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=s+WAB035otIkorFF3x/YCw1pBHhsYgegpL7Ufuef+Zs=; b=p2Vzyxi7E0MtSF2SR4TUI3yfZkCgIpLwLtbkwt0OGSzJgD0vZAX77rHZq+pg6iRHuk9mrB dalvkJVJK2XI0wkTxw/cXfmP8V8wuoVX3EqBGhwwmz7tizQG2LZVMGz+Fx24qX9ayR1rPi MR5bhnjqN7ph4t1QTgToTW92e5xGxXq7zEa0lVUoK/YSl1NKt0GniASxrPaBJLKYGJ1J1c 1fEbNXyVnhLVFqztRWmwcxvrxPxMJHex26GxfwK4bHsqSrcQF6qCOogQo/P3//K1DJo1yX XuAIkhS2PFfii/nEo6HFYIVnLdzeBzgKRk25h6x+KMwIe97pmg6TWF2gBezzhA== 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 4MTZlS4btszN98; Fri, 16 Sep 2022 13:33:24 +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 28GDXOrj012723; Fri, 16 Sep 2022 13:33:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28GDXOd0012722; Fri, 16 Sep 2022 13:33:24 GMT (envelope-from git) Date: Fri, 16 Sep 2022 13:33:24 GMT Message-Id: <202209161333.28GDXOd0012722@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Nuno Teixeira Subject: git: b44869cba1b3 - main - sound: add patch for Lenovo Legion 5 Intel 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: eduardo X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b44869cba1b391931b831135a9cefcc6ca635103 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663335204; 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=s+WAB035otIkorFF3x/YCw1pBHhsYgegpL7Ufuef+Zs=; b=iiXBy5t3ER62NBDeUji1oGm3hae+JXqZ/3Wp02Qz0fXRXu4hK1vMAvf+CWXYPesusd1eHk a0Ox2UBq8U53NmbLnZxeGQBKW/esOUVhi7NEFehqWHzrh3p8QIjTHzhKZi1OzgSCRsMITp X0Xw9CdQYxww8hynfUCeTsCbdDIu5DMq7+UlIcKMWxoiqtsREu9Ri0fyoMW0zFJcB278Qr t10jpmYvJTx2561hOEQj1Txob8r2+T1YSUwvdTMASLQsPJJgRD2klSR2PHycmSzpiyiZE5 PMKFzJE2q8IATUpCzo/YZ6lu1R2AAML3xbzrCoycW/3NJix37qeJXL1WNDA2mg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663335204; a=rsa-sha256; cv=none; b=huk676EZuhGRy3pve36TFd15cW92sc1j6XC4dSUeT9d5YgjWV7MdoUyOah7lTQ236PiR+7 yDvTfi1n6VV3oWOL/skIRN8lDH/I5DNSE9hTVKFgl/CdAhilv+bZZUsDQeJepsX90qx/o5 5djGLFqFPBhFHizDSRI9mrOrHt3NfpPQWLg6dmgHHuTKk63tLa/4G0tLrmjjNM/lOZCj8a izyfyKGlK/U4RyNf02ZPMSZHkTXpcCrEckP8rBxQ+OVNWSFYHdqxkhwyAnkGW/B/3iJRJU yhIBo/CFdoGVLOk//cGsJugM3ze+opkYVxLS2PtUDcjf6FV59DGKf+GzwT0zmA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by eduardo (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=b44869cba1b391931b831135a9cefcc6ca635103 commit b44869cba1b391931b831135a9cefcc6ca635103 Author: Nuno Teixeira AuthorDate: 2022-09-16 13:29:30 +0000 Commit: Nuno Teixeira CommitDate: 2022-09-16 13:29:30 +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 --- 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 632f74a0a0cc..8d5eb77e0874 100644 --- a/sys/dev/sound/pci/hda/hdaa_patches.c +++ b/sys/dev/sound/pci/hda/hdaa_patches.c @@ -319,7 +319,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 a4928dd0b4c5..04dd9c643bcf 100644 --- a/sys/dev/sound/pci/hda/hdac.h +++ b/sys/dev/sound/pci/hda/hdac.h @@ -372,6 +372,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)