From patchwork Thu Aug 25 22:01:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Luke D. Jones" X-Patchwork-Id: 12955281 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 84989ECAAA3 for ; Thu, 25 Aug 2022 22:02:50 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A197315E5; Fri, 26 Aug 2022 00:01:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A197315E5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1661464967; bh=yTMICShaKItY0foPttjRMpwp5850qj1HP5BXSV+qv/E=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Mz1v4wOcC/n0xvZM+jXTq6/hBUCSDOUtfSeXQtUBgcSfGp44IoT+PR0ijWlzrvPeG klnCSAAK9CWtwf+At1HJAzwemN677gZ/pPln9BEqTt36gvekVKJYhD1XReNrXoRJfp lDiWblL2TdtFz+SmXc1CeYZF5Ig38reK/b8+QGp8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 3CD71F8025A; Fri, 26 Aug 2022 00:01:57 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A4DB9F80271; Fri, 26 Aug 2022 00:01:55 +0200 (CEST) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 49B2FF800BD for ; Fri, 26 Aug 2022 00:01:44 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 49B2FF800BD Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=ljones.dev header.i=@ljones.dev header.b="hk4VJ+Ye"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="lnk6COYF" Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E221E5C0112; Thu, 25 Aug 2022 18:01:42 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 25 Aug 2022 18:01:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ljones.dev; h=cc :cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm2; t=1661464902; x=1661551302; bh=5f8892CWhzB/Oa681ruXsO/BK kD7Nk+PX7cFrRgrLVc=; b=hk4VJ+YexUBwOHzG4aA16vzBzPvU+wREaGuKhODwa 7+BG/ynaoOpykU5tSOtwllnZ9wE/BgveCAdU3QXs3TtXMpfiEbAPtVtZ0CSB+pgA zTvMto2fVFnrZ5Fb8WUUrP/EITsH1zmV9oYx2jwNq1bvZ9BKLTtInyFsz2X/dWzi JuCO33Ml7aJJgPdrOTkriR3FMsh4lo4zBTN6y1syw+XKSZf/YNO7SYOj4tO2n88p KGWU3J2DksqHWo4/wUWICRs1TK5FRrvTORkoCUIM9ZkkWSjhb9dZxMYVPClKJAZ0 Umk19Iobl3khkShXFtXoJ16L8kfPhbcZOsDatxsFb0vlw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1661464902; x=1661551302; bh=5f8892CWhzB/Oa681ruXsO/BKkD7Nk+PX7c FrRgrLVc=; b=lnk6COYF3alDsMqezini1tHb933FgoAt8nf1R5cG38IIfuAEDPD n2frG1KYwwXNgndUiVk8Clpzc262Mqzr7mRI7qtthrXO+rqBatTVOK77oVDxLZVX ybeTpqnBTMXou+2v/SVBOZsu2o12H3J0HKc6o4yaNmwYng0KpR8mM1h09vojIEbM tzhQ4qMvYVwCPl+LdX9u81GBN0tY1EQbiSU3ejlmzUYLOJmH2bOpsOO+2CVSIHVG UGTsVxMz/oCdKCCcTJn1tyjqs4b5jEBCNmF3496HAhsNPi/gn4/DKlWXm9nBvVXG klMgNv8TgcgC32S4QMTqI3FdG7aOD1VjSSw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdejgedgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpedfnfhukhgvucffrdculfhonhgvshdfuceolhhukhgvsehljhho nhgvshdruggvvheqnecuggftrfgrthhtvghrnhepgfdujedthfduudekffefkeeiffdttd dvhfegudduueffuefhfefggeefteevvdegnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomheplhhukhgvsehljhhonhgvshdruggvvh X-ME-Proxy: Feedback-ID: i5ec1447f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 25 Aug 2022 18:01:38 -0400 (EDT) From: "Luke D. Jones" To: tiwai@suse.com Subject: [PATCH 1/2] sound: realtek: Add pincfg for ASUS G533Z Date: Fri, 26 Aug 2022 10:01:29 +1200 Message-Id: <20220825220130.331371-1-luke@ljones.dev> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Cc: "Luke D. Jones" , alsa-devel@alsa-project.org, kai.heng.feng@canonical.com, andy.chi@canonical.com, linux-kernel@vger.kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Fixes up the pincfg for ASUS ROG Strix G15 (G533Z) laptop. Signed-off-by: Luke D. Jones --- sound/pci/hda/patch_realtek.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index fd630d62b5a0..e9cad49ee2a5 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5828,7 +5828,7 @@ static void alc_fixup_headset_mode_alc255_no_hp_mic(struct hda_codec *codec, struct alc_spec *spec = codec->spec; spec->parse_flags |= HDA_PINCFG_HEADSET_MIC; alc255_set_default_jack_type(codec); - } + } else alc_fixup_headset_mode(codec, fix, action); } @@ -7022,6 +7022,7 @@ enum { ALC294_FIXUP_ASUS_GX502_HP, ALC294_FIXUP_ASUS_GX502_PINS, ALC294_FIXUP_ASUS_GX502_VERBS, + ALC285_FIXUP_ASUS_G533Z_PINS, ALC294_FIXUP_ASUS_GU502_HP, ALC294_FIXUP_ASUS_GU502_PINS, ALC294_FIXUP_ASUS_GU502_VERBS, @@ -8363,6 +8364,17 @@ static const struct hda_fixup alc269_fixups[] = { .type = HDA_FIXUP_FUNC, .v.func = alc294_fixup_gu502_hp, }, + [ALC285_FIXUP_ASUS_G533Z_PINS] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x14, 0x90170120 }, + { 0x19, 0x03A11050 }, /* front HP mic */ + { 0x1B, 0x03A11C30 }, /* rear external mic */ + { 0x21, 0x03211420 }, /* front HP out */ + { } + }, + .chained = false, + }, [ALC294_FIXUP_ASUS_COEF_1B] = { .type = HDA_FIXUP_VERBS, .v.verbs = (const struct hda_verb[]) { @@ -9294,6 +9306,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1043, 0x17d1, "ASUS UX431FL", ALC294_FIXUP_ASUS_DUAL_SPK), SND_PCI_QUIRK(0x1043, 0x1662, "ASUS GV301QH", ALC294_FIXUP_ASUS_DUAL_SPK), SND_PCI_QUIRK(0x1043, 0x1881, "ASUS Zephyrus S/M", ALC294_FIXUP_ASUS_GX502_PINS), + SND_PCI_QUIRK(0x1043, 0x1c92, "ASUS ROG Strix G15", ALC285_FIXUP_ASUS_G533Z_PINS), SND_PCI_QUIRK(0x1043, 0x18b1, "Asus MJ401TA", ALC256_FIXUP_ASUS_HEADSET_MIC), SND_PCI_QUIRK(0x1043, 0x18f1, "Asus FX505DT", ALC256_FIXUP_ASUS_HEADSET_MIC), SND_PCI_QUIRK(0x1043, 0x194e, "ASUS UX563FD", ALC294_FIXUP_ASUS_HPE), From patchwork Thu Aug 25 22:01:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Luke D. Jones" X-Patchwork-Id: 12955282 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 61CF7ECAAA3 for ; Thu, 25 Aug 2022 22:03:18 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A45B41635; Fri, 26 Aug 2022 00:02:26 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A45B41635 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1661464996; bh=rz7VQqcc1mIQQDSGDM9eF3sfzer9VXiScOM0e2s2f6M=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=fL2Okf5g5VzFrgA0E82VfwwGDSCDW0imzdfeL/Y52V1IiRI+DCT2P33Gjds3z6ubO fA44yCEOLyuocPfiBHctKLCZ4GBmY3LLKMECZtRZsdx2FAdlALALmlkeE1Y0fwc9Gq pi8DLQT5pl//0WMp52VROlzrDRs72ooUl4+oIRnI= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 5D21FF8027C; Fri, 26 Aug 2022 00:01:59 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3A4CAF8027C; Fri, 26 Aug 2022 00:01:57 +0200 (CEST) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 422D5F8014B for ; Fri, 26 Aug 2022 00:01:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 422D5F8014B Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=ljones.dev header.i=@ljones.dev header.b="cM9dfZEj"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="bhHbC78o" Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C42825C0056; Thu, 25 Aug 2022 18:01:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 25 Aug 2022 18:01:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ljones.dev; h=cc :cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1661464906; x=1661551306; bh=vx IQYb7384ikUOFL0YYanSZM4BK3Ykys553Rk0TizvY=; b=cM9dfZEj0l2R40gIJx 046+jU5S1BdBAc/m3p88ls88V1AI+CEgv6RjA0qTMsqRx2t88fQmm0MGE+wIRmkO BuhkqEdw4vjj+4YNfaKpCBAL4/pC8pb7Ax9GMjqlrCyr5eibp/cyF1tgea/QlOqq BU+qTMHTEZ/tpObSdlVtRGpXl3MzLW30/G4OnU+ug7EXC5/pum698QdIxcdkPwUy HkntoOqsVl6NViNV6VPLY6rZIm7FjYeR1P0aEK1m3aXUQwUKG/+mf6bsfBapQM1S XbSMEpPHVR/cM2Mw3DQYmyjIeM53fgwHMbP02KVheQdlK2W+/xSMYfTq38Or8x8E 0KMw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1661464906; x=1661551306; bh=vxIQYb7384ikU OFL0YYanSZM4BK3Ykys553Rk0TizvY=; b=bhHbC78oXHH+PMzfOi+fCKxUuR1CR KpSjFgc0k5EUfAsmmZX+PE7DWw02WumP//HhoJWGXFsaubARF0vP78khxHOXhn+Z a10FVCdivual/4OjN+wqZx7YdaxzXyDhPTH/PHPgEZIvrO1u/KFa5vnmGTP8YwrK Ale4mvrVCPUNXAJUCLjJfsp3yCwl4MJHqz9t/k6Kh+WZ8wTV5OMJ8WMuR5+6wXQZ B6zlJUI8e0YY4EOXlzP+LGzx9rVVpDVBplsfzITuiFfPzg0fAjcxAYptIib4PVlc gIbPOHibYJ2H/Aj0eXMMpMMFPN182k//VwAIFaAODy2yjaM4NRPtKA7Qg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdejgedgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtke ertdertddtnecuhfhrohhmpedfnfhukhgvucffrdculfhonhgvshdfuceolhhukhgvsehl jhhonhgvshdruggvvheqnecuggftrfgrthhtvghrnhepgfetfedugfetudeuheetjefhue fggfelleetvdevtefhueeujeefvdegleevhefgnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomheplhhukhgvsehljhhonhgvshdruggvvh X-ME-Proxy: Feedback-ID: i5ec1447f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 25 Aug 2022 18:01:43 -0400 (EDT) From: "Luke D. Jones" To: tiwai@suse.com Subject: [PATCH 2/2] sound: realtek: Add pincfg for ASUS G513 Date: Fri, 26 Aug 2022 10:01:30 +1200 Message-Id: <20220825220130.331371-2-luke@ljones.dev> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220825220130.331371-1-luke@ljones.dev> References: <20220825220130.331371-1-luke@ljones.dev> MIME-Version: 1.0 Cc: "Luke D. Jones" , alsa-devel@alsa-project.org, kai.heng.feng@canonical.com, andy.chi@canonical.com, linux-kernel@vger.kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Fixes up the pincfg for ASUS ROG Strix G513 Signed-off-by: Luke D. Jones --- sound/pci/hda/patch_realtek.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index e9cad49ee2a5..abf3fb50692a 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -7023,6 +7023,7 @@ enum { ALC294_FIXUP_ASUS_GX502_PINS, ALC294_FIXUP_ASUS_GX502_VERBS, ALC285_FIXUP_ASUS_G533Z_PINS, + ALC294_FIXUP_ASUS_G513_PINS, ALC294_FIXUP_ASUS_GU502_HP, ALC294_FIXUP_ASUS_GU502_PINS, ALC294_FIXUP_ASUS_GU502_VERBS, @@ -8308,6 +8309,16 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC294_FIXUP_ASUS_HEADSET_MIC }, + [ALC294_FIXUP_ASUS_G513_PINS] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x19, 0x03a11050 }, /* front HP mic */ + { 0x1a, 0x03a11c30 }, /* rear external mic */ + { 0x21, 0x03211420 }, /* front HP out */ + { } + }, + .chained = false + }, [ALC294_FIXUP_ASUS_GX502_PINS] = { .type = HDA_FIXUP_PINS, .v.pins = (const struct hda_pintbl[]) { @@ -9307,6 +9318,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1043, 0x1662, "ASUS GV301QH", ALC294_FIXUP_ASUS_DUAL_SPK), SND_PCI_QUIRK(0x1043, 0x1881, "ASUS Zephyrus S/M", ALC294_FIXUP_ASUS_GX502_PINS), SND_PCI_QUIRK(0x1043, 0x1c92, "ASUS ROG Strix G15", ALC285_FIXUP_ASUS_G533Z_PINS), + SND_PCI_QUIRK(0x1043, 0x1e5e, "ASUS ROG Strix G513", ALC294_FIXUP_ASUS_G513_PINS), SND_PCI_QUIRK(0x1043, 0x18b1, "Asus MJ401TA", ALC256_FIXUP_ASUS_HEADSET_MIC), SND_PCI_QUIRK(0x1043, 0x18f1, "Asus FX505DT", ALC256_FIXUP_ASUS_HEADSET_MIC), SND_PCI_QUIRK(0x1043, 0x194e, "ASUS UX563FD", ALC294_FIXUP_ASUS_HPE),