Repository navigation
Conversation
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>
Open
2 of 57 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #11306 and #11517: remove two notifier leftovers that do nothing, on the way to removing the notifier.
Patches
lib: notifier: remove the unused VAD event.webrtc_vadandwebrtc_ns2were added with aNOTIFIER_ID_VADevent 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.CONFIG_WEBRTC_NS2_VAD_NOTIFYstays, with its help text corrected: it turns on the decision, which is logged only for now.ipc3: dai: do not unregister a DMA copy callback with native drivers.NOTIFIER_ID_DMA_COPYcallback.dai-legacy.candhost-legacy.cregister for that event, and neither is built with native drivers, so there is never a callback to remove.Functional change
None.
What uses the notifier after this
MIC_PRIVACY_STATE_CHANGEKPB_CLIENT_EVTdetect_test,google_hotword_detect,kpb_service_bridge→ KPBDMA_COPY,DMA_IRQ,DMA_DOMAIN_CHANGEdai-legacy.c,host-legacy.cAfter #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 throughhost-legacy.c.Testing
CONFIG_SOF_USERSPACE_PROXY=n;os_linux_overlay.conf;llext_relocatable.conf;app/debug_stream_overlay.conf, and PTL with that overlay and user-space LL;internal_ci_overlay.conf.notifier.cin the imx93 and native_sim stub builds, where the notifier ID count is used;dai.cin the IPC3 builds (imx8, imx8x, imx8m, imx8m_cm7, imx8ulp, imx93, imx95 and the IPC3 native_sim stub).--strictfor the sources;All of the above was run on 7cff357 (current main).
🤖 Generated with Claude Code