From: sashiko-bot@kernel.org
To: "Jude Gyimah" <jude.gyimah87@gmail.com>
Cc: linux-sound@vger.kernel.org
Subject: Re: [PATCH] ASoC: SOF: ipc4-topology: fix link failure with SND_INTEL_DSP_CONFIG=m
Date: Wed, 25 Nov 2026 18:46:08 +0000 [thread overview]
Message-ID: <sashiko-outbox-234012@kernel.org> (raw)
In-Reply-To: <20261125183706.53331-1-jude.gyimah87@gmail.com>
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] ASoC: SOF: IS_REACHABLE() stubs out
snd_sof_get_nhlt_endpoint_data() for modular Intel IPC4
- [Low] ASoC: SOF: conversational email greeting in commit changelog
--
commit 92afe44aeb8258bf82f3d1cf70150bb75c4ca99c
Author: Jude Gyimah <jude.gyimah87@gmail.com>
ASoC: SOF: ipc4-topology: fix link failure with SND_INTEL_DSP_CONFIG=m
This commit changes the preprocessor guard in ipc4-topology.c from
IS_ENABLED(CONFIG_SND_INTEL_NHLT) to
IS_REACHABLE(CONFIG_SND_INTEL_DSP_CONFIG) to avoid a link failure when
snd-sof is built-in and snd-intel-dspcfg is modular.
Link: https://lore.kernel.org/r/20261107114944.561731-1-jude.gyimah87@gmail.com
> Hi everyone,
>
> Just to bring this to your attention.
[Severity: Low]
This isn't a bug, but this conversational email greeting belongs below
the "---" separator rather than in the permanent git changelog.
> diff --git a/sound/soc/sof/ipc4-topology.c b/sound/soc/sof/ipc4-topology.c
> index 9a3f8896d7cde..87b3c34351620 100644
> --- a/sound/soc/sof/ipc4-topology.c
> +++ b/sound/soc/sof/ipc4-topology.c
> @@ -1793,7 +1793,7 @@ static void sof_ipc4_unprepare_copier_module(struct snd_sof_widget *swidget)
> }
> }
>
> -#if IS_ENABLED(CONFIG_ACPI) && IS_ENABLED(CONFIG_SND_INTEL_NHLT)
> +#if IS_ENABLED(CONFIG_ACPI) && IS_REACHABLE(CONFIG_SND_INTEL_DSP_CONFIG)
> static int snd_sof_get_hw_config_params(struct snd_sof_dev *sdev, struct snd_sof_dai *dai,
> int *sample_rate, int *channel_count, int *bit_depth)
> {
[Severity: Medium]
Does using IS_REACHABLE() here break SSP and DMIC DAI setup at runtime
when an Intel IPC4 driver is built as a module alongside a built-in
non-Intel SOF driver?
CONFIG_SND_SOC_SOF_IPC4 is only selected by Intel SOF drivers, while
ipc4-topology.o is linked into snd-sof.o (CONFIG_SND_SOC_SOF). When
CONFIG_SND_SOC_SOF=y and the Intel IPC4 driver is modular with
CONFIG_SND_INTEL_DSP_CONFIG=m, IS_REACHABLE(CONFIG_SND_INTEL_DSP_CONFIG)
evaluates to false in built-in ipc4-topology.o and compiles in the #else
stub of snd_sof_get_nhlt_endpoint_data() that returns 0 without setting
*dst or *len.
In sof_ipc4_widget_setup_comp_dai(), SOF_DAI_INTEL_SSP and
SOF_DAI_INTEL_DMIC leave ipc4_copier->copier_config as NULL and
gtw_cfg.config_length as 0, relying on sof_ipc4_prepare_dai_copier() ->
snd_sof_get_nhlt_endpoint_data() to attach the NHLT endpoint blob. With
the stubbed implementation, copier preparation silently sends the DSP
IPC without the required NHLT hardware configuration payload.
Should SND_SOC_SOF select SND_INTEL_DSP_CONFIG when SND_SOC_SOF_IPC4 (or
SND_INTEL_NHLT) is enabled, or should the NHLT lookup calls move to
Intel platform callbacks?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261125183706.53331-1-jude.gyimah87@gmail.com?part=1
next prev parent reply other threads:[~2026-11-25 18:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 18:37 [PATCH] ASoC: SOF: ipc4-topology: fix link failure with SND_INTEL_DSP_CONFIG=m Jude Gyimah
2026-11-25 18:46 ` sashiko-bot [this message]
2026-11-25 19:28 ` Arnd Bergmann
2026-11-25 20:53 ` 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=sashiko-outbox-234012@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=jude.gyimah87@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=sashiko-reviews@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox