From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796506743; b=WTtxi8AAwz2wdWxw5ydjvciwqPL3bUaS+i5tdSgBpufPUkzeyqEnGtjeE/gl8OJcJZDL 9a+ar69Oyjvzi2vbGxvgGM2v/fVLDbJ4BU2JvjLhlxM2xzcUDH1WXRMOLcgpvqfY+1imO utCuQ3d4CBLrvP+pCy8mxhd/Uww7Zigi1va22i66ifRxEM2zR6WF2dl2ln7rzbuFP8xHr VJPsp7XhXuTArV8PJY4cSyuGEBTGZtELSybHAdWHKLYTduTEHWKWIxjasXffLkds8n4uD pdEahPN4LYFGpIq7SsgzyxdwH3BhcPT63bE8cQ2ttIVm5YJ/TJDZEgpHff3v4GSkNrw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796506743; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=36sQ9eYKWHN22XPKtGEE3qK5EuTu5TwP02jSFEMwcOs=; b=eP3oLY4MMcA2yKRWd8xf6km3v5XwKe/Ch5qpMkZ+jcfvYAus7kWKoNI9w8dMEcId5n8M Jmv3+6maXBCMLdggzgeD2QF5qlEP8a9tIkA/hDbQHGh08jbjkVc0ARbDdm+nzQvs8SyvS IJYKnFv+E4QR+Goih6UVgLv7e4iotRzOEx2fSfYjfS3P+kdhZ/Om3d1wr5IZjgQzZkGHh /2mYFczkf0eBqTMQWnSqm/K3Vn2PHL2UGd3rFxtOXYc8qt8+GOdWwjxHT3G0ymsc97aLi DXk8v+MwNMLqWVeVVZWkI9KLQyRl5j20SaLs8x7Zg/oXUAcns6NFcAth5QTYrLqU1gA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=TEGyuSxM; arc=none smtp.remote-ip=209.85.216.41 Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9EA5E606A31F for ; Sat, 5 Dec 2026 21:39:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9EA5E606A31F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=TEGyuSxM Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-3b4021b572dso1230307a91.2 for ; Sat, 05 Dec 2026 13:39:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796506742; x=1797111542; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=36sQ9eYKWHN22XPKtGEE3qK5EuTu5TwP02jSFEMwcOs=; b=TEGyuSxMp1roOYMeQDPIubL3En+6Ow6k42PrE6bfX0zAPgWhUcJdu9Uz0Sx5eYOhBi ub9LpNf1+ebhKVcwUJF3vDjaWk79GOIWJo9Y7HZfJVWbQSNurcQEJhtlvHyOhw8OQyP/ DnoUBSvpAkQJPFCxSzgB7fZhzI5KtfFtjvuUJ4W4Fo1MtZMju1YpmE05M0Slu8X3Gt/w xCgW95LPW95KMu1QyYgIsCYaINrjS6+uG5Zpw31eN5pXPnmmmtrJ/3Lx4M++sbp6Opht VEf79uAitM3mzZmnP8I0BnRAf2EOkKZCRVlMfaGY3Kei4IsUmWheibQ5LbOoIAJoGLMM ZUkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796506742; x=1797111542; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=36sQ9eYKWHN22XPKtGEE3qK5EuTu5TwP02jSFEMwcOs=; b=Dt2/f6bKZVXKY0MvJUteLsK0qK2N4aLJRbxilkXfKmhZ0hzoStW3EUrn67XlatPVZ7 e7lCATBe1u80CjqVnm98yUvCjE1BDKMhs0qscdigIghDrSlXDQFFNMGB7PlcaITX3F5D 2Ert6z1KoRRv83Mq6cRplGQfkEuI4FoumfS1zNgTxVnk7nQrUuGguLISeptl/4b5Ri2J /0TCDPpfnrJIloqaUBMwUDZ/UsXPbxtYpQV/9uP/UDXzwR/MIuk/lAIZIXXlFrWwYsie pYB+0ljkQYBTtBkZuotDmvjBBoXL4RkPUP7NZvRZ98ye3atiiEh0ijT8/JqDtWEBep9r FVHA== X-Gm-Message-State: AB4q+uGG76aM/nf+1nzyA6aSrwd/vTWNfYwWLYHlQUJoIwUU2Mc6IQvQ y0icQR08uQrG47GobMiQ1hCZOdfISxdjkh+Yc/lurQq5rJNA2JuSXVDu X-Gm-Gg: AZFdTZdcv6TUg1Cw4L5dFV8wUUtOD3Nr4LwncJu/Se5jRpkXH/siW7ZHa8CFZpGIO0j KOYLflv8w5ztQAu4rQ7UOQjvhBkld79WU3vFXqatm+TsEbU+fJeFrReEzOVvIscHRrBqQNf/Nsb C43IyXh4o7hK9Pd2OIOq6n5EyV3yqCBx1TT+3FxRZ41EQxH1B1LBw6iCflYUOohcwVOpmndi5nY SX88TCZegWI75GPM+QyjYcAiq3aR48OosBtQ3wAdvwLrl/0h0MF/4zxJrtzSZYZYJJ9H7sDWxi3 nEIjdAsYFWXhWFuZ9CD2Y6Fw0Z0J0k4ZH1VY3sIQBQiyo8C5+OaPA6V6iFQkCHl9y3l2b2YkyFd lUnsm2xklSAtUSo2orwgf7Lgj4C3L6Q50XKGz1OtU+UEr6vEOzTEBbHA40csQK0DYAMXqqSGqbZ 5A3rskCKgBec/aCnfe3KSerAmWXYOcdoeZsVx/F3w/iiH1faHa0OVCRVNXLGg9ckHnH3AAKkFfG dtGs6erdU3vml/SSbfTYjI0tRFXnoc0qMbaR5mEihpiEXryeUT2OOwBKFCFVVUq37s6UKZxn7iZ 1iCrFabjQx2Cfk2Nua+tXPouIxT7z9p/1EdQMs7yBB6ByZHzxs6PTF0yRfZN1wd41J4hWCZ1Lqj YGVZVnFdb4/uZ0Bbhrzqny3Gmj0Aj X-Received: by 2002:a17:90b:3910:b0:3b4:a63:d56d with SMTP id 98e67ed59e1d1-3b5e0549476mr6201091a91.1.1796506741922; Sat, 05 Dec 2026 13:39:01 -0800 (PST) Received: from moneychan ([182.234.157.91]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b616502ab2sm2757375a91.0.2026.12.05.13.39.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 13:39:01 -0800 (PST) From: Hsinyi Chien To: tiwai@suse.com, perex@perex.cz Cc: linux-sound@vger.kernel.org, Hsinyi Chien Subject: [PATCH v2 2/2] ALSA: hda/realtek: Fix headphone jack pop on ASUS GU605C Date: Sun, 6 Dec 2026 05:38:40 +0800 Message-ID: <20261205213840.62481-3-suzu1dev@gmail.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261205213840.62481-1-suzu1dev@gmail.com> References: <20261205213840.62481-1-suzu1dev@gmail.com> X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On the ASUS ROG Zephyrus G16 GU605CX (ALC285, SSID 1043:1034), powered speakers on the 3.5 mm jack pop loudly when the codec runtime-suspends after playback stops. The same pop occurs at shutdown. The pop comes from the pin control write in alc225_shutup(): - With the "shutup = no" hint, the codec still enters D3 and the controller still runtime-suspends, and there is no pop. - With power_save_controller=N and the default shutup, the pop remains. - Replaying the alc225_shutup() verbs through hwdep with the codec kept in D0 pops, unless SET_PIN_WIDGET_CONTROL 0 on the headphone pin 0x21 is left out. Set no_shutup_pins for this SSID with a new fixup that chains to the existing one. The existing fixup is shared with the GU605M, H7606W and GA605W entries. Those models were not tested, so it stays unchanged. With both patches in a 7.3.4 build of snd-hda-codec-alc269, the speakers no longer pop on runtime suspend (0 of 2 runs, against 2 of 2 without the patches), and the hda trace shows no pin control write at suspend. Headphones on the same jack did not pop either (0 of 2 runs, patched module only). One shutdown with the patched module did not pop. The GU605CW has the same SSID and was not tested. An LLM coding assistant (Anthropic Claude) wrote the test scripts that narrowed this down, read the hda traces, and drafted this patch and changelog. All listening tests were done by me on the hardware. Link: https://github.com/omacom/omarchy/pull/10498 Signed-off-by: Hsinyi Chien --- sound/hda/codecs/realtek/alc269.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sound/hda/codecs/realtek/alc269.c b/sound/hda/codecs/realtek/alc269.c index 1bf5c78ac..5a9896677 100644 --- a/sound/hda/codecs/realtek/alc269.c +++ b/sound/hda/codecs/realtek/alc269.c @@ -4537,6 +4537,7 @@ enum { ALC285_FIXUP_ASUS_GA403U_I2C_SPEAKER2_TO_DAC1, ALC285_FIXUP_ASUS_GU605_SPI_2_HEADSET_MIC, ALC285_FIXUP_ASUS_GU605_SPI_SPEAKER2_TO_DAC1, + ALC285_FIXUP_ASUS_GU605C_NO_SHUTUP, ALC287_FIXUP_LENOVO_THKPAD_WH_ALC1318, ALC256_FIXUP_CHROME_BOOK, ALC245_FIXUP_CLEVO_NOISY_MIC, @@ -7265,6 +7266,12 @@ static const struct hda_fixup alc269_fixups[] = { { } }, }, + [ALC285_FIXUP_ASUS_GU605C_NO_SHUTUP] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc_fixup_no_shutup, + .chained = true, + .chain_id = ALC285_FIXUP_ASUS_GU605_SPI_SPEAKER2_TO_DAC1, + }, [ALC285_FIXUP_ASUS_GA403U_I2C_SPEAKER2_TO_DAC1] = { .type = HDA_FIXUP_FUNC, .v.func = alc285_fixup_speaker2_to_dac1, @@ -8180,7 +8187,7 @@ static const struct hda_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x103c, 0x8f95, "HP ZBook 8 G2a 16", ALC245_FIXUP_HP_TAS2781_I2C_MUTE_LED_INVERTED), SND_PCI_QUIRK(0x1043, 0x1024, "ASUS Zephyrus G14 2025", ALC285_FIXUP_ASUS_GA403U_HEADSET_MIC), SND_PCI_QUIRK(0x1043, 0x1032, "ASUS VivoBook X513EA", ALC256_FIXUP_ASUS_MIC_NO_PRESENCE), - SND_PCI_QUIRK(0x1043, 0x1034, "ASUS GU605C", ALC285_FIXUP_ASUS_GU605_SPI_SPEAKER2_TO_DAC1), + SND_PCI_QUIRK(0x1043, 0x1034, "ASUS GU605C", ALC285_FIXUP_ASUS_GU605C_NO_SHUTUP), SND_PCI_QUIRK(0x103c, 0x900c, "HP ZBook Ultra G1a 14", ALC285_FIXUP_HP_GPIO_LED), SND_PCI_QUIRK(0x1043, 0x103e, "ASUS X540SA", ALC256_FIXUP_ASUS_MIC), SND_PCI_QUIRK(0x1043, 0x103f, "ASUS TX300", ALC282_FIXUP_ASUS_TX300), -- 2.56.1