Repository navigation
Conversation
The mix routines are only implemented with the HiFi3 intrinsics of the Cadence compiler. Every other build, including the Zephyr SDK GCC builds of all the Intel platforms, which enable CONFIG_COMP_UP_DOWN_MIXER, replaces them with stubs that call sof_panic(0), so the first block of audio that such an instance processes crashes the DSP. Fail the module init with -ENOTSUP in those builds instead, so that the pipeline that uses the module fails to load with an error message. The stubs are now never called, so leave them empty. The HiFi3 builds are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.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.
Make the up/down mixer fail to load instead of crashing the DSP when it is built without its mix routines.
The mix routines are only implemented with the HiFi3 intrinsics of the Cadence compiler (
#if defined(__XCC__) && XCHAL_HAVE_HIFI3). Every other build, including the Zephyr SDK GCC builds of all the Intel platforms, which enableCONFIG_COMP_UP_DOWN_MIXER, replaces all 29 routines with stubs that callsof_panic(0). The first block of audio such an instance processes therefore crashes the DSP.Changes
up_down_mixer.hdefinesUP_DOWN_MIXER_HAVE_ROUTINESfrom the existing condition, andup_down_mixer_hifi3.cuses it.up_down_mixer_init()logs an error and returns-ENOTSUP, so the pipeline that uses the module fails to load with a message instead of crashing the DSP later.No in-tree topology uses the module.
Functional change
Testing
Tested as a stack of the four Wave D PRs on main 73a7797 (this PR does not depend on the others):
up_down_mixer.candup_down_mixer_hifi3.cchange, in the Intel builds that enable the module; the up/down mixer code of the Cadence builds is unchanged.🤖 Generated with Claude Code