From nobody Thu Sep 11 16:42:49 2025 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 4cN3JT4TtDz66t3c; Thu, 11 Sep 2025 16:42:49 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cN3JT3bWjz3NrR; Thu, 11 Sep 2025 16:42:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757608969; 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=J4Tl5K13OgEl1n3TLvJ0cDYuQefXWEGq10mUaNEAjtc=; b=gycUqyiS8Gi2E+Y97wHJxAAtAvhL9uLNrJq/DUcXhefkamsdVhX09Jqqm583+BuRCAt2Jc dFgj5zOjELooOpJY8YQkVjItvFJ8dNhP/5/mP0YCgwRoivTq/9hpfrY9wrHnad0GMmR3Sf wUekioHic3HAZRnaSao1/TL7hokA+3ampSQIXs0JgIpzskcUNIIJvNZ8zk33PEkHlt6n3V ErkfvIWonU/gx8F4X26k5I6DSkMDLQeJK9YbXhy9ZfbHwBIYKSS66Pv1rb1KTHY+35zc6c I+fFizCj210NREERf8rgqbDMATdKqycogwLlL1u30QOh6d2Gf6swA2YFHxaANg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757608969; 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=J4Tl5K13OgEl1n3TLvJ0cDYuQefXWEGq10mUaNEAjtc=; b=KtEBqI3nsWz+g1EEoiow0czt9koT06rP9XdUrgSlN1IHlk3Cd97cT/ayMsTlv1mC5iPqYR 98c17y6KXEKgKeR5wPY8OB7ELApJXvlbmHKmhIXIqQwAgzEHdUP7yxn+JuUyWkE1UHe6K9 /m6vKd2szsN9zEltdogwEVU8DgM49HzhRsPKN8P/FBhd36Qssd8VhyM3Q4YXadW281SkHV CgQZOJwJpu3gMLwPM4rcvSTfB2nJLySt9yQ1S70IBOzepkoOZxazXon/ttiMNLq92/G8G+ 5kYCkGbq3UIvFwgZAMw0FY3nZ09nETgKsCTMwTTL2np/IL8/4rilLNnONIX+kA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757608969; a=rsa-sha256; cv=none; b=fGEGPJuED+Lx4VVtvDEBlIdrPEfDE3S6xnZCLYH5YtrjIN2Zr5mIMB8cHRDfu/1C9vmRqx Ad76xoixp1eE3UPADgGNlrev1h713Cdpha849pm1BPIQ81c6auIz1W4uEpXhJm3QLa0Wsc M1eALRZMRByxM5p6fW5fdVasWDCJAvIANH8gX3S93Omb6Zx5LbN3wuWSZm01FxGzLk8vbZ 1ApVx9t4hEOQUafe+2FFAD5g8PEhNW0knSUyOyVfHQC/cUdWrboDTsQHe6dp8N6DbWfijW 76Ub6zfWjgBHW4N47fG4+m5ohkEmbEuviSt+2GryzGjCggcMZJWvHmkAtcZoEQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cN3JT32w4z1B6; Thu, 11 Sep 2025 16:42:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 58BGgn7Z058218; Thu, 11 Sep 2025 16:42:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58BGgnpB058215; Thu, 11 Sep 2025 16:42:49 GMT (envelope-from git) Date: Thu, 11 Sep 2025 16:42:49 GMT Message-Id: <202509111642.58BGgnpB058215@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: ShengYi Hung Subject: git: 7f81b2519aeb - main - snd_hda: Add patch for Framework 16 AMD Ryzen AI 300 Series 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: aokblast X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7f81b2519aebcf90d7e027122ca99b628ca81ed9 Auto-Submitted: auto-generated The branch main has been updated by aokblast: URL: https://cgit.FreeBSD.org/src/commit/?id=7f81b2519aebcf90d7e027122ca99b628ca81ed9 commit 7f81b2519aebcf90d7e027122ca99b628ca81ed9 Author: ShengYi Hung AuthorDate: 2025-09-08 11:15:14 +0000 Commit: ShengYi Hung CommitDate: 2025-09-11 16:41:48 +0000 snd_hda: Add patch for Framework 16 AMD Ryzen AI 300 Series The new Framework 16 with ALC285 exhibits the same issue as the previous model. Therefore, we apply the same fix to the new model. Reviewed by: emaste, Daniel Schaefer Approved by: lwhsu (mentor) MFC after: 3 days Sponsored by: The FreeBSD Foundation Sponsored by: Framework Computer Inc Differential Revision: https://reviews.freebsd.org/D52423 --- sys/dev/sound/pci/hda/hdaa_patches.c | 6 ++++-- sys/dev/sound/pci/hda/hdac.h | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/dev/sound/pci/hda/hdaa_patches.c b/sys/dev/sound/pci/hda/hdaa_patches.c index 8967cb49125c..91bb244578c7 100644 --- a/sys/dev/sound/pci/hda/hdaa_patches.c +++ b/sys/dev/sound/pci/hda/hdaa_patches.c @@ -362,8 +362,10 @@ hdac_pin_patch(struct hdaa_widget *w) patch_str = "as=3 seq=15 color=Black loc=Left"; break; } - } else if (id == HDA_CODEC_ALC295 && - subid == FRAMEWORK_LAPTOP_0005_SUBVENDOR) { + } else if ((id == HDA_CODEC_ALC295 && + subid == FRAMEWORK_LAPTOP_0005_SUBVENDOR) || + (id == HDA_CODEC_ALC285 && + subid == FRAMEWORK_LAPTOP_000D_SUBVENDOR)) { switch (nid) { case 20: /* diff --git a/sys/dev/sound/pci/hda/hdac.h b/sys/dev/sound/pci/hda/hdac.h index 09a17f702019..c11e6b2d6810 100644 --- a/sys/dev/sound/pci/hda/hdac.h +++ b/sys/dev/sound/pci/hda/hdac.h @@ -536,6 +536,7 @@ #define FRAMEWORK_LAPTOP_0003_SUBVENDOR HDA_MODEL_CONSTRUCT(FRAMEWORK, 0x0003) #define FRAMEWORK_LAPTOP_0005_SUBVENDOR HDA_MODEL_CONSTRUCT(FRAMEWORK, 0x0005) #define FRAMEWORK_LAPTOP_0006_SUBVENDOR HDA_MODEL_CONSTRUCT(FRAMEWORK, 0x0006) +#define FRAMEWORK_LAPTOP_000D_SUBVENDOR HDA_MODEL_CONSTRUCT(FRAMEWORK, 0x000d) /* All codecs you can eat... */ #define HDA_CODEC_CONSTRUCT(vendor, id) \