From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.173 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796506731; b=T3PNzUqDveUgilEBWrhK/qdKEQpSVPue5rtTdaqP4p8trEtZqSOMDTz84oJQOrjzPon3 uFKJzTsgDQWm96xYYPmNJZgxg00fFOPmtrbCB9Ma1BycNK3UyGsB/3y1wSEYA3cq0k1Z9 r0mO/EhvGFumaewNfkc9QtMeyqDEEXB0RL1cs2UTi54KmCN5MUf9zgQ8A+BFB4VFeh9xD Qjy3ZfSHwFxmJ6TqocWdz1EYyiB+IOzFpeMgq1Iqc3E5DLOmRodDszQNpcserGiVCMwqC D/ngWVBjOHKxYkBATEONoyaNzumI3vqfgrJC4dz+wuvktI2zlWDsT9ZN7GoaPFGZxBA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796506731; 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:MIME-Version:Content-Transfer-Encoding; bh=f1jurlmuALhtAwxo0Hf4IubVrhCtgy3/n3fHyTfFSSo=; b=HD7XRnjTq8gXoSw+5R1TBK6UlXWZUc4kja2XYvj0VF1fopgfIDjMMQpI+eDeEWNuRdOn /MJwUOJ9I/oXcmNeCz5140iV0H8bKZKnyv0RLqj/h0FXoiNjOGfeIEB9+3h+WOb8WP5v0 u6OO5aLNUAyE6fL0vZPATldSN3Zxresn8TbIWqUip4zFeXnveBETZY8bpqSIdh0n8oroA m1WSG8zQ+t+g81CR9eSfFzTOcSDJ/NiaTA8Alasfl1rHeCVN+yxlStolq5RWHn8CwfAWO M+b2PzKM7SgE/0zy8YQW0ol3UuqUIChGqXGZtUH7D8gK+z3Rp08m33X7uTY9ifxDUZQ== 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=QDf6s2YK; arc=none smtp.remote-ip=209.85.210.173 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (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 E5D4C606A31F for ; Sat, 5 Dec 2026 21:38:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E5D4C606A31F 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=QDf6s2YK Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-8a4c72951b8so1429047b3a.3 for ; Sat, 05 Dec 2026 13:38:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796506730; x=1797111530; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=f1jurlmuALhtAwxo0Hf4IubVrhCtgy3/n3fHyTfFSSo=; b=QDf6s2YKsSP/RlCNX/Pjv0JRh/7RIuGGl9JMBpeFMzTyZGTLwipeOhG+2OUHVdJytE 3kJFIkp5upopwnTjyhPdFmQ3EFdJ2iA7Xeugul3mGab2qaBvxJ6yhb3kFdqDaxsR3KLB XnwyiRH+DoiiEcuO5c5zqqzev/i2gC6cpAKs1ZoZ50wDNjJ+ou8BexalxUW+Jyp8afTb 4Zfi4X3rCVA4JUH+i0dUoZExUqkGzv31W53+2diFzFJ6noHYOq9uzna5zXn6TLd3DWmS l0ErDYB25vUO6gXzcujSp1HIlaRfNRGt8QaaP+I8BKJ1z8IJ8sxH8tAdldN24LV14OeH /WpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796506730; x=1797111530; h=content-transfer-encoding:mime-version: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=f1jurlmuALhtAwxo0Hf4IubVrhCtgy3/n3fHyTfFSSo=; b=WVCWTZFVoTL5kZsMlesgvc59ssAbg1OXqeEXQB3Uph/OcUyMPtYj8HdvQmLMmfNlW3 21poOKoPewFB4hfRfmdZhNy3rmgs73adn/S3Mpz4eCEmUXEf68H0v9z+gyBzS/kUT2Tr yN3lQ2IzNtjspXnSU1dudeXXK9oUg8cPQtLkHw0KWhSo4NrR9Co5IINRAvIKJfFS5WmP iG5uosN8KSgeoHdEEgyLq3FLE6iuw2X0z9OpbOTtJdwFfCpCdzq0RcKPEbeLvr/NrF1A fBeIOT2Am6tosORWRJ9s/KYuPLB7UdVMbairdlFHaRibqhVkFWRv86Wxnh8m8QBqOMn/ 4YSw== X-Gm-Message-State: AB4q+uFANtrv7Jv+RuEbWqoWgM13k7CkHvz8NxyAiRm8p7DWuTKbJJ2i u4mXM1QIxXmyaEbHJYb/TsEJafMDvWQGWOatW+7bJUxH0OoB4YSzdFTE X-Gm-Gg: AZFdTZe4mvpSvWVJ4gIwlo6/yqXLsirZkUyqXiEkdCuzyFOZk4/msZS4veLBdDOgmGM dbI7hHXt0QZ1Jb0wUpWv6nHb+JJuxq/6lxVvNaZNxi/lukpvnzJGZPFlQkvACht+Nh23rthVErE pgQ7xnbqCqFlxwHyHqRDTFHYm/RBo3Sjan7gwwnq9DesQqkJ7O2VO2IkEKvu39EDR/ck94smt4B PTEsKQjjTxcY57MZQn7OHj25P6sfUPTDyV11wV79KWrvklhlyGlOyJxFZTP6Zgt7lve9itS92JF khkbi0dbpNPhNsu+OZdN3TNaS3jnpqMjEUBYsFPuCWisMhZEy+7mn/2XQ/JoukHwsTXmI9Lzlq4 JyvAQUiaDZp5ERt9oVp8mLDqEYiejXtLjqRuN4eHlJhIbgw3jfDlLaqJ1ldGOmhafwuZsVhWJkI npy/uEGd1xsS5JXzM0SPtFKfCjuBVaqnZvB+Rl7dw6nWt1yCsRohgWPvAbhmyDPCenJ+A6XzO4V 6I+bUlCa9Y8Sikx9app7SM70wG9ZBQpxTG3kKnNUjKQoFKsjeJWJZuMgj6MKCOTP8CpfAAQETv8 PFQVa0C7zJ1aSV96kaQMzB0vsRFWHqUFlAO4FbHCJEYMkQ2hbJf/60Z54BotWTDE4IHWJrCDQFa w5Obzu7o= X-Received: by 2002:a17:90b:5292:b0:3b5:35eb:5e86 with SMTP id 98e67ed59e1d1-3b5e06a4d05mr5712566a91.59.1796506730250; Sat, 05 Dec 2026 13:38:50 -0800 (PST) Received: from moneychan ([182.234.157.91]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b616502ab2sm2757375a91.0.2026.12.05.13.38.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 13:38:49 -0800 (PST) From: Hsinyi Chien To: tiwai@suse.com, perex@perex.cz Cc: linux-sound@vger.kernel.org, Hsinyi Chien Subject: [PATCH v2 0/2] ALSA: hda/realtek: Fix headphone jack pop on ASUS GU605C Date: Sun, 6 Dec 2026 05:38:38 +0800 Message-ID: <20261205213840.62481-1-suzu1dev@gmail.com> X-Mailer: git-send-email 2.56.1 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 v1 put the GU605CX on the power-save deny-list: [RFC PATCH] ALSA: hda/intel: Disable power saving on ASUS GU605CX Takashi pointed out that the deny-list is a last resort and that a codec quirk is usually the better fix. That is the case here. The pop comes from the headphone pin control write in alc225_shutup(), not from D3. Changes since v1: - Drop the deny-list entry and its DMI match. - Patch 1 makes alc225_shutup() honor no_shutup_pins, as the other shutup functions do. - Patch 2 sets the flag for SSID 1043:1034. - Use my real name in From and Signed-off-by. Patch 1 also changes other machines that already set no_shutup_pins. Its changelog has the details. If that is not acceptable, I can keep the change local to this model. Tests on the GU605CX. Unless noted, iLoud Micro Monitor powered speakers are on the 3.5 mm jack. Each run plays a 1 s tone with power_save=10, waits for the codec to runtime-suspend, and records whether I heard a pop: 7.2.15 distro kernel, default pop 2/2 7.2.15, hint "shutup = no" no pop 2/2 7.2.15, power_save_controller=N pop 2/2 7.3.4 Arch kernel, stock alc269 module pop 2/2 7.3.4, alc269 module with both patches no pop 2/2 same, with headphones on the jack no pop 2/2 The hda trace events were recorded for every run. The stock module writes SET_PIN_WIDGET_CONTROL 0 to pin 0x21 twice at suspend. The patched module still sends the coef 0x4a toggle, the HP amp mute, EAPD off and D3, and no pin control write. Replaying the alc225_shutup() verbs through hwdep on 7.2.15, with the codec kept in D0: full sequence pop 2/2 without the pin control write on 0x21 no pop 2/2 without the coef 0x4a toggle pop 2/2 without the HP amp mute pop 1/2 Shutdown and reboot pop with the stock module. One shutdown with the patched module did not pop. The shutdown checks were not traced. Limits of the testing: - The patched module was built from the v7.3.4-arch1 source plus the same change as these two patches. On this base the series is only compile tested. - Headphones were only tested with the patched module. I do not know whether they pop without the patches. - Not tested: internal speakers, switching between the internal speakers and the jack, system suspend and resume, and every other machine that patch 1 affects. Tool use: v1 was prepared with OpenAI Codex. For v2 an LLM coding assistant (Anthropic Claude) wrote the two test scripts, read the traces, and drafted the patches, the changelogs and this letter, starting from my request to try a codec-side fix. I ran every listening test myself and reviewed the result. Hsinyi Chien (2): ALSA: hda/realtek: Honor no_shutup_pins in alc225_shutup() ALSA: hda/realtek: Fix headphone jack pop on ASUS GU605C sound/hda/codecs/realtek/alc269.c | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) base-commit: 4ce2a02a314739cafb6c44433324c13f92060a7d -- 2.56.1