Skip to content

Commit

Permalink
audio: tdfb: split ipc3 and ipc4 specific code
Browse files Browse the repository at this point in the history
Split out ipc3 and ipc4 specific code from tdfb module, also
refined header files for new source file.

Signed-off-by: Baofeng Tian <[email protected]>
  • Loading branch information
btian1 committed Nov 9, 2023
1 parent 4267800 commit db94846
Show file tree
Hide file tree
Showing 12 changed files with 496 additions and 388 deletions.
2 changes: 2 additions & 0 deletions src/audio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,12 @@ if(CONFIG_IPC_MAJOR_3)
set(volume_sources volume/volume.c volume/volume_generic.c volume/volume_ipc3.c)
set(src_sources src/src.c src/src_ipc3.c src/src_generic.c)
set(eq-iir_sources eq_iir/eq_iir_ipc3.c eq_iir/eq_iir_generic.c)
set(tdfb_sources tdfb/tdfb_ipc3.c)
elseif(CONFIG_IPC_MAJOR_4)
set(volume_sources volume/volume.c volume/volume_generic.c volume/volume_ipc4.c)
set(src_sources src/src.c src/src_ipc4.c src/src_generic.c)
set(eq-iir_sources eq_iir/eq_iir_ipc4.c eq_iir/eq_iir_generic.c)
set(tdfb_sources tdfb/tdfb_ipc4.c)
endif()
set(mixer_sources ${mixer_src})
set(asrc_sources asrc/asrc.c asrc/asrc_farrow.c asrc/asrc_farrow_generic.c)
Expand Down
5 changes: 5 additions & 0 deletions src/audio/tdfb/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# SPDX-License-Identifier: BSD-3-Clause

add_local_sources(sof tdfb.c tdfb_generic.c tdfb_hifiep.c tdfb_hifi3.c tdfb_direction.c)
if(CONFIG_IPC_MAJOR_3)
add_local_sources(sof tdfb_ipc3.c)
elseif(CONFIG_IPC_MAJOR_4)
add_local_sources(sof tdfb_ipc4.c)
endif()
Loading

0 comments on commit db94846

Please sign in to comment.