Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795018876; b=qcBPZSlVKNyxRiJa9DIG70mqmNI5qShj8stXXRC2K6Dt/esKcvOT4aiM4MJHMH6UtSQ2 UgPuLcS2/Cc4073r2qlj2fiMF4gy9+T6EoVOrRqYJHF3rqF1BrDtEc91vSbkgJPQhF0q2 MHATdwQ1fvz5ogYNsybnxmxMMCy823AfijjpM6py0yebz4qttZuSEUQB+9XPmQqc9CTDR erP4poB3kJ655M39Ui7KlEYb1JSQtgGOPKjOJ6lLkXfE4TTcwN5qrB4fMqQwMyHDkCZM4 vsn2I8g8HA6vfWQfRnWvrhXUIJqed1nFPrWFWP4AndbQJ/qyaWLLhKx1H5oGdNk0cLQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795018876; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=RmcIDazIhPxwpxyQed7Nf0+2sYNpyGRHadjFtkGsLcE=; b=ijlcoH8BIsVqfZFODuGtMbUKpkt/vF5zPFKn9XKXxqzUldIVqT9HaR7hNjHeiIcD44ow jq0lDzHR478KfWA83V+R78IWdrzT+h1fs7rVNaMofGvdGf9CCKI4R/zn1i+iBTh18km8f gwe+oTZ6i74G7RzB6WcxF0hWVh9kSmx+Rwj+WwjB/bfF8Oe1adoCEfSgMmzBUqkvRyFUL 14JThabRwHOnDlnWosmz92bqdt4YazkFzW706qGutJocoXx51NtfbxSLBXodZxQj/IHuc FFoU5LwSw30pq3e4hpTMCUys7dZ8i+f28p3eHPB7lAX2DNDd5DpRFSECqV4jkfTnT1A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=a69fHGH3; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DAD71606A32F; Wed, 18 Nov 2026 16:21:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=a69fHGH3 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06B851F000C4; Wed, 18 Nov 2026 16:21:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795018876; bh=RmcIDazIhPxwpxyQed7Nf0+2sYNpyGRHadjFtkGsLcE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=a69fHGH3rxMIA6Y1reDrjRKRoRXdyAD7zI2xjs+dX8jz1UfdjyGquOoqiGMdTv5QW Kw6zDcF6JW+PiYtYmlltrlyUAVR7qCZ9JVf5X3LCHnKmcoMpLVoP9qS2YDrdp5fkh/ AcgtsLYkJh3foZIUGt8ptaCxv3JvrC+Cg5cFF59U= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Scott Gauche , Takashi Iwai , Sasha Levin Subject: [PATCH 7.3 1355/2651] ALSA: hda/realtek: Fix audio after Windows reboot on ASUS Q423SA Date: Wed, 18 Nov 2026 15:43:15 +0100 Message-ID: <20261118150336.808311065@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150247.972732815@linuxfoundation.org> References: <20261118150247.972732815@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Scott Gauche [ Upstream commit 8acd6469f42784f38872ad83b14c41152d986b63 ] The ASUS Vivobook S 14 Q423SA-U5512 (DMI family S5406SA) with the ALC294 codec has working analog audio when booted directly after a full shutdown. After a warm reboot from Windows 11, audio works briefly during Linux startup, then both the internal speakers and headphones become silent. PCM playback continues without errors. Coefficient 0x1b is 0x4e4b on a direct cold boot, but 0x4a4b after the Windows warm reboot. Restoring bit 10 changes it back to 0x4e4b and immediately enables both analog outputs. Speaker playback, headphone playback, jack switching, cold boot, and suspend/resume were tested successfully. The same 0x4a4b state and immediate recovery with 0x4e4b were independently confirmed on another S5406SA with subsystem 1043:10c4. The same coefficient write is already used by ALC294_FIXUP_ASUS_COEF_1B for the ASUS UX431DA. That fixup cannot be reused here because it chains to ALC289_FIXUP_ASUS_GA401 and applies unrelated DAC routing and microphone pin configuration. Add a model-specific fixup for subsystem 1043:10c4 and chain it to the existing ALC2XX_FIXUP_HEADSET_MIC fixup instead. Link: https://github.com/thesofproject/sof/issues/11051 Fixes: f2d08f3651fb ("ALSA: hda/realtek: Fix headset mic on ASUS Vivobook S14 S5406SA") Signed-off-by: Scott Gauche Link: https://patch.msgid.link/20261005154017.1164657-1-scott-dev@scottgauche.com Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin --- sound/hda/codecs/realtek/alc269.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/sound/hda/codecs/realtek/alc269.c b/sound/hda/codecs/realtek/alc269.c index 49c4d01759b06..8d8a0b85d5618 100644 --- a/sound/hda/codecs/realtek/alc269.c +++ b/sound/hda/codecs/realtek/alc269.c @@ -4214,6 +4214,7 @@ enum { ALC294_FIXUP_ASUS_I2C_HEADSET_MIC, ALC294_FIXUP_ASUS_SPI_HEADSET_MIC, ALC294_FIXUP_ASUS_SPK, + ALC294_FIXUP_ASUS_Q423SA, ALC293_FIXUP_SYSTEM76_MIC_NO_PRESENCE, ALC285_FIXUP_LENOVO_PC_BEEP_IN_NOISE, ALC255_FIXUP_ACER_HEADSET_MIC, @@ -5742,6 +5743,17 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC294_FIXUP_ASUS_HEADSET_MIC }, + [ALC294_FIXUP_ASUS_Q423SA] = { + .type = HDA_FIXUP_VERBS, + .v.verbs = (const struct hda_verb[]) { + /* Restore bit 10 lost after reboot from Windows */ + { 0x20, AC_VERB_SET_COEF_INDEX, 0x1b }, + { 0x20, AC_VERB_SET_PROC_COEF, 0x4e4b }, + { } + }, + .chained = true, + .chain_id = ALC2XX_FIXUP_HEADSET_MIC, + }, [ALC295_FIXUP_CHROME_BOOK] = { .type = HDA_FIXUP_FUNC, .v.func = alc295_fixup_chromebook, @@ -7899,7 +7911,7 @@ static const struct hda_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x1043, 0x10a1, "ASUS UX391UA", ALC294_FIXUP_ASUS_SPK), SND_PCI_QUIRK(0x1043, 0x10a4, "ASUS TP3407SA", ALC287_FIXUP_TAS2781_I2C), SND_PCI_QUIRK(0x1043, 0x10c0, "ASUS X540SA", ALC256_FIXUP_ASUS_MIC), - SND_PCI_QUIRK(0x1043, 0x10c4, "ASUS Vivobook S14 S5406SA", ALC2XX_FIXUP_HEADSET_MIC), + SND_PCI_QUIRK(0x1043, 0x10c4, "ASUS S5406SA/Q423SA", ALC294_FIXUP_ASUS_Q423SA), SND_PCI_QUIRK(0x1043, 0x10d0, "ASUS X540LA/X540LJ", ALC255_FIXUP_ASUS_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1043, 0x10d3, "ASUS K6500ZC", ALC294_FIXUP_ASUS_SPK), SND_PCI_QUIRK(0x1043, 0x1154, "ASUS TP3607SH", ALC287_FIXUP_TAS2781_I2C), -- 2.53.0