From nobody Wed May 22 22:21:09 2024 X-Original-To: dev-commits-src-main@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 4Vl5P14nmfz5L7nr; Wed, 22 May 2024 22:21:09 +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 4Vl5P14K0nz4SSC; Wed, 22 May 2024 22:21:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716416469; 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=0b2spurlChCOfn3decoT3RsNG52+lm11bDGMKZ1eJVI=; b=ySSShagYDEdvPMBO5gar+2FuhXCRdNg7G4NLshSHNu1sbcB7DN/E4HAg3BCzC+6giRUADT r/VckjQlmqkdxx+BnsooaHB4SGuFGJ6j+oLtMjyLQErLfrhIXNW8Wh1hy5VxO5/8h0BKzU 17T4ZBGXNSYYmFL/sg5gUYMMejb/Or5Ot1FahEzmkD/fjHYFW8eajM5QhSPFFZSnizD4rA xb0eSwhZrjGbJdj/rK7Cu9ZE3j8ESmS7GE77wjWgNGs+YsoKDt1jF/UC3XY3TnxEZ4PZvy 1/EclPxRn/lvbG0AgQSRYFYBU+ztu8IbYclO3JH2iS5bwBtb7UYfTV1PvxY+iw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716416469; a=rsa-sha256; cv=none; b=NRBZtBerzAF2KSjwxMkET/So865maU5s6ReMFo21Q/h87QvrSpmpsPTGaa/m8DZxaYAIE6 jdCU8/+rt+M6Xmaa23jrcKD1lMuQfq5UlON1j51Zk3Wok5eqSAa6cXsM1GlFPqI/lOe83m 8nkEyTyUg9IwlGf1uV81R4a5QLa7gvQsmVkzYsrMYLMEHjla/7v+EkLLMHUzTxO8/p3Ela X+Q/ojRfwCBWH0Gk52f1ibBzwcdXdenRLWSOLTJNxERf4wmhqYVyHGGZnHxZ7XSK7zLCt0 i8qt1cdl24kIlEFIfOMzVYEsV0TaZB1dDUH+2ddbgdeJC18IELakBU1nxkbNLQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716416469; 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=0b2spurlChCOfn3decoT3RsNG52+lm11bDGMKZ1eJVI=; b=Cg0cIiR0WQ/NdpUsvBqEf+FLS05w2IHK8FlGzGwmW9un3xzOnze5DhkS/Ym8o9sfd24vKI NErf80FWXGjkVw+3NJkRwE+G77OxuHJT5Cdlsg17jk+ksK7LxWDCAF5Yq6sGxVr1KAsTL+ emzC3PCjrG0ZpoeKhC6R7rP8ahq00LMzNby3BrDPBJKOGXeZlCkOeG1QMd6fXXcTABb46E 341LqFbv5BhDig+UqgsSQBroP1DeYumcl23M0WHzw3GbMuUxpmqmYKgh7UGofQzag4U0e7 dQmCkEpNmePd3Gg8iop8MvZiEQkJ9AYVXGnFNDUoNjaBoTsXsUWum3z2CvwzdA== 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 4Vl5P13x3czNs3; Wed, 22 May 2024 22:21:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44MML9YI015591; Wed, 22 May 2024 22:21:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44MML9is015588; Wed, 22 May 2024 22:21:09 GMT (envelope-from git) Date: Wed, 22 May 2024 22:21:09 GMT Message-Id: <202405222221.44MML9is015588@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: 93ad59a25189 - main - snd_hda: Add patch for Asus UX331UAL List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 93ad59a251897431627345c287390ae134925a95 Auto-Submitted: auto-generated The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=93ad59a251897431627345c287390ae134925a95 commit 93ad59a251897431627345c287390ae134925a95 Author: Lutz Bichler AuthorDate: 2024-05-22 22:19:50 +0000 Commit: Christos Margiolis CommitDate: 2024-05-22 22:19:50 +0000 snd_hda: Add patch for Asus UX331UAL PR: 242802 MFC after: 1 day Differential Revision: https://reviews.freebsd.org/D45238 --- sys/dev/sound/pci/hda/hdaa_patches.c | 11 +++++++++++ sys/dev/sound/pci/hda/hdac.h | 1 + 2 files changed, 12 insertions(+) diff --git a/sys/dev/sound/pci/hda/hdaa_patches.c b/sys/dev/sound/pci/hda/hdaa_patches.c index 9f3532562252..d425e3c0080b 100644 --- a/sys/dev/sound/pci/hda/hdaa_patches.c +++ b/sys/dev/sound/pci/hda/hdaa_patches.c @@ -359,6 +359,17 @@ hdac_pin_patch(struct hdaa_widget *w) patch_str = "as=4 seq=15"; break; } + } else if (id == HDA_CODEC_ALC294 && + subid == ASUS_UX331_SUBVENDOR) { + switch (nid) { + case 25: + /* XXX You are not expected to understand this. */ + config = 0x01a1103c; + 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 6a3314280a22..6b6bc58a4818 100644 --- a/sys/dev/sound/pci/hda/hdac.h +++ b/sys/dev/sound/pci/hda/hdac.h @@ -332,6 +332,7 @@ #define ASUS_G2K_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x1339) #define ASUS_Z550SA_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x13b0) #define ASUS_A7T_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x13c2) +#define ASUS_UX331_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x14de) #define ASUS_UX31A_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x1517) #define ASUS_GL553VE_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x15e0) #define ASUS_Z71V_SUBVENDOR HDA_MODEL_CONSTRUCT(ASUS, 0x1964)