File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,9 +121,7 @@ if(NOT CONFIG_COMP_MODULE_SHARED_LIBRARY_BUILD)
121121 add_subdirectory (mic_privacy_manager )
122122 endif ()
123123 if (CONFIG_COMP_TONE)
124- add_local_sources (sof
125- tone.c
126- )
124+ add_subdirectory (tone )
127125 endif ()
128126 if (CONFIG_ZEPHYR_NATIVE_DRIVERS)
129127 list (APPEND base_files host-zephyr.c)
Original file line number Diff line number Diff line change @@ -93,13 +93,6 @@ config COMP_STUBS
9393 Select to force all 3P blocks to link against stubs rather than their libraries. This
9494 should only be used in testing environments like fuzzers or CI.
9595
96- config COMP_TONE
97- bool "Tone component"
98- select CORDIC_FIXED
99- help
100- Select for Tone component.
101- Warning: This component is deprecated and will be removed from SOF v2.8.
102-
10396config COMP_KPB
10497 bool "KPB component"
10598 default y
@@ -154,6 +147,7 @@ rsource "src/Kconfig"
154147rsource "tdfb/Kconfig"
155148rsource "template/Kconfig"
156149rsource "tensorflow/Kconfig"
150+ rsource "tone/Kconfig"
157151rsource "up_down_mixer/Kconfig"
158152rsource "volume/Kconfig"
159153# --- End Kconfig Sources (alphabetical order) ---
Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: BSD-3-Clause
2+
3+ if (CONFIG_COMP_TONE STREQUAL "m" AND DEFINED CONFIG_LLEXT)
4+ add_subdirectory (llext ${PROJECT_BINARY_DIR} /tone_llext )
5+ add_dependencies (app tone )
6+ else ()
7+ if (CONFIG_IPC_MAJOR_3)
8+ add_local_sources (sof tone.c )
9+ elseif (CONFIG_IPC_MAJOR_4)
10+ add_local_sources (sof tone-ipc4.c )
11+ endif ()
12+ endif ()
Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: BSD-3-Clause
2+
3+ config COMP_TONE
4+ tristate "Tone component"
5+ default m if LIBRARY_DEFAULT_MODULAR
6+ default y
7+ depends on COMP_MODULE_ADAPTER
8+ depends on IPC_MAJOR_4
9+ select CORDIC_FIXED
10+ help
11+ Select for Tone component. This component is used to generate
12+ audio tones (sine waves) at specified frequencies when the Tone
13+ mode is enabled. The two other modes it supports are silence where
14+ it generates 0s and passthrough where the input is passed to the output.
15+ Warning: This component is deprecated for IPC_MAJOR_3.
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2025 Intel Corporation.
2+ # SPDX-License-Identifier: Apache-2.0
3+
4+ sof_llext_build ("tone"
5+ SOURCES ../tone-ipc4.c
6+ LIB openmodules
7+ )
Original file line number Diff line number Diff line change 1+ #include <tools/rimage/config/platform.toml>
2+ #define LOAD_TYPE "2"
3+ #include "../tone.toml"
4+
5+ [module ]
6+ count = __COUNTER__
You can’t perform that action at this time.
0 commit comments