Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/stub_build_all_ipc3.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ CONFIG_COMP_RTNR=y
# sad->in_channels = audio_stream_get_channels(&source_buffer->stream);
CONFIG_COMP_SMART_AMP=n
CONFIG_MAXIM_DSM=y
CONFIG_SAMPLES=y
CONFIG_SAMPLE_SMART_AMP=y
2 changes: 2 additions & 0 deletions app/stub_build_all_ipc4.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ CONFIG_COMP_ARIA=y
CONFIG_COMP_CHAIN_DMA=y
CONFIG_COMP_UP_DOWN_MIXER=y
CONFIG_IPC_MAJOR_4=y
CONFIG_SAMPLES=y
CONFIG_SAMPLE_SMART_AMP=y
4 changes: 4 additions & 0 deletions src/samples/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ config SAMPLES
help
Select to build sample code

if SAMPLES

rsource "audio/Kconfig"

endif

endmenu
2 changes: 0 additions & 2 deletions src/samples/audio/Kconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# SPDX-License-Identifier: BSD-3-Clause

menu "Audio component samples"
visible if SAMPLES

config SAMPLE_SMART_AMP
depends on CAVS || ACE
bool "Smart amplifier test component"
default y
help
Expand Down
18 changes: 8 additions & 10 deletions zephyr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -683,16 +683,14 @@ zephyr_library_sources_ifdef(CONFIG_COMP_RTNR
${SOF_AUDIO_PATH}/rtnr/rtnr.c
)

if (CONFIG_SAMPLES)
if(CONFIG_IPC_MAJOR_3)
zephyr_library_sources_ifdef(CONFIG_SAMPLE_SMART_AMP
${SOF_SAMPLES_PATH}/audio/smart_amp_test_ipc3.c
)
elseif(CONFIG_IPC_MAJOR_4)
zephyr_library_sources_ifdef(CONFIG_SAMPLE_SMART_AMP
${SOF_SAMPLES_PATH}/audio/smart_amp_test_ipc4.c
)
endif()
if(CONFIG_IPC_MAJOR_3)
zephyr_library_sources_ifdef(CONFIG_SAMPLE_SMART_AMP
${SOF_SAMPLES_PATH}/audio/smart_amp_test_ipc3.c
)
elseif(CONFIG_IPC_MAJOR_4)
zephyr_library_sources_ifdef(CONFIG_SAMPLE_SMART_AMP
${SOF_SAMPLES_PATH}/audio/smart_amp_test_ipc4.c
)
endif()

zephyr_library_sources_ifdef(CONFIG_COMP_RTNR_STUB
Expand Down