From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 742E4FCC9C8 for ; Tue, 10 Mar 2026 06:48:38 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [45.14.194.44]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id D5B7C601F6; Tue, 10 Mar 2026 07:48:25 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D5B7C601F6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1773125315; bh=Y5FYnAb0lYDECYa4FLQ1COGY6kcorZqnObwXtrfwsZQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=rSuJMTUOvIYuoGWHA/CvdRQK7yDjDgMwHgMgz+u2u/1XG3reqZe7govBN8C+4+1Jp 1snDZJ0eo7ppGZ+YvsKlwQzQp3Y8IlXe1Z0WzoeYJHA10phyrOf8v6wC3me5gQZYjG FQymIcJsUqK0LYKi85iwBWczSJwHqPCv2oq1wajk= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 98CBCF805EE; Tue, 10 Mar 2026 07:48:01 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id A0367F805F5; Tue, 10 Mar 2026 07:48:00 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 27B29F8053B; Tue, 10 Mar 2026 07:47:50 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id DE766F8047D for ; Tue, 10 Mar 2026 07:47:47 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz DE766F8047D Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=F8Xrh2Vo; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=kFJxVKFb; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=F8Xrh2Vo; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=kFJxVKFb Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 086585BCEF; Tue, 10 Mar 2026 06:47:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1773125267; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VwWENHPBhib3+LUJEFuP0Qv3P1X+LBRyZfTIsrwkqOQ=; b=F8Xrh2Vogy9pRg/kjar+ZEfBYp17zvTNOlMHBZvyR7FN3EjF4BEfY31HqoMyffUKQ6KGqy RxoEDDBANU9m8Q3dSsiU2Yf/OlyaM1NfEnoS/O+cqnZz8TSlm3RiFGN+DNOIcAmDzx9Ja7 7LuiU9RS/JgDkfx1gcInjZlNYGtSS6I= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1773125267; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VwWENHPBhib3+LUJEFuP0Qv3P1X+LBRyZfTIsrwkqOQ=; b=kFJxVKFb6FSlx4/w4b3VTXMu/Nd7iUct0919oO4XqsLVdoU+yBfEd2LYwmVQ1M5usfcY/5 FuoqKfmBmEgVrBCA== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1773125267; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VwWENHPBhib3+LUJEFuP0Qv3P1X+LBRyZfTIsrwkqOQ=; b=F8Xrh2Vogy9pRg/kjar+ZEfBYp17zvTNOlMHBZvyR7FN3EjF4BEfY31HqoMyffUKQ6KGqy RxoEDDBANU9m8Q3dSsiU2Yf/OlyaM1NfEnoS/O+cqnZz8TSlm3RiFGN+DNOIcAmDzx9Ja7 7LuiU9RS/JgDkfx1gcInjZlNYGtSS6I= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1773125267; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VwWENHPBhib3+LUJEFuP0Qv3P1X+LBRyZfTIsrwkqOQ=; b=kFJxVKFb6FSlx4/w4b3VTXMu/Nd7iUct0919oO4XqsLVdoU+yBfEd2LYwmVQ1M5usfcY/5 FuoqKfmBmEgVrBCA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id C5DB53F308; Tue, 10 Mar 2026 06:47:46 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id 8p9yLpK+r2lvKQAAD6G6ig (envelope-from ); Tue, 10 Mar 2026 06:47:46 +0000 Date: Tue, 10 Mar 2026 07:47:46 +0100 Message-ID: <87a4wgrxil.wl-tiwai@suse.de> From: Takashi Iwai To: =?ISO-8859-1?Q?J=E9r=E9my?= Bethmont Cc: Kailang Yang , 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 In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/30.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-1.80 / 50.00]; BAYES_HAM(-3.00)[99.99%]; SUSPICIOUS_RECIPS(1.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_DN_SOME(0.00)[]; FUZZY_RATELIMITED(0.00)[rspamd.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; TAGGED_RCPT(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; RCPT_COUNT_FIVE(0.00)[5]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo] Message-ID-Hash: ANKQ3ZBLMBOTQW6GLPQXXT2O6KJ2ZV7R X-Message-ID-Hash: ANKQ3ZBLMBOTQW6GLPQXXT2O6KJ2ZV7R X-MailFrom: tiwai@suse.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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