From nobody Sun Feb 05 13:40:36 2023 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 4P8rBF0TnVz3nYWG; Sun, 5 Feb 2023 13:40:37 +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 4P8rBD74WTz3vg2; Sun, 5 Feb 2023 13:40:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675604437; 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=4i81rX/q29z9c7C2Lek605Ci7oDqgVIghBDqZ0hJMIQ=; b=keRNNbsWC/wg7lIF7bEm4s0tH5jscPneYHkPN1z2vRXvUd+kP+FdZ93ZrS6wGt+5hGbmzb FnorBACv+0QrKaNNopIV5UsHwTgz6Z80rFo5UFY6FYzCoH36WAMCnk2EAiuf6ROsCOkMUu YdqNEAMOfIgB65qKLXbbI/n1d4lcCaB2IlypFxWr+mPfAYGrAPvFtFM47b6m6HuzAIIEwd NxI3ImVzy2fkAU/g58u29oLcq2qN3XVrXiZO0fY6YlupOcwp1J3IIXyjzGyccwvm5aSTLM mq/Q4IvBfoR3tD7BhjpJehw9ZCga8VrChnz+dvCuTv4ATmq6t0cGjyBraKIIvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675604437; 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=4i81rX/q29z9c7C2Lek605Ci7oDqgVIghBDqZ0hJMIQ=; b=DOvVdEp2U5TPZPm498PYhUYBWDEQY8ARLfwe2kgB+6KxorfwoRHe24MCg4ingWaz9JLn6v 92inLx+mwLD6bKD69/Wz1Hf9IKJOOwTIi/YKuYduWrgDouNd+atl65WoiiEHnzoYoB/4eV pKLLLorTKOJG1HrSVcMiR4OUcgCIZs3iNFymHZLa8Ta4x6II18PwYA/69jM/yOlU5kogmM GQ1ypFmkBlQOjsCDoYb0SQMf/vd/mJ4E398AkcisW3Hv5yyKUM05MIjRmMArrQ5nn38pcN Z+BLQtIGMsIbSQxrYbLjHSAkq16W6E5h04m9Z0f0FgKsflLEw6L4EGirwA0LUA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675604437; a=rsa-sha256; cv=none; b=qxOmm4379z+FlL5sAPT/2tn+U7tmMvx+iF7lxQB7q4FsFcm0cBegquhE/tAofrLZoeRcZE 9M7Il+IopC2BcLIfyMwADtDEx321mUUznEpWBzQXvaL8e9kQqbZZs/MPn6lqYhiVWoGe/1 cTcho7nEUTWUlo0xdjwO/nkStd2AQ0cybYo1b/GyYzu7W1H+0SNI41h2n/fapfGQY2U8Hf 1cRdu8YecBn7oeKGvmTT2aO5wd4QaHdrv5evt2ZSU/soJ/PV6GRCcAgBobXfcs7eumCe+q 3jD/J5fqDHTH3rMFLxiIPqkHd25mXmEH1NCkbEH8nkqsK9dnBhnL/QwCkVWdFQ== 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 4P8rBD68jwzwp7; Sun, 5 Feb 2023 13:40:36 +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 315DeaiF033466; Sun, 5 Feb 2023 13:40:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 315Dea3n033465; Sun, 5 Feb 2023 13:40:36 GMT (envelope-from git) Date: Sun, 5 Feb 2023 13:40:36 GMT Message-Id: <202302051340.315Dea3n033465@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Nuno Teixeira Subject: git: 3732e805b3f7 - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 3732e805b3f75008caf3bfc2a139d2893812457e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N 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 AuthorDate: 2022-09-16 13:29:30 +0000 Commit: Nuno Teixeira 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)