Skip to content

Remove the unused VAD notifier event and a dead DMA copy unregister - #11565

Draft
lgirdwood wants to merge 2 commits into
thesofproject:mainfrom
lgirdwood:kernel-user/notifier-dead
Draft

lgirdwood wants to merge 2 commits into
thesofproject:mainfrom
lgirdwood:kernel-user/notifier-dead

Conversation

@lgirdwood

Copy link
Copy Markdown
Member

Part of #11306 and #11517: remove two notifier leftovers that do nothing, on the way to removing the notifier.

Patches

  1. lib: notifier: remove the unused VAD event.
    • webrtc_vad and webrtc_ns2 were added with a NOTIFIER_ID_VAD event for their speech/silence decision. Neither posts it: both only log the decision at debug level, with a TODO to deliver it once there is a consumer. Nothing registers for it either.
    • The event goes. The modules' comments, Kconfig help, READMEs and topology comments no longer say that they broadcast it.
    • CONFIG_WEBRTC_NS2_VAD_NOTIFY stays, with its help text corrected: it turns on the decision, which is logged only for now.
  2. ipc3: dai: do not unregister a DMA copy callback with native drivers.
    • With Zephyr native drivers, the IPC3 DAI reset unregisters a NOTIFIER_ID_DMA_COPY callback.
    • Only dai-legacy.c and host-legacy.c register for that event, and neither is built with native drivers, so there is never a callback to remove.
    • The legacy branch keeps its own call.

Functional change

None.

What uses the notifier after this

Event Users Removal
MIC_PRIVACY_STATE_CHANGE mic privacy manager → capture DAI copiers #11503
KPB_CLIENT_EVT detect_test, google_hotword_detect, kpb_service_bridge → KPB #11497
DMA_COPY, DMA_IRQ, DMA_DOMAIN_CHANGE legacy DMA drivers, DMA domain schedulers → dai-legacy.c, host-legacy.c with the legacy driver layer, #11517 step 14

After #11503 and #11497, no firmware built with native drivers uses the notifier. The DMA events are only used with CONFIG_ZEPHYR_NATIVE_DRIVERS=n (acp_6_0, mt8186, mt8188, mt8195, mt8365), and by the host library through host-legacy.c.

Testing

  • Per commit, compared with main:
    • Builds: tgl, tgl-h, mtl, lnl, ptl, wcl, nvl, imx8, imx8x, imx8m, imx8m_cm7, imx8ulp, imx95 and qemu_xtensa, and the extra CI configurations:
      • native_sim IPC3/IPC4 stub builds;
      • imx93 64-bit;
      • PTL with each userspace overlay;
      • PTL with CONFIG_SOF_USERSPACE_PROXY=n;
      • PTL and MTL with os_linux_overlay.conf;llext_relocatable.conf;
      • PTL and TGL with app/debug_stream_overlay.conf, and PTL with that overlay and user-space LL;
      • PTL and WCL with internal_ci_overlay.conf.
    • Comparisons: objects, LLEXT modules and firmware images. The only object changes are the expected ones:
      • patch 1: notifier.c in the imx93 and native_sim stub builds, where the notifier ID count is used;
      • patch 2: the IPC3 dai.c in the IPC3 builds (imx8, imx8x, imx8m, imx8m_cm7, imx8ulp, imx93, imx95 and the IPC3 native_sim stub).
    • Signing: rimage runs for every Intel platform, and the generated configs are unchanged.
    • Cadence xt-clang (RI-2022.10): MTL, PTL and NVL compile.
    • Host library: builds.
    • Documentation: builds as in CI, with no warnings.
  • At the tip:
    • ZTest passes, run as in CI (37 of 37 configurations);
    • the testbench and the tools pass;
    • the include checker passes with --strict for the sources;
    • the platforms that already fail on main (acp_6_0, acp_7_0, acp_7_x, mt8186, mt8188, mt8195, mt8196, mt8365) have unchanged error sets.

All of the above was run on 7cff357 (current main).

🤖 Generated with Claude Code

lrgirdwo and others added 2 commits November 30, 2026 20:45
The webrtc_vad and webrtc_ns2 modules were added with a
NOTIFIER_ID_VAD notifier event for their speech/silence decision, but
neither module posts it: both only log the decision at debug level,
with a TODO to deliver it once there is a consumer. Nothing registers
for it either.

Remove the event, and describe what the modules do in their comments,
Kconfig help, READMEs and topology comments, which still say that they
broadcast it.

Part of the notifier removal for the kernel / user-space partition.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
With Zephyr native drivers, the IPC3 DAI reset unregisters a
NOTIFIER_ID_DMA_COPY callback for the DMA channel. Only the legacy DAI
and host components register for that event (dai-legacy.c and
host-legacy.c), and they are not built with native drivers, so there is
never a callback to remove.

Remove the call. The legacy branch keeps its own.

Part of the notifier removal for the kernel / user-space partition.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants