Skip to content

Conversation

@singalsu
Copy link
Collaborator

If build format.h as generic without intrinsics, these modules fail to build due to no header included for HiFi3.

If build format.h as generic without intrinsics, these modules
fail to build due to no header included for HiFi3.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
@singalsu singalsu marked this pull request as ready for review August 20, 2025 13:54
Copilot AI review requested due to automatic review settings August 20, 2025 13:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a build issue where HiFi3-specific modules fail to compile when format.h is built without intrinsics support. The fix adds the necessary HiFi3 header includes to ensure proper compilation.

  • Adds missing xtensa/tie/xt_hifi3.h header include to mixin_mixout HiFi3 implementation
  • Adds conditional HiFi3 header include to KPB module when KPB_HIFI3 is defined

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/audio/mixin_mixout/mixin_mixout_hifi3.c Adds unconditional HiFi3 header include for intrinsics support
src/audio/kpb.c Adds conditional HiFi3 header include when KPB_HIFI3 is defined

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

#include "mixin_mixout.h"

#if SOF_USE_HIFI(3, MIXIN_MIXOUT) || SOF_USE_HIFI(4, MIXIN_MIXOUT)

Copy link

Copilot AI Aug 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The header include should be conditional like in kpb.c to maintain consistency and avoid unnecessary includes when HiFi3 is not being used. Consider wrapping it with appropriate preprocessor conditions.

Suggested change

Copilot uses AI. Check for mistakes.
@lgirdwood lgirdwood merged commit 81bec6a into thesofproject:main Aug 25, 2025
38 of 45 checks passed
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.

3 participants