-
Notifications
You must be signed in to change notification settings - Fork 350
Audio: Phase Vocoder: Add new component #10541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
singalsu
wants to merge
7
commits into
thesofproject:main
Choose a base branch
from
singalsu:phase_vocoder
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
acbb847
Math: Rename square root function sqrt_int16() to sofm_sqrt_int16()
singalsu be9c9f0
Math: Add 32-bit square root function sofm_sqrt_int32()
singalsu 122b08b
Math: Separate icomplex16 and icomplex32 structs from FFT
singalsu 4e438f3
Math: Add functions to/from polar format for complex numbers
singalsu 38ec2da
Tools: Testbench: Increase copies timeout value
singalsu 2199842
Tools: Topology: Phase Vocoder: Bench topology to test the component
singalsu e816969
Audio: Phase Vocoder: Add new component
singalsu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # SPDX-License-Identifier: BSD-3-Clause | ||
|
|
||
| if(CONFIG_COMP_PHASE_VOCODER STREQUAL "m" AND DEFINED CONFIG_LLEXT) | ||
| add_subdirectory(llext ${PROJECT_BINARY_DIR}/phase_vocoder_llext) | ||
| add_dependencies(app phase_vocoder) | ||
| else() | ||
| add_local_sources(sof phase_vocoder.c) | ||
| add_local_sources(sof phase_vocoder_setup.c) | ||
| add_local_sources(sof phase_vocoder_common.c) | ||
| add_local_sources(sof phase_vocoder-generic.c) | ||
|
|
||
| if(CONFIG_IPC_MAJOR_4) | ||
| add_local_sources(sof phase_vocoder-ipc4.c) | ||
| endif() | ||
| endif() |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # SPDX-License-Identifier: BSD-3-Clause | ||
|
|
||
| config COMP_PHASE_VOCODER | ||
| tristate "Phase Vocoder component" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do you want to make it |
||
| default n | ||
| select MATH_FFT | ||
| select MATH_32BIT_FFT | ||
| help | ||
| Select for phase_vocoder component. The component provides | ||
| render speed control in range 0.5-2.0x. The pitch is | ||
| preserved in audio waveform stretch or shorten. The module | ||
| is using a frequency domain algorithm in STFT domain to | ||
| interpolate magnitude and phase of output IFFT frames from | ||
| input FFT frames. | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # Copyright (c) 2026 Intel Corporation. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| sof_llext_build("phase_vocoder" | ||
| SOURCES ../phase_vocoder.c | ||
| ../phase_vocoder_setup.c | ||
| ../phase_vocoder_common.c | ||
| ../phase_vocoder-generic.c | ||
| ../phase_vocoder-ipc4.c | ||
| LIB openmodules | ||
| ) |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| #include <tools/rimage/config/platform.toml> | ||
| #define LOAD_TYPE "2" | ||
| #include "../phase_vocoder.toml" | ||
|
|
||
| [module] | ||
| count = __COUNTER__ |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you make it modular by default, then please drop
=yfrom all ACE 3.0+ platforms