Skip to content

Revert "module_adapter: dp: Decrease default heap size from 20k to 16k"#10689

Open
jsarha wants to merge 1 commit intothesofproject:mainfrom
jsarha:db_default_heap_size_back_to_20k
Open

Revert "module_adapter: dp: Decrease default heap size from 20k to 16k"#10689
jsarha wants to merge 1 commit intothesofproject:mainfrom
jsarha:db_default_heap_size_back_to_20k

Conversation

@jsarha
Copy link
Copy Markdown
Contributor

@jsarha jsarha commented Apr 8, 2026

This reverts commit a32d983.

It looks like this causes more trouble than it solves. 16k is not enough heap for 11025Hz to 48000Hz conversion. The inability to have two SRCs active at the same time is not as critical issue as failing some conversions completely.

This reverts commit a32d983.

It looks like this causes more trouble than it solves. 16k is not
enough heap for 11025Hz to 48000Hz conversion. The inability to have
two SRCs active at the same time is not as critical issue as failing
some conversions completely.

Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
@jsarha jsarha requested a review from ranj063 as a code owner April 8, 2026 08:18
Copilot AI review requested due to automatic review settings April 8, 2026 08:18
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

Reverts a prior change that reduced the module adapter DP heap allocation from 20 KiB to 16 KiB, restoring the larger default to avoid failures in certain sample-rate conversions (e.g., 11025 Hz → 48000 Hz) where 16 KiB is insufficient.

Changes:

  • Restore buf_size default from 16 KiB back to 20 KiB in the module adapter DP heap allocation.

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

Copy link
Copy Markdown
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

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

It's a shame jenkins CI is not available now, but custom tests show this does solve the 11025Hz conversion case. #10684 could also help further with being able to use DSP topologies with more concurrent SRCs, and in longer term, ability to pass the heap size from topology (per module) will fix this in more maintainable way (thesofproject/linux#5537 ).

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.

4 participants