Skip to content

Commit f3bed6a

Browse files
committed
audio: codec_adapter: add DAX audio processing module
* Add DAX audio processing module * Add topology support for MTL platform * Add testbench topology support Signed-off-by: Jun Lai <jun.lai@dolby.com>
1 parent 7a0d25c commit f3bed6a

26 files changed

+2631
-0
lines changed

src/arch/host/configs/library_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ CONFIG_COMP_ARIA=y
22
CONFIG_COMP_ASRC=y
33
CONFIG_COMP_CROSSOVER=y
44
CONFIG_COMP_DCBLOCK=y
5+
CONFIG_COMP_DOLBY_DAX_AUDIO_PROCESSING=y
56
CONFIG_COMP_DRC=y
67
CONFIG_COMP_FIR=y
78
CONFIG_COMP_GOOGLE_RTC_AUDIO_PROCESSING=y

src/audio/module_adapter/CMakeLists.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,23 @@ if(zephyr) ### Zephyr ###
2525
zephyr_library_import(xa_mp3_enc ${CONFIG_CADENCE_CODEC_MP3_ENC_LIB})
2626
endif()
2727

28+
if (CONFIG_COMP_DOLBY_DAX_AUDIO_PROCESSING)
29+
zephyr_library_sources(
30+
module/dolby/dax.c
31+
)
32+
if (CONFIG_COMP_DOLBY_DAX_AUDIO_PROCESSING_MOCK)
33+
zephyr_library_sources(
34+
module/dolby/dax_mock.c
35+
)
36+
else()
37+
target_link_libraries(SOF INTERFACE m)
38+
target_link_libraries(SOF INTERFACE c)
39+
zephyr_library_import(dax_effect
40+
${CMAKE_CURRENT_LIST_DIR}/module/dolby/lib/libdax.a
41+
)
42+
endif()
43+
endif()
44+
2845
zephyr_include_directories_ifdef(CONFIG_LIBRARY_MANAGER
2946
${SOF_SRC_PATH}/include/sof/audio/module_adapter/iadk/
3047
${SOF_SRC_PATH}/include/sof/audio/module_adapter/library/
@@ -112,6 +129,16 @@ if(NOT CONFIG_COMP_MODULE_SHARED_LIBRARY_BUILD)
112129

113130
endif()
114131

132+
if(CONFIG_COMP_DOLBY_DAX_AUDIO_PROCESSING)
133+
add_local_sources(sof module/dolby/dax.c)
134+
if (CONFIG_COMP_DOLBY_DAX_AUDIO_PROCESSING_MOCK)
135+
add_local_sources(sof module/dolby/dax_mock.c)
136+
else()
137+
sof_add_static_library(dax_effect
138+
${CMAKE_CURRENT_LIST_DIR}/module/dolby/lib/libdax.a)
139+
endif()
140+
endif()
141+
115142
if(CONFIG_PASSTHROUGH_CODEC)
116143
add_local_sources(sof module/passthrough.c)
117144
endif()

src/audio/module_adapter/Kconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,23 @@ if CADENCE_CODEC
175175

176176
endif # Cadence
177177

178+
config COMP_DOLBY_DAX_AUDIO_PROCESSING
179+
bool "Dolby DAX audio processing component"
180+
default n
181+
help
182+
Select to include Dolby DAX component. Dolby DAX component implements DAX API.
183+
API definition together with pre-compiled library is shared by Dolby.
184+
If library is not provided, COMP_DOLBY_DAX_AUDIO_PROCESSING_MOCK must be true,
185+
then the input will be copied to the output.
186+
187+
config COMP_DOLBY_DAX_AUDIO_PROCESSING_MOCK
188+
bool "Dolby DAX audio processing component mock"
189+
default y if COMP_STUBS
190+
depends on COMP_DOLBY_DAX_AUDIO_PROCESSING
191+
help
192+
Mock DAX audio processing.
193+
It allows for compilation check and basic audio flow checking.
194+
178195
config PASSTHROUGH_CODEC
179196
bool "Passthrough codec"
180197
help

0 commit comments

Comments
 (0)