Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8947734rwd; Wed, 21 Jun 2023 00:36:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6IPdOuwj8JAd/+AqS4+6cqnhgOktsbq5SQp73jXioQW7N62HeQkIso9OrN3wHk+x156k8N X-Received: by 2002:a17:903:26cb:b0:1b1:99c9:8cfa with SMTP id jg11-20020a17090326cb00b001b199c98cfamr15568251plb.14.1687332963812; Wed, 21 Jun 2023 00:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687332963; cv=none; d=google.com; s=arc-20160816; b=O7adDtYlMizkHkBejaI2/SjnpIHA1cY15tGXbLYzO6GTrmkCoJIvQy5B1Phhw+dHnp gel0RhporMTHQ8/4i8x/iCCwSCOIGBF96VzKil/qvxz3UqA24PMKjG7mewbzX0mrwbPC x2MuDkgbOrhdqYsTqe9108PUGHE4ACv5/Eg0t+Tgv8gpVp5+R8ARxJmCCHnTTXsyOoER X9ovYOYfeQ4W55KwdB3WeOp8WKab6Iewntw6JnQXIxWKilSAsu1zICZWTY7nG4tIsOT7 7rhzW8jfqtsVy3N9O2xTOEQ5H121UHkjphoXdrKuG3DyC7FhNWpsB59QY36l3zSH8uyw 3NmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=w1PHjAGZXc4xazJssBOKB0/R/68bqb/HiXn5FLtCATg=; b=RSvdz0qNALy7hEjH+cvmfIOcTzH4WBN6PjgC+QGf3OpDnMNkuX+eqshelFSGwh36GP azTw8A3U64ut/HEFBg0clOvDmvDZBcvTleLEjUyYuNyqfjdYzUZLZRdckU2bqd5j1rc/ J52h4dEMt7ydFYnVY6A/X3Vuig4fTimQ13ImIHvDw40+0peh3BokS7W+REtvxNJSI/Ih Lmslpbv5ONnTdxDTRvDTfQ4B2QI4Vsyo+VvpbCl0zTKbUIrTATUVDT60cxz4WD/dhZq+ x3dPZXsDz3ILiuQLON2tYnbuT5F322npnqetVEwuCBhOJYtEnqBa9biFCwoW/kAHTz/9 pOxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="i+ST9//A"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j5-20020a170902da8500b001b69b29bb0fsi704487plx.331.2023.06.21.00.35.51; Wed, 21 Jun 2023 00:36:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="i+ST9//A"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230255AbjFUHGg (ORCPT + 99 others); Wed, 21 Jun 2023 03:06:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbjFUHGe (ORCPT ); Wed, 21 Jun 2023 03:06:34 -0400 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 687F7DD for ; Wed, 21 Jun 2023 00:06:33 -0700 (PDT) Received: by mail-qt1-x836.google.com with SMTP id d75a77b69052e-3ff29fe0d40so4857211cf.0 for ; Wed, 21 Jun 2023 00:06:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687331192; x=1689923192; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=w1PHjAGZXc4xazJssBOKB0/R/68bqb/HiXn5FLtCATg=; b=i+ST9//AM6kmm9e20uuYi20qyrpg5HZh3QTMv2H9+mOQZCgcnWidDnU43Fi5qIAmLK 6Ty/8BHdiM0QzuKd3aa1fus+UajjEl0pFr6v5zfH+GNevht4bnkth6hrXKis4CSLQZD/ KpKV6O7mOC1y2U91RIrxgNT2ckOL6gUVFomoRR3PFsTylEJFAdrurFI+r3jEtjCC9E4u kVOqnM3oE/z8Qw7EbAWbxxT5CKAeOL7SK2FdyMmdxXu70A4c6IhBX4kfmjyoQ703MGLd Unpmfptx/tk+mN6lZN2S0wsyWCT9KR58LC5lFVTFrMW495r4bDT2KH1kys2B8S0JF7A5 9M1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687331192; x=1689923192; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=w1PHjAGZXc4xazJssBOKB0/R/68bqb/HiXn5FLtCATg=; b=Ev0hMrp9GbDX42Xn87zPrPDpUjra0luRec3pU+qcLR33mg9jrQAk85fYyQNFtqmXX7 F6bAaQhw88iAhOeXdD55hNcPbzPLx2fBha4LEQ4bKILCq8K6RWOAmTbf5sHuKdpxP4ls 4rFcJxkNt78m4osIzNTxe3X7TfRtrGvCTfUMaYAHwa6OF2RTO+YmXzOg+74J+y6QPAzv 6b8ykJDXAmuiSo/n9+s2SI4b98+SJcsh5CJxKMat089Q/V9kUclne4t+2iSQnl0zTrs3 1etm13cjgbY1j6Y2yeHDD6wncjILfmkWIdY37GpBp18x+tUX4RuyuxrR3W5fMRfl2Lbl OTpQ== X-Gm-Message-State: AC+VfDz/tdG9WdW/I7QinVjjP1iU0o6cHWcHGu2+Pvps78ndSQgo/UmM Wp5GTjVT/dxyJFh4NDJbxzY= X-Received: by 2002:a05:620a:800e:b0:763:b025:9f40 with SMTP id ee14-20020a05620a800e00b00763b0259f40mr5271447qkb.7.1687331192447; Wed, 21 Jun 2023 00:06:32 -0700 (PDT) Received: from localhost.localdomain ([173.23.87.62]) by smtp.gmail.com with ESMTPSA id x8-20020a817c08000000b005623ae13106sm957361ywc.100.2023.06.21.00.06.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 00:06:31 -0700 (PDT) From: Matthew Anderson To: tiwai@suse.com Cc: perex@perex.cz, luke@ljones.dev, sbinding@opensource.cirrus.com, linux-kernel@vger.kernel.org, Matthew Anderson Subject: [PATCH] ALSA: hda/realtek: Add quirks for ROG ALLY CS35l41 audio Date: Wed, 21 Jun 2023 02:06:10 -0500 Message-ID: <20230621070610.70399-1-ruinairas1992@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This requires a patched ACPI table or a firmware from ASUS to work because the system does not come with the _DSD field for the CSC3551. Bug report: https://bugzilla.kernel.org/show_bug.cgi?id=217550 Signed-off-by: Matthew Anderson --- sound/pci/hda/patch_realtek.c | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 308ec7034cc9..a3981160b745 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -7120,6 +7120,10 @@ enum { ALC294_FIXUP_ASUS_DUAL_SPK, ALC285_FIXUP_THINKPAD_X1_GEN7, ALC285_FIXUP_THINKPAD_HEADSET_JACK, + ALC294_FIXUP_ASUS_ALLY, + ALC294_FIXUP_ASUS_ALLY_PINS, + ALC294_FIXUP_ASUS_ALLY_VERBS, + ALC294_FIXUP_ASUS_ALLY_SPEAKER, ALC294_FIXUP_ASUS_HPE, ALC294_FIXUP_ASUS_COEF_1B, ALC294_FIXUP_ASUS_GX502_HP, @@ -8432,6 +8436,47 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC294_FIXUP_SPK2_TO_DAC1 }, + [ALC294_FIXUP_ASUS_ALLY] = { + .type = HDA_FIXUP_FUNC, + .v.func = cs35l41_fixup_i2c_two, + .chained = true, + .chain_id = ALC294_FIXUP_ASUS_ALLY_PINS + }, + [ALC294_FIXUP_ASUS_ALLY_PINS] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x19, 0x03a11050 }, + { 0x1a, 0x03a11C30 }, + { 0x21, 0x03211420 }, + { } + }, + .chained = true, + .chain_id = ALC294_FIXUP_ASUS_ALLY_VERBS + }, + [ALC294_FIXUP_ASUS_ALLY_VERBS] = { + .type = HDA_FIXUP_VERBS, + .v.verbs = (const struct hda_verb[]) { + { 0x20, AC_VERB_SET_COEF_INDEX, 0x45 }, + { 0x20, AC_VERB_SET_PROC_COEF, 0x5089 }, + { 0x20, AC_VERB_SET_COEF_INDEX, 0x46 }, + { 0x20, AC_VERB_SET_PROC_COEF, 0x0004 }, + { 0x20, AC_VERB_SET_COEF_INDEX, 0x47 }, + { 0x20, AC_VERB_SET_PROC_COEF, 0xA47A }, + { 0x20, AC_VERB_SET_COEF_INDEX, 0x49 }, + { 0x20, AC_VERB_SET_PROC_COEF, 0x0049}, + { 0x20, AC_VERB_SET_COEF_INDEX, 0x4A }, + { 0x20, AC_VERB_SET_PROC_COEF, 0x201B }, + { 0x20, AC_VERB_SET_COEF_INDEX, 0x6B }, + { 0x20, AC_VERB_SET_PROC_COEF, 0x4278}, + { } + }, + .chained = true, + .chain_id = ALC294_FIXUP_ASUS_ALLY_SPEAKER + }, + [ALC294_FIXUP_ASUS_ALLY_SPEAKER] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc285_fixup_speaker2_to_dac1, + }, [ALC285_FIXUP_THINKPAD_X1_GEN7] = { .type = HDA_FIXUP_FUNC, .v.func = alc285_fixup_thinkpad_x1_gen7, @@ -9596,6 +9641,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x10ec, 0x1254, "Intel Reference board", ALC295_FIXUP_CHROME_BOOK), SND_PCI_QUIRK(0x10ec, 0x12cc, "Intel Reference board", ALC225_FIXUP_HEADSET_JACK), SND_PCI_QUIRK(0x10f7, 0x8338, "Panasonic CF-SZ6", ALC269_FIXUP_HEADSET_MODE), + SND_PCI_QUIRK(0x1043, 0x17F3, "ROG Ally RC71L_RC71L", ALC294_FIXUP_ASUS_ALLY), SND_PCI_QUIRK(0x144d, 0xc109, "Samsung Ativ book 9 (NP900X3G)", ALC269_FIXUP_INV_DMIC), SND_PCI_QUIRK(0x144d, 0xc169, "Samsung Notebook 9 Pen (NP930SBE-K01US)", ALC298_FIXUP_SAMSUNG_AMP), SND_PCI_QUIRK(0x144d, 0xc176, "Samsung Notebook 9 Pro (NP930MBE-K04US)", ALC298_FIXUP_SAMSUNG_AMP), -- 2.41.0