Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1600503pxb; Tue, 8 Feb 2022 23:41:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxhyXT6/USXtJiOZgOS43h/dtBm5HmMG3M0s8HtbYF6cImZ0zIVVORkSpwxfv3MPKt2Xx9N X-Received: by 2002:a05:6a00:178d:: with SMTP id s13mr913025pfg.47.1644392511370; Tue, 08 Feb 2022 23:41:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644392511; cv=none; d=google.com; s=arc-20160816; b=cbB9j/DzOI6lLPVm2quB1/W1RQIZ5zHy5y72vgLoknFz6xpBrnnodi15cwyANDPtDN WF7uR7BB8sX/aQSRXkaMKVyv3QHXSzdKzg8l5ygYbieWcio1zRyvTXTR+pi83rkkGTrr +pVzlaL/4+C43ZX1goCeeCfUBvNy/BJ3VxArf5tTD1Nk8aCr9TnjNaaYDxfYI+Xbffez TLHfnkf8VAoc1TQeR5g8RyNlSA1I0bzGFLttkYWfQKivoUNuJGEMMgIjqsqEFxwZ4Lfw 32pXVzKQ703720+Zs4xBlPr1YlAq9ITM0LQGv902z9/w+qQIABAW+v1jn1AlQu0Y5QFF smqA== 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=Ct3SNcZtbnyP1+Z8Lhxhyn0SdWa8GXN97LTSdSab1jE=; b=FiwEH/CxQw2vXzutID8OyXni6UxKEbURZ6XaJWfCeDA2VLeZc5cKOpt5NUYWbEXFYU KRfUosRJv/BJDYAtPYiE/jbIEBU/B1+0zzH0MTXUpVBg/nsfWhjely7/WkeZERT/Hiy5 AHGMVIrcOPISuif6IaBlvP23NhhEbGJYyWczJGT1v9Z/hUYoawfq+nkyUKTA5RkAU9sn +wyX22/cAR6ZPH7tt8rw8xe0yJN+QuqvCcMAYBA3lef8pVpUWmAlclTz26iA+JUOnTw1 UsxlSzj+EUHnBsQPZ/Ayppz9elKGlDuwYgilbalbLvaadoRdqCqtIXIMJys1woQVOYLg QG+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mRq1Ff+b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q11si15650875pfu.131.2022.02.08.23.41.38; Tue, 08 Feb 2022 23:41:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mRq1Ff+b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388227AbiBGLnO (ORCPT + 99 others); Mon, 7 Feb 2022 06:43:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385559AbiBGLb6 (ORCPT ); Mon, 7 Feb 2022 06:31:58 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 569A7C02B5DA; Mon, 7 Feb 2022 03:30:48 -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 11D21B80EBD; Mon, 7 Feb 2022 11:30:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5107CC004E1; Mon, 7 Feb 2022 11:30:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644233445; bh=rZvJ4ZyZHDyPNU3S/M+WkdB/RT1ucA3r+WNcdZmHxi4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mRq1Ff+bSvFfQX7p1IyEwGGiMsjN3Pb07Dg1J9KHv/qjRk9TQ/jywyrV/1sUqfzo7 iyY9U1GBwcClEa+9kIH/pukixK1Ckg1aRMTQC0nXqTtfXRrPdRiBHHEj0KRZPkH7Xl Xl/ouDELwrb21X4aoEW3Z6y5byzI44OpEQESrBDA= 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.16 015/126] ALSA: hda/realtek: Fix silent output on Gigabyte X570S Aorus Master (newer chipset) Date: Mon, 7 Feb 2022 12:05:46 +0100 Message-Id: <20220207103804.589176466@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220207103804.053675072@linuxfoundation.org> References: <20220207103804.053675072@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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 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 @@ -2159,6 +2159,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), @@ -2586,6 +2587,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),