Linux Sound subsystem development
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Paul Menzel <pmenzel@molgen.mpg.de>
Cc: Takashi Iwai <tiwai@suse.de>, Jaroslav Kysela <perex@perex.cz>,
	Takashi Iwai <tiwai@suse.com>,
	linux-sound@vger.kernel.org, regressions@lists.linux.dev
Subject: Re: Quiet crackling noise at boot and after stopping music
Date: Wed, 06 Aug 2025 16:42:42 +0200	[thread overview]
Message-ID: <87h5ykqzod.wl-tiwai@suse.de> (raw)
In-Reply-To: <b70db707-457d-4c0c-85be-19f4340dcc7b@molgen.mpg.de>

On Wed, 06 Aug 2025 15:57:51 +0200,
Paul Menzel wrote:
> 
> Dear Takashi,
> 
> 
> Thank you for your reply.
> 
> Am 06.08.25 um 10:46 schrieb Takashi Iwai:
> > On Wed, 06 Aug 2025 10:34:57 +0200, Paul Menzel wrote:
> 
> >> Am 06.08.25 um 10:20 schrieb Takashi Iwai:
> >>> On Wed, 06 Aug 2025 10:15:08 +0200, Paul Menzel wrote:
> >> 
> >>>> I believe the Realtek refactoring caused a regression on my Intel Kaby
> >>>> Lake laptop Dell XPS 13 9360. There is quiet crackling noise during
> >>>> boot, when GDM is started, and also after playing music is
> >>>> stopped. It’s reproducible with 6.16.0-04055-g14bed9bc81ba, that
> >>>> contains the sound subsystem pull request.
> >>>> 
> >>>> 177bf8620cf4 Merge tag 'sound-6.17-rc1' of
> >>>> git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
> >>>> 
> >>>> I uploaded the run of alsa-info [1]. I try to verify with plain 6.16 later.
> >>> 
> >>> It's likely because of the missing CONFIG_SND_HDA_CODEC_* selections.
> >>> Please set CONFIG_SND_HDA_CODEC_ALC269=m and
> >> 
> >> Indeed, I didn’t select this.
> >> 
> >>> CONFIG_SND_HDA_CODEC_HDMI_INTEL=m if not done yet.
> >> 
> >> I had selected this.
> >> 
> >>> Those were already set to default=y in the later PR for avoiding such
> >>> a pitfall.
> >> 
> >> I remember I tried to check which to select, and I ran `alsa-info` to
> >> find the codecs, but only found:
> >> 
> >>      Codec: Realtek ALC3246
> >> 
> >> As this didn’t match to any of the offerings, I didn’t select
> >> it. May I suggest to extend the Kconfig help texts with notes how to
> >> determine the correct module?
> > 
> > There are quite lots of different codec names, so we can't put all
> > them, unfortunately...
> 
> Understood. Then maybe just the command how to find the id, that
> people can use to grep the correct module for? From the script
> `alsa-info.sh`, maybe, I found:
> 
>     $ grep -e Codec -e "Vendor Id" /proc/asound/card*/codec#*
>     /proc/asound/card0/codec#0:Codec: Realtek ALC3246
>     /proc/asound/card0/codec#0:Vendor Id: 0x10ec0256
>     /proc/asound/card0/codec#2:Codec: Intel Kabylake HDMI
>     /proc/asound/card0/codec#2:Vendor Id: 0x8086280b
> 
> So mention `/proc/asound/card*/codec#*`?

Honestly speaking, I don't want that; it won't scale, and new codecs
may appear at any moment.  Then we'd have to manage multiple places
for adding or removing ids.

Maybe an alternative option would be to mark prompt of each Realtek
codec driver with EXPERT, so that all Realtek drivers will be enabled
(when CONFIG_SND_HDA_CODEC_REALTEK is set) unless you say you're an
expert :)


thanks,

Takashi

-- 8< --
--- a/sound/hda/codecs/realtek/Kconfig
+++ b/sound/hda/codecs/realtek/Kconfig
@@ -12,7 +12,7 @@ config SND_HDA_CODEC_REALTEK_LIB
 	select SND_HDA_SCODEC_COMPONENT
 
 config SND_HDA_CODEC_ALC260
-	tristate "Build Realtek ALC260 HD-audio codec support"
+	tristate "Build Realtek ALC260 HD-audio codec support" if EXPERT
 	depends on INPUT
 	select SND_HDA_CODEC_REALTEK_LIB
 	default y
@@ -20,7 +20,7 @@ config SND_HDA_CODEC_ALC260
 	  Say Y or M here to include Realtek ALC260 HD-audio codec support
 
 config SND_HDA_CODEC_ALC262
-	tristate "Build Realtek ALC262 HD-audio codec support"
+	tristate "Build Realtek ALC262 HD-audio codec support" if EXPERT
 	depends on INPUT
 	select SND_HDA_CODEC_REALTEK_LIB
 	default y
@@ -28,7 +28,7 @@ config SND_HDA_CODEC_ALC262
 	  Say Y or M here to include Realtek ALC262 HD-audio codec support
 
 config SND_HDA_CODEC_ALC268
-	tristate "Build Realtek ALC268 HD-audio codec support"
+	tristate "Build Realtek ALC268 HD-audio codec support" if EXPERT
 	depends on INPUT
 	select SND_HDA_CODEC_REALTEK_LIB
 	default y
@@ -37,7 +37,7 @@ config SND_HDA_CODEC_ALC268
 	  codec support
 
 config SND_HDA_CODEC_ALC269
-	tristate "Build Realtek ALC269 HD-audio codecs support"
+	tristate "Build Realtek ALC269 HD-audio codecs support" if EXPERT
 	depends on INPUT
 	select SND_HDA_CODEC_REALTEK_LIB
 	default y
@@ -46,7 +46,7 @@ config SND_HDA_CODEC_ALC269
 	  codec support
 
 config SND_HDA_CODEC_ALC662
-	tristate "Build Realtek ALC662 HD-audio codecs support"
+	tristate "Build Realtek ALC662 HD-audio codecs support" if EXPERT
 	depends on INPUT
 	select SND_HDA_CODEC_REALTEK_LIB
 	default y
@@ -55,7 +55,7 @@ config SND_HDA_CODEC_ALC662
 	  codec support
 
 config SND_HDA_CODEC_ALC680
-	tristate "Build Realtek ALC680 HD-audio codecs support"
+	tristate "Build Realtek ALC680 HD-audio codecs support" if EXPERT
 	depends on INPUT
 	select SND_HDA_CODEC_REALTEK_LIB
 	default y
@@ -63,7 +63,7 @@ config SND_HDA_CODEC_ALC680
 	  Say Y or M here to include Realtek ALC680 HD-audio codec support
 
 config SND_HDA_CODEC_ALC861
-	tristate "Build Realtek ALC861 HD-audio codecs support"
+	tristate "Build Realtek ALC861 HD-audio codecs support" if EXPERT
 	depends on INPUT
 	select SND_HDA_CODEC_REALTEK_LIB
 	default y
@@ -71,7 +71,7 @@ config SND_HDA_CODEC_ALC861
 	  Say Y or M here to include Realtek ALC861 HD-audio codec support
 
 config SND_HDA_CODEC_ALC861VD
-	tristate "Build Realtek ALC861-VD HD-audio codecs support"
+	tristate "Build Realtek ALC861-VD HD-audio codecs support" if EXPERT
 	depends on INPUT
 	select SND_HDA_CODEC_REALTEK_LIB
 	default y
@@ -79,7 +79,7 @@ config SND_HDA_CODEC_ALC861VD
 	  Say Y or M here to include Realtek ALC861-VD HD-audio codec support
 
 config SND_HDA_CODEC_ALC880
-	tristate "Build Realtek ALC880 HD-audio codecs support"
+	tristate "Build Realtek ALC880 HD-audio codecs support" if EXPERT
 	depends on INPUT
 	select SND_HDA_CODEC_REALTEK_LIB
 	default y
@@ -87,7 +87,7 @@ config SND_HDA_CODEC_ALC880
 	  Say Y or M here to include Realtek ALC880 HD-audio codec support
 
 config SND_HDA_CODEC_ALC882
-	tristate "Build Realtek ALC882 HD-audio codecs support"
+	tristate "Build Realtek ALC882 HD-audio codecs support" if EXPERT
 	depends on INPUT
 	select SND_HDA_CODEC_REALTEK_LIB
 	default y

  reply	other threads:[~2025-08-06 14:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-06  8:15 Quiet crackling noise at boot and after stopping music Paul Menzel
2025-08-06  8:20 ` Takashi Iwai
2025-08-06  8:34   ` Paul Menzel
2025-08-06  8:46     ` Takashi Iwai
2025-08-06 13:57       ` Paul Menzel
2025-08-06 14:42         ` Takashi Iwai [this message]
2025-08-06 16:12           ` Paul Menzel
2025-08-06 18:58             ` Takashi Iwai
2025-08-06 17:00           ` Hans de Goede
2025-08-06 18:58             ` 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=87h5ykqzod.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=pmenzel@molgen.mpg.de \
    --cc=regressions@lists.linux.dev \
    --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