Skip to content

Conversation

@singalsu
Copy link
Collaborator

The build of template-generic.c would fail if only S24_LE format would be enabled without S32_LE.

The build of template-generic.c would fail if only S24_LE
format would be enabled without S32_LE.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
@singalsu singalsu marked this pull request as ready for review August 20, 2025 14:12
Copilot AI review requested due to automatic review settings August 20, 2025 14:12
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

Fixes a build error in the template component when only S24_LE format is enabled without S32_LE format by correcting a copy-paste error in the preprocessor conditional.

  • Corrected duplicate CONFIG_FORMAT_S32LE condition to properly include CONFIG_FORMAT_S24LE

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

#endif /* CONFIG_FORMAT_S16LE */

#if CONFIG_FORMAT_S32LE || CONFIG_FORMAT_S32LE
#if CONFIG_FORMAT_S32LE || CONFIG_FORMAT_S24LE
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 original line had CONFIG_FORMAT_S32LE duplicated instead of CONFIG_FORMAT_S24LE. This fix correctly enables the S32/S24 processing function when either S32_LE or S24_LE formats are configured, resolving the build failure when only S24_LE is enabled.

Copilot uses AI. Check for mistakes.
@kv2019i kv2019i merged commit a71a460 into thesofproject:main Aug 22, 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