Skip to content

Commit

Permalink
audio: eq_iir: create generic/ipc3/ipc4 source files for eq_iir
Browse files Browse the repository at this point in the history
Create generic ipc3 ipc4 source files and move related code
into these source files.

Signed-off-by: Baofeng Tian <[email protected]>
  • Loading branch information
btian1 authored and lgirdwood committed Oct 20, 2023
1 parent 0153f9f commit 9e0f7ee
Show file tree
Hide file tree
Showing 10 changed files with 874 additions and 696 deletions.
2 changes: 2 additions & 0 deletions src/audio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,11 @@ set(sof_audio_modules mixer volume src asrc eq-fir eq-iir dcblock crossover tdfb
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)
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)
endif()
set(mixer_sources ${mixer_src})
set(asrc_sources asrc/asrc.c asrc/asrc_farrow.c asrc/asrc_farrow_generic.c)
Expand Down
7 changes: 6 additions & 1 deletion src/audio/eq_iir/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 eq_iir.c)
add_local_sources(sof eq_iir.c eq_iir_generic.c)
if(CONFIG_IPC_MAJOR_3)
add_local_sources(sof eq_iir_ipc3.c)
elseif(CONFIG_IPC_MAJOR_4)
add_local_sources(sof eq_iir_ipc4.c)
endif()
Loading

0 comments on commit 9e0f7ee

Please sign in to comment.