From: Takashi Iwai <tiwai@suse.de>
To: "Jérémy Bethmont" <jeremy.bethmont@gmail.com>
Cc: Kailang <kailang@realtek.com>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
"regressions@lists.linux.dev" <regressions@lists.linux.dev>,
"regressions@leemhuis.info" <regressions@leemhuis.info>
Subject: Re: [REGRESSION] Audio popping on ThinkPad X1 Carbon Gen 12 (ALC287) after commit d2e01e0c5e94
Date: Tue, 14 Apr 2026 09:39:19 +0200 [thread overview]
Message-ID: <871pgit2hk.wl-tiwai@suse.de> (raw)
In-Reply-To: <CAC88DfvyuWeD99hhKKsHum+wpjjQrOKsdWvKVZMefjhcx3sKBw@mail.gmail.com>
On Tue, 14 Apr 2026 09:23:31 +0200,
Jérémy Bethmont wrote:
>
> Hi Kailang, Takashi,
>
> I can confirm that applying this patch completely resolves the issue!
>
> I compiled and tested it on my ThinkPad X1 Carbon Gen 12 (ALC287)
> running kernel 6.19.11. The hardware popping noise upon PCM suspend is
> entirely gone.
>
> Thank you both for your incredible work on this. You can add my
> Tested-by tag when this gets merged upstream:
>
> Tested-by: Jeremy Bethmont <jeremy.bethmont@gmail.com>
>
> Best regards,
> Jeremy
Good to hear!
Kailang, please submit a proper fix patch for merging.
thanks,
Takashi
>
> On Tue, 14 Apr 2026 at 13:44, Kailang <kailang@realtek.com> wrote:
> >
> > Sorry!! Attached wrong file.
> > Attached again.
> >
> > -----Original Message-----
> > From: Jérémy Bethmont <jeremy.bethmont@gmail.com>
> > Sent: Tuesday, April 14, 2026 2:37 PM
> > To: Kailang <kailang@realtek.com>
> > Cc: Takashi Iwai <tiwai@suse.de>; alsa-devel@alsa-project.org; regressions@lists.linux.dev; regressions@leemhuis.info
> > Subject: Re: [REGRESSION] Audio popping on ThinkPad X1 Carbon Gen 12 (ALC287) after commit d2e01e0c5e94
> >
> >
> > External mail : This email originated from outside the organization. Do not reply, click links, or open attachments unless you recognize the sender and know the content is safe.
> >
> >
> >
> > Hi Kailang,
> >
> > Thank you for the patch. However, I believe you may have attached the wrong file by mistake.
> >
> > The attached patch ("0000-x1-gen12-speaker.patch") is dated November 12, 2024. Its commit message mentions fixing an issue with older BIOS versions.
> >
> > Could you please double-check?
> >
> > Best regards,
> > Jeremy
> >
> > On Mon, 13 Apr 2026 at 16:16, Kailang <kailang@realtek.com> wrote:
> > >
> > > Hi Jeremy,
> > >
> > > You can test attach patch.
> > >
> > > BR,
> > > Kailang
> > >
> > > -----Original Message-----
> > > From: Takashi Iwai <tiwai@suse.de>
> > > Sent: Tuesday, March 10, 2026 4:33 PM
> > > To: Jérémy Bethmont <jeremy.bethmont@gmail.com>
> > > Cc: Kailang <kailang@realtek.com>; alsa-devel@alsa-project.org;
> > > regressions@lists.linux.dev; regressions@leemhuis.info
> > > Subject: Re: [REGRESSION] Audio popping on ThinkPad X1 Carbon Gen 12
> > > (ALC287) after commit d2e01e0c5e94
> > >
> > >
> > > External mail : This email originated from outside the organization. Do not reply, click links, or open attachments unless you recognize the sender and know the content is safe.
> > >
> > >
> > >
> > > On Tue, 10 Mar 2026 09:24:38 +0100,
> > > Jérémy Bethmont wrote:
> > > >
> > > > Hi Takashi,
> > > >
> > > > Thank you for looking into this so quickly.
> > > >
> > > > As requested, I have attached the output of `alsa-info.sh
> > > > --no-upload` from my machine.
> > > >
> > > > Please let me know if you have a proposed patch you would like me to
> > > > test. I am happy to build it and verify if it resolves the popping
> > > > on my hardware.
> > >
> > > I guess dropping the alc_process_coef_fw(codec, en_coefs) call at closing would fix your problem while keeping the one at open.
> > > But I'm not sure about any side-effect by that.
> > > Kailang, could you check this?
> > >
> > > BTW, when you disable runtime PM, does the pop noise still appears?
> > >
> > >
> > > thanks,
> > >
> > > Takashi
> > >
> > > >
> > > > Best regards,
> > > > Jeremy
> > > >
> > > > On Tue, 10 Mar 2026 at 13:47, Takashi Iwai <tiwai@suse.de> wrote:
> > > > >
> > > > > On Tue, 10 Mar 2026 01:01:11 +0100, Jérémy Bethmont wrote:
> > > > > >
> > > > > > Hi Takashi, Kailang,
> > > > > >
> > > > > > I am reporting an audio regression introduced in kernel 6.18.13
> > > > > > on the Lenovo ThinkPad X1 Carbon Gen 12 (Meteor Lake, Realtek
> > > > > > ALC287 codec,
> > > > > > SSID: 0x17aa231e).
> > > > > >
> > > > > > Since this update, the laptop emits a short, noticeable hardware
> > > > > > pop/blip from the speakers exactly when an audio stream closes
> > > > > > and the PCM state suspends. It happens consistently a few
> > > > > > seconds after playback finishes (e.g., after a system
> > > > > > notification or terminal bell).
> > > > > >
> > > > > > I have tracked the regression down to the following commit:
> > > > > > d2e01e0c5e947da0b5005ca89efa82baeb232adc ("ALSA: hda/realtek -
> > > > > > fixed speaker no sound")
> > > > > >
> > > > > > #regzbot introduced: d2e01e0c5e947da0b5005ca89efa82baeb232adc
> > > > > >
> > > > > > Root cause analysis:
> > > > > > The commit modifies the `alc287_alc1318_playback_pcm_hook`
> > > > > > function, adding raw COEF writes to disable/enable AMP silence
> > > > > > detection on HDA_GEN_PCM_ACT_OPEN and HDA_GEN_PCM_ACT_CLOSE.
> > > > > >
> > > > > > Because `alc287_alc1318_playback_pcm_hook` is a shared hook used
> > > > > > by multiple Lenovo ALC287/ALC1318 devices, these unconditional
> > > > > > `WRITE_COEF` instructions are being sent to hardware that does
> > > > > > not need the silence detection fix. On the X1 Carbon Gen 12,
> > > > > > executing `alc_process_coef_fw(codec, en_coefs)` upon stream
> > > > > > close triggers an immediate electrical pop. Monitoring with
> > > > > > `pw-mon` confirms the hardware pop coincides perfectly with the
> > > > > > monitor_FR / monitor_FL ports going idle/suspended.
> > > > > >
> > > > > > Proposed solution:
> > > > > > Could we revert this commit, or alternatively, wrap these
> > > > > > specific silence-detection COEF writes in a targeted
> > > > > > `ALC287_FIXUP` quirk matched via SSID/DMI, rather than executing
> > > > > > them globally in the shared playback hook?
> > > > >
> > > > > Could you give alsa-info.sh output? Run the script with
> > > > > --no-upload option and attach the output.
> > > > >
> > > > > I guess the bug might not be specific to your device but happening
> > > > > in general with all matching ones. As a workaround for such a pop
> > > > > noise, we often need to reorder verbs or put some delay between verbs.
> > > > >
> > > > >
> > > > > Takashi
> > > >
> > > >
> > > >
> > > > --
> > > > Jérémy Bethmont
> > > >
> >
> >
> >
> > --
> > Jérémy Bethmont
>
>
>
> --
> Jérémy Bethmont
next prev parent reply other threads:[~2026-04-14 7:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-10 0:01 [REGRESSION] Audio popping on ThinkPad X1 Carbon Gen 12 (ALC287) after commit d2e01e0c5e94 Jérémy Bethmont
2026-03-10 6:47 ` Takashi Iwai
2026-03-10 8:24 ` Jérémy Bethmont
2026-03-10 8:32 ` Takashi Iwai
2026-03-10 9:40 ` Jérémy Bethmont
2026-04-13 9:16 ` Kailang
2026-04-14 6:37 ` Jérémy Bethmont
2026-04-14 6:43 ` Kailang
2026-04-14 7:23 ` Jérémy Bethmont
2026-04-14 7:39 ` Takashi Iwai [this message]
2026-04-14 7:57 ` Kailang
2026-04-14 8:14 ` Takashi Iwai
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=871pgit2hk.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=jeremy.bethmont@gmail.com \
--cc=kailang@realtek.com \
--cc=regressions@leemhuis.info \
--cc=regressions@lists.linux.dev \
/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.