mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Nguyen Thanh Nhat <nguyenthanhnhat397@gmail.com>
Cc: Takashi Iwai <tiwai@suse.com>, Jaroslav Kysela <perex@perex.cz>,
	linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org,
	Kailang Yang <kailang@realtek.com>,
	SungHwan Jung <onenowy@gmail.com>,
	Breno Baptista <brenomb07@gmail.com>
Subject: Re: [PATCH] ALSA: hda/realtek: Restore headset mic COEF and restart HP JD on init
Date: Tue, 01 Dec 2026 08:51:55 +0100	[thread overview]
Message-ID: <87bj751lr8.wl-tiwai@suse.de> (raw)
In-Reply-To: <20261129162120.38166-1-nguyenthanhnhat397@gmail.com>

On Sun, 29 Nov 2026 17:21:19 +0100,
Nguyen Thanh Nhat wrote:
> 
> alc2xx_fixup_headset_mic() configures vendor COEF 0x45 for CTIA
> combo-jack headset mic routing only during HDA_FIXUP_ACT_PRE_PROBE.
> Because COEF 0x45 is not preserved across S3 suspend/resume, the
> headset microphone stops working after waking from sleep.
> 
> Commit 655a830a248d ("ALSA: hda/realtek: Fix distorted headphone audio
> on Acer Predator PHN16-71") pulses Reset HP JD (COEF 0x4a BIT(15)) on
> HDA_FIXUP_ACT_INIT for Acer Predator PHN16-71 (Realtek ALC245,
> 1025:170f). However, restoring COEF 0x45 alone (0xc689 -> 0x5289) or
> pulsing COEF 0x4a BIT(15) before restoring COEF 0x45 still leaves
> headphone audio distorted and the headset mic non-working until the
> headset is unplugged and replugged. Restoring COEF 0x45 first and then
> pulsing COEF 0x4a BIT(15) restores both cleanly.
> 
> Add 0x10ec0245 to alc_combo_jack_hp_jd_restart() and invoke both the
> COEF 0x45 update and alc_combo_jack_hp_jd_restart() during
> HDA_FIXUP_ACT_INIT in alc2xx_fixup_headset_mic(). This makes the
> PHN16-71-specific ALC245_FIXUP_ACER_HP_JD_RESET wrapper redundant, so
> remove it and point 1025:170f back to ALC245_FIXUP_ACER_MICMUTE_LED
> (which chains to ALC2XX_FIXUP_HEADSET_MIC).
> 
> Verified on Acer Predator PHN16-71 with a custom build of this tree
> across cold boot, S3 suspend/resume, and unplug/replug.
> 
> An AI coding assistant was used to analyze the codec driver behavior
> and interpret COEF register values.
> 
> Fixes: c8c0a03ec1be ("ALSA: hda/realtek - Fixed ASUS platform headset Mic issue")
> Signed-off-by: Nguyen Thanh Nhat <nguyenthanhnhat397@gmail.com>

Applied now.  Thanks.


Takashi

      reply	other threads:[~2026-12-01  7:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 16:21 Nguyen Thanh Nhat
2026-12-01  7:51 ` Takashi Iwai [this message]

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=87bj751lr8.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=brenomb07@gmail.com \
    --cc=kailang@realtek.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=nguyenthanhnhat397@gmail.com \
    --cc=onenowy@gmail.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®