Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ALSA: hda/realtek: Fix headphone jack pop on ASUS GU605C
@ 2026-12-05 21:38 Hsinyi Chien
  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
  0 siblings, 2 replies; 5+ messages in thread
From: Hsinyi Chien @ 2026-12-05 21:38 UTC (permalink / raw)
  To: tiwai, perex; +Cc: linux-sound, Hsinyi Chien

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-12-05 22:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 21:38 [PATCH v2 0/2] ALSA: hda/realtek: Fix headphone jack pop on ASUS GU605C Hsinyi Chien
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:53   ` sashiko-bot
2026-12-05 22:01     ` Hsinyi Chien
2026-12-05 21:38 ` [PATCH v2 2/2] ALSA: hda/realtek: Fix headphone jack pop on ASUS GU605C Hsinyi Chien

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox