Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/overlays/ptl/dts_overlay.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CONFIG_COMP_IIR=m
CONFIG_COMP_MODULE_ADAPTER=y
CONFIG_DTS_CODEC=y
CONFIG_LLEXT_HEAP_SIZE=64
CONFIG_KCPS_DYNAMIC_CLOCK_CONTROL=n
CONFIG_SOF_STACK_SIZE=8192
2 changes: 1 addition & 1 deletion src/audio/codec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if(zephyr) ### Zephyr ###
add_subdirectory(dts/llext ${PROJECT_BINARY_DIR}/dts_llext)
add_dependencies(app dts)

else(CONFIG_DTS_CODEC)
elseif(CONFIG_DTS_CODEC)
zephyr_library_sources(dts/dts.c)
if (CONFIG_DTS_CODEC_STUB)
zephyr_library_sources(dts/dts_stub.c)
Expand Down
2 changes: 1 addition & 1 deletion src/audio/codec/dts/dts.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
1, 0, 0xfeef, 0xf, 0xf, 0x1ff]

REM # mod_cfg [PAR_0 PAR_1 PAR_2 PAR_3 IS_BYTES CPS IBS OBS MOD_FLAGS CPC OBLS]
mod_cfg = [0, 0, 0, 0, 296, 5000000, 384, 384, 0, 5000, 0]
mod_cfg = [0, 0, 0, 0, 2048, 5000000, 384, 384, 0, 5000, 0]

index = __COUNTER__
22 changes: 15 additions & 7 deletions src/audio/codec/dts/llext/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@
# SPDX-License-Identifier: Apache-2.0

if(CONFIG_DTS_CODEC_STUB)
sof_llext_build("dts"
SOURCES ../dts.c
../dts_stub.c
)
target_include_directories(dts_llext_lib PRIVATE
"../../../../../third_party/include"
)
sof_llext_build("dts"
SOURCES ../dts.c
../dts_stub.c
)
target_include_directories(dts_llext_lib PRIVATE
"../../../../../third_party/include"
)
elseif(CONFIG_DTS_CODEC STREQUAL "m")
sof_llext_build("dts"
SOURCES ../dts.c
INCLUDES "${sof_top_dir}/third_party/include"
LIBS_PATH "${sof_top_dir}/third_party/lib/"
LIBS dts-sof-interface-i32 m c gcc
)

else()
message(FATAL_ERROR "Add library linking support in src/audio/codec/dts/llext/CMakeLists.txt")
endif()
4 changes: 4 additions & 0 deletions tools/rimage/config/ptl.toml.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ index = __COUNTER__
#include <audio/tdfb/tdfb.toml>
#endif

#if defined(CONFIG_DTS_CODEC) || defined(LLEXT_FORCE_ALL_MODULAR)
#include <audio/codec/dts/dts.toml>
#endif

#if defined(CONFIG_COMP_RTNR) || defined(LLEXT_FORCE_ALL_MODULAR)
#include <audio/rtnr/rtnr.toml>
#endif
Expand Down
Loading