From e74050d856f0c2f9f65684ac1bbc6f31c02c6bcc Mon Sep 17 00:00:00 2001 From: Joe Cheng Date: Wed, 25 Feb 2026 22:29:27 +0800 Subject: [PATCH 1/4] app : overlays : add dts overlay for PTL This patch adds DTS_CODEC for Intel PTL platform builds. Signed-off-by: Joe Cheng --- app/overlays/ptl/dts_overlay.conf | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 app/overlays/ptl/dts_overlay.conf diff --git a/app/overlays/ptl/dts_overlay.conf b/app/overlays/ptl/dts_overlay.conf new file mode 100644 index 000000000000..793559ad5de7 --- /dev/null +++ b/app/overlays/ptl/dts_overlay.conf @@ -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 From a3dfee1f933f5eb4b5dce683af563dcc426f57b9 Mon Sep 17 00:00:00 2001 From: Joe Cheng Date: Wed, 25 Feb 2026 22:32:45 +0800 Subject: [PATCH 2/4] codec : dts : update cmakefile and toml for llext Update CMakefile and toml to support building DTS to llext module Signed-off-by: Joe Cheng --- src/audio/codec/CMakeLists.txt | 2 +- src/audio/codec/dts/llext/CMakeLists.txt | 22 +++++++++++++++------- tools/rimage/config/ptl.toml.h | 4 ++++ 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/audio/codec/CMakeLists.txt b/src/audio/codec/CMakeLists.txt index 5c4e2c485c21..7b3af4a52374 100644 --- a/src/audio/codec/CMakeLists.txt +++ b/src/audio/codec/CMakeLists.txt @@ -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) diff --git a/src/audio/codec/dts/llext/CMakeLists.txt b/src/audio/codec/dts/llext/CMakeLists.txt index f73dc4d3123b..da7043e10511 100644 --- a/src/audio/codec/dts/llext/CMakeLists.txt +++ b/src/audio/codec/dts/llext/CMakeLists.txt @@ -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() diff --git a/tools/rimage/config/ptl.toml.h b/tools/rimage/config/ptl.toml.h index efe7b895e8c4..e622c8af968e 100644 --- a/tools/rimage/config/ptl.toml.h +++ b/tools/rimage/config/ptl.toml.h @@ -138,6 +138,10 @@ index = __COUNTER__ #include