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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6674FC433F5 for ; Fri, 31 Dec 2021 17:14:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230438AbhLaROc (ORCPT ); Fri, 31 Dec 2021 12:14:32 -0500 Received: from smtp-out2.suse.de ([195.135.220.29]:41558 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229699AbhLaRO2 (ORCPT ); Fri, 31 Dec 2021 12:14:28 -0500 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id D84681F387; Fri, 31 Dec 2021 17:14:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1640970866; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lAlIbCwt8/dbQUNJUXK2rYMZ7mOjbl+Y5KB9vD1z6ZQ=; b=qD4TiDg7jcWE93GIP2EQvEziujvCF+a2Dge/unGYRLbovy/B15qziTKtgtckZ5TnauAbhq 5nX5XY0cTfvu3IFamI294jFxF5Mt9gsgFko8J+SjB+hxcsGFagS2k5ckWoaKNBtU6ZkCu0 TXCu2jB3NpnVMsSDg37tqktnjqB2+ww= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1640970866; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lAlIbCwt8/dbQUNJUXK2rYMZ7mOjbl+Y5KB9vD1z6ZQ=; b=92X9530XMMDZaCn8Sbhb6i2QpXt3wDERsrPpLuKh8Xfe9B1FfOrdZQxZhv3W89NYiVrU1S sFQL1K6iLvbmf3BQ== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 93AFCA3B81; Fri, 31 Dec 2021 17:14:26 +0000 (UTC) Date: Fri, 31 Dec 2021 18:14:26 +0100 Message-ID: From: Takashi Iwai To: Christian Lachner Cc: perex@perex.cz, tiwai@suse.com, kailang@realtek.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] ALSA: hda/realtek - Fix silent output on Gigabyte X570 Aorus Master after reboot from Windows In-Reply-To: <20211231102138.3226-2-gladiac@gmail.com> References: <20211231102138.3226-1-gladiac@gmail.com> <20211231102138.3226-2-gladiac@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 31 Dec 2021 11:21:38 +0100, Christian Lachner wrote: > > +static void alc1220_fixup_gb_x570(struct hda_codec *codec, > + const struct hda_fixup *fix, > + int action) > +{ > + static const hda_nid_t conn1[] = { 0x0c }; > + > + if (action != HDA_FIXUP_ACT_PRE_PROBE) > + return; > + > + alc_write_coef_idx(codec, 0x1a, 0x01c1); > + alc_write_coef_idx(codec, 0x1b, 0x0202); > + alc_write_coef_idx(codec, 0x43, 0x3005); > + alc_write_coef_idx(codec, 0x58, 0x8fd6); > + alc_write_coef_idx(codec, 0x5f, 0xa3c5); > + alc_write_coef_idx(codec, 0x6a, 0x0232); Those could be better with struct coef_fw table to be processed via alc_process_coef_fw(). Also the coef update needs to be performed not only at PRE_INIT but also at each resume, so this should be better done for action == HDA_FIXUP_ACT_INIT, I suppose. thanks, Takashi