Repository navigation
Conversation
The LLEXT module build missed mfcc_vad.c and mfcc_ipc4.c, so the module had unresolved references to the VAD and IPC4 configuration functions. Build the same sources as the built-in component. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The FFT, matrix, DCT, auditory and window libraries are always built into the base firmware, so when MFCC is built as a loadable module it can't resolve the functions it calls from them. Export those functions. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only CONFIG_COMP_MFCC_MODULE is defined when MFCC is built as a loadable module, so the bespoke capture codec wasn't advertised. Check for both, also where the FFmpeg encoders add the same codec when MFCC doesn't. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
MFCC is built as a loadable module in
app/configs/{mtl,lnl}/modules.conf(the LLEXT CI job), but the module can't be linked at load time. On current main it has 19 undefined symbols that the base firmware doesn't provide:mfcc_get_config,mfcc_set_config,mfcc_ipc_notification_init,mfcc_send_vad_notification,mfcc_vad_initandmfcc_vad_update: the module build doesn't includemfcc_ipc4.candmfcc_vad.c.Changes:
psy_hz_to_mel()andpsy_mel_to_hz(), whichmfcc_vad.ccalls.CONFIG_COMP_MFCC_MODULEis defined then, so it wasn't advertised before.Checked with the LLEXT CI build (
xtensa-build-zephyr.py --overlay=app/configs/<platform>/modules.conf,-Werror) for MTL and LNL. After this series, every undefined symbol ofmfcc.llextis exported byzephyr.elfon both platforms (compared withnm). Not tested on hardware.checkpatch prefers
IS_ENABLED()overCONFIG_FOO || CONFIG_FOO_MODULE. That's a Linux convention: Zephyr'sIS_ENABLED(CONFIG_COMP_MFCC)is false when MFCC is=m.🤖 Generated with Claude Code