Skip to content

Audio: SRC: Fix return code for failed delay lines allocate#10701

Open
singalsu wants to merge 1 commit intothesofproject:mainfrom
singalsu:src_return_enomem
Open

Audio: SRC: Fix return code for failed delay lines allocate#10701
singalsu wants to merge 1 commit intothesofproject:mainfrom
singalsu:src_return_enomem

Conversation

@singalsu
Copy link
Copy Markdown
Collaborator

The proper return code is -ENOMEM. The -EINVAL makes this look like at higher logs level a component internal failure that it isn't.

The proper return code is -ENOMEM. The -EINVAL makes this
look like at higher logs level a component internal failure
that it isn't.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
@singalsu singalsu marked this pull request as ready for review April 14, 2026 08:29
@singalsu singalsu requested a review from abonislawski as a code owner April 14, 2026 08:29
Copilot AI review requested due to automatic review settings April 14, 2026 08:29
Copy link
Copy Markdown
Contributor

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 corrects the error code returned when delay line allocation fails in the SRC module, so failures are reported as an out-of-memory condition rather than an invalid-argument/internal failure.

Changes:

  • Change the return code on cd->delay_lines allocation failure from -EINVAL to -ENOMEM.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@singalsu singalsu requested review from kv2019i and lgirdwood April 14, 2026 12:07
Copy link
Copy Markdown
Collaborator

@lyakh lyakh left a comment

Choose a reason for hiding this comment

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

could've removed an additional space while at it but NM ;-)

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.

5 participants