All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hsinyi Chien <suzu1dev@gmail.com>
To: tiwai@suse.com, perex@perex.cz
Cc: linux-sound@vger.kernel.org, Hsinyi Chien <suzu1dev@gmail.com>
Subject: [PATCH v2 0/2] ALSA: hda/realtek: Fix headphone jack pop on ASUS GU605C
Date: Sun,  6 Dec 2026 05:38:38 +0800	[thread overview]
Message-ID: <20261205213840.62481-1-suzu1dev@gmail.com> (raw)

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


             reply	other threads:[~2026-12-05 21:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05 21:38 Hsinyi Chien [this message]
2026-12-05 21:38 ` [PATCH v2 1/2] ALSA: hda/realtek: Honor no_shutup_pins in alc225_shutup() Hsinyi Chien
2026-12-05 21:38 ` [PATCH v2 2/2] ALSA: hda/realtek: Fix headphone jack pop on ASUS GU605C Hsinyi Chien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261205213840.62481-1-suzu1dev@gmail.com \
    --to=suzu1dev@gmail.com \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.