Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1712206pxb; Wed, 9 Feb 2022 02:53:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgVSPUmFiEFyPHG3feFpt18JzuyGT63dmrDR8hoy1oH4vkPoZnEiebtgwrjN3B+CBInZq6 X-Received: by 2002:a65:46c9:: with SMTP id n9mr1423596pgr.88.1644403994872; Wed, 09 Feb 2022 02:53:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644403994; cv=none; d=google.com; s=arc-20160816; b=hE7IbuO76fV7+FAUsPpDj5YQArewfCrFrbDrKUN6dm6JWJxnDepgXxwoefs52qb4z3 +CrbIY4sQxYNuc3KDPNPL0Ise7NYlacR4KDsNn75KZUPuS0Ahf6hCEJOHw0fJArIC2fU vG0cNHU/pSw4NE1BaruzfTh06+diND5ulXJQGFQ2ZIZUPOIcB/mdSTYxDssA+AdFTHaG Y2P+hkyQlMEDpyi4s+O9i1VyV7Hol8zvzraf0ieXUShKUXWKPwrGlOEbZAqJ77OK4uj/ zaGsk2ctLniLsWxzsLhdOLjwXHSp2l6j7gMaLI0IvyZqpLV4ffvHuawZ9PmGfKU3T2O8 37Fw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bKFn9/J+Apmt3xneCzbBT8uF742nZ71uthZnGgoB/kc=; b=CRvpiwisv8x49hCzmIn0H8E3l5MmCzzVgNhLoCp+XTydAEibgMMEgkpNAjRQpws0aQ pr8Os0M5NK0UkZS19kSMcbrZupHx1+CIA7CcE6NAB+focp/szUivG2hdRpjPEJejhAPY JV++UQXp9r2QWCVsu+xOVcmM64HwZHfVLtECV8kTUGVn8/vI4paIeX/anHvIGRldGXF2 jYC0nSbyPoWZX+bIfG+tmhuMlZduIHErxl550bf/168mE75V5kLvuLXU1P4o/9cezgXC +9KKCV3PcX27vY4y9aPHIV5KWg9S4e5AFmMvyE4Zu+4JErdEsk6xcWkxWCcW5bgrZ4g4 y2ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AImTZAX+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x12si15324026plv.336.2022.02.09.02.53.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 02:53:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AImTZAX+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0C6F8E0BB09E; Wed, 9 Feb 2022 01:28:13 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356927AbiBGL0Y (ORCPT + 99 others); Mon, 7 Feb 2022 06:26:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382595AbiBGLTw (ORCPT ); Mon, 7 Feb 2022 06:19:52 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1559DC043181; Mon, 7 Feb 2022 03:19:52 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C3D66B80EC3; Mon, 7 Feb 2022 11:19:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1235CC004E1; Mon, 7 Feb 2022 11:19:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644232789; bh=uYIJqESmpv25qfD5uBtKpSq9YsVYTOcUmGHh51eYdfs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AImTZAX+twWh1dVdOGYhkml+SMdtWDWszOT0E7ZUrTAdAHKqWFC3STWRY8KS+bjqa hZ0rX3RL+KXq6oFX1A8XvSY34S2irul/Rj4s4kj1XyHCRK1b6FOlXlUgltuTdCB34C XyP5zhQDYOMAVJy7osUde6mRowjetmUMSfueEQCs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christian Lachner , Takashi Iwai Subject: [PATCH 5.4 08/44] ALSA: hda/realtek: Fix silent output on Gigabyte X570S Aorus Master (newer chipset) Date: Mon, 7 Feb 2022 12:06:24 +0100 Message-Id: <20220207103753.427438066@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220207103753.155627314@linuxfoundation.org> References: <20220207103753.155627314@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Christian Lachner commit 41a8601302ecbe704ac970552c33dc942300fc37 upstream. Newer versions of the X570 Master come with a newer revision of the mainboard chipset - the X570S. These boards have the same ALC1220 codec but seem to initialize the codec with a different parameter in Coef 0x7 which causes the output audio to be very low. We therefore write a known-good value to Coef 0x7 to fix that. As the value is the exact same as on the other X570(non-S) boards the same quirk-function can be shared between both generations. This commit adds the Gigabyte X570S Aorus Master to the list of boards using the ALC1220_FIXUP_GB_X570 quirk. This fixes both, the silent output and the no-audio after reboot from windows problems. This work has been tested by the folks over at the level1techs forum here: https://forum.level1techs.com/t/has-anybody-gotten-audio-working-in-linux-on-aorus-x570-master/154072 Signed-off-by: Christian Lachner Cc: Link: https://lore.kernel.org/r/20220129113243.93068-3-gladiac@gmail.com Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 2 ++ 1 file changed, 2 insertions(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -2122,6 +2122,7 @@ static void alc1220_fixup_gb_x570(struct { static const hda_nid_t conn1[] = { 0x0c }; static const struct coef_fw gb_x570_coefs[] = { + WRITE_COEF(0x07, 0x03c0), WRITE_COEF(0x1a, 0x01c1), WRITE_COEF(0x1b, 0x0202), WRITE_COEF(0x43, 0x3005), @@ -2549,6 +2550,7 @@ static const struct snd_pci_quirk alc882 SND_PCI_QUIRK(0x1458, 0xa0b8, "Gigabyte AZ370-Gaming", ALC1220_FIXUP_GB_DUAL_CODECS), SND_PCI_QUIRK(0x1458, 0xa0cd, "Gigabyte X570 Aorus Master", ALC1220_FIXUP_GB_X570), SND_PCI_QUIRK(0x1458, 0xa0ce, "Gigabyte X570 Aorus Xtreme", ALC1220_FIXUP_CLEVO_P950), + SND_PCI_QUIRK(0x1458, 0xa0d5, "Gigabyte X570S Aorus Master", ALC1220_FIXUP_GB_X570), SND_PCI_QUIRK(0x1462, 0x11f7, "MSI-GE63", ALC1220_FIXUP_CLEVO_P950), SND_PCI_QUIRK(0x1462, 0x1228, "MSI-GP63", ALC1220_FIXUP_CLEVO_P950), SND_PCI_QUIRK(0x1462, 0x1229, "MSI-GP73", ALC1220_FIXUP_CLEVO_P950),