Skip to content

Commit 56a710c

Browse files
committed
Audio: Phase Vocoder: Add source files for new component
WIP Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 5eeb9af commit 56a710c

11 files changed

Lines changed: 1626 additions & 0 deletions
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# SPDX-License-Identifier: BSD-3-Clause
2+
3+
if(CONFIG_COMP_PHASE_VOCODER STREQUAL "m" AND DEFINED CONFIG_LLEXT)
4+
add_subdirectory(llext ${PROJECT_BINARY_DIR}/phase_vocoder_llext)
5+
add_dependencies(app phase_vocoder)
6+
else()
7+
add_local_sources(sof phase_vocoder.c)
8+
add_local_sources(sof phase_vocoder_setup.c)
9+
add_local_sources(sof phase_vocoder_common.c)
10+
add_local_sources(sof phase_vocoder-generic.c)
11+
12+
if(CONFIG_IPC_MAJOR_4)
13+
add_local_sources(sof phase_vocoder-ipc4.c)
14+
endif()
15+
endif()

src/audio/phase_vocoder/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SPDX-License-Identifier: BSD-3-Clause
2+
3+
config COMP_PHASE_VOCODER
4+
tristate "Phase Vocoder component"
5+
default n
6+
select MATH_FFT
7+
select MATH_32BIT_FFT
8+
help
9+
Select for phase_vocoder component. The component provides
10+
render speed control in range 0.5-2.0 while preserving
11+
audio content pitch.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright (c) 2026 Intel Corporation.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
sof_llext_build("phase_vocoder"
5+
SOURCES ../phase_vocoder.c
6+
../phase_vocoder_setup.c
7+
../phase_vocoder_common.c
8+
../phase_vocoder-generic.c
9+
../phase_vocoder-ipc4.c
10+
LIB openmodules
11+
)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include <tools/rimage/config/platform.toml>
2+
#define LOAD_TYPE "2"
3+
#include "../phase_vocoder.toml"
4+
5+
[module]
6+
count = __COUNTER__

0 commit comments

Comments
 (0)