Skip to content

Commit

Permalink
Audio: Fix the kconfig error of mixin_mixout.
Browse files Browse the repository at this point in the history
Fixes the commit f4d0437 ("Audio: Move components related config
to subfolder").

Due to a copy/paste error, the content of mixin_mixout/Kconfig has
been a copy of aria/Kconfig. This patch fixes the copy/paste error,
and adds IPC version dependence for COMP_MIXER and COMP_MIXIN_MIXOUT.

Signed-off-by: Andrula Song <[email protected]>
  • Loading branch information
andrula-song authored and lgirdwood committed Feb 23, 2024
1 parent 9831a9d commit 97a50e3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 23 deletions.
2 changes: 2 additions & 0 deletions src/audio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ config COMP_TONE

rsource "mixer/Kconfig"

rsource "mixin_mixout/Kconfig"

rsource "mux/Kconfig"

config COMP_KPB
Expand Down
1 change: 1 addition & 0 deletions src/audio/mixer/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

config COMP_MIXER
bool "Mixer component"
depends on IPC_MAJOR_3
default y
help
Select for Mixer component
16 changes: 6 additions & 10 deletions src/audio/mixin_mixout/Kconfig
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# SPDX-License-Identifier: BSD-3-Clause

config COMP_ARIA
bool "ARIA component"
default n
depends on IPC_MAJOR_4
help
Select for Automatic Regressive Input Amplifier Module component
ARIA applies variable gain into incoming signal.
Applied gain is in range <1, 2 power attenuation>
Currently ARIA introduces gain transition and algorithmic
latency equal to 1 ms.
config COMP_MIXIN_MIXOUT
bool "Mixin_mixout component"
depends on IPC_MAJOR_4
default y
help
Select for Mixin_mixout component
24 changes: 11 additions & 13 deletions zephyr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -551,19 +551,17 @@ zephyr_library_sources_ifdef(CONFIG_COMP_KPB
${SOF_AUDIO_PATH}/kpb.c
)

if(CONFIG_IPC_MAJOR_3)
zephyr_library_sources_ifdef(CONFIG_COMP_MIXER
${SOF_AUDIO_PATH}/mixer/mixer.c
${SOF_AUDIO_PATH}/mixer/mixer_generic.c
${SOF_AUDIO_PATH}/mixer/mixer_hifi3.c
)
elseif(CONFIG_IPC_MAJOR_4)
zephyr_library_sources_ifdef(CONFIG_COMP_MIXER
${SOF_AUDIO_PATH}/mixin_mixout/mixin_mixout.c
${SOF_AUDIO_PATH}/mixin_mixout/mixin_mixout_generic.c
${SOF_AUDIO_PATH}/mixin_mixout/mixin_mixout_hifi3.c
)
endif()
zephyr_library_sources_ifdef(CONFIG_COMP_MIXER
${SOF_AUDIO_PATH}/mixer/mixer.c
${SOF_AUDIO_PATH}/mixer/mixer_generic.c
${SOF_AUDIO_PATH}/mixer/mixer_hifi3.c
)

zephyr_library_sources_ifdef(CONFIG_COMP_MIXIN_MIXOUT
${SOF_AUDIO_PATH}/mixin_mixout/mixin_mixout.c
${SOF_AUDIO_PATH}/mixin_mixout/mixin_mixout_generic.c
${SOF_AUDIO_PATH}/mixin_mixout/mixin_mixout_hifi3.c
)

zephyr_library_sources_ifdef(CONFIG_COMP_TONE
${SOF_AUDIO_PATH}/tone.c
Expand Down

0 comments on commit 97a50e3

Please sign in to comment.