From: Takashi Iwai <tiwai@suse.de>
To: Jude Gyimah <jude.gyimah87@gmail.com>
Cc: perex@perex.cz, tiwai@suse.com, linux-sound@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ALSA: aw2-alsa: select SND_PCM
Date: Fri, 13 Nov 2026 08:57:30 +0100 [thread overview]
Message-ID: <87a4ndqi39.wl-tiwai@suse.de> (raw)
In-Reply-To: <20261113064614.15045-1-jude.gyimah87@gmail.com>
On Fri, 13 Nov 2026 07:46:14 +0100,
Jude Gyimah wrote:
>
> Several stanzas in sound/pci/Kconfig select SND_PCM.
> SND_AW2 selects nothing at all.
>
> aw2-alsa calls snd_pcm_new, which sound/core/pcm.c provides under SND_PCM.
>
> aw2-alsa.c:(.text+0x554): undefined reference to `snd_pcm_new'
>
> 4 symbols are undefined in all.
>
> The driver can be built into vmlinux while SND_PCM is a module, in which
> case the symbols are not there at link time.
>
> Select rather than depend on: SND_PCM has no prompt of its own and is only
> ever enabled by a select, so a depends on would leave SND_AW2
> unselectable.
>
> Reproduced on v7.3, arm64, with CONFIG_SND_AW2=y and CONFIG_SND_PCM=m.
>
> Found with kreach, a static check that compares what Kconfig allows
> against the symbols the compiled objects actually reference.
>
> Fixes: 98f2a97f207a ("[ALSA] Emagic Audiowerk 2 ALSA driver.")
> Signed-off-by: Jude Gyimah <jude.gyimah87@gmail.com>
Applied now. It's interesting why this wasn't caught by build tests
for long time...
thanks,
Takashi
next prev parent reply other threads:[~2026-11-13 7:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 6:46 [PATCH] ALSA: aw2-alsa: select SND_PCM Jude Gyimah
2026-11-13 7:57 ` Takashi Iwai [this message]
2026-11-13 8:59 ` Jude Gyimah
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=87a4ndqi39.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=jude.gyimah87@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--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 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.