Skip to content

Commit f06da57

Browse files
bkokoszxMarcin Maka
authored andcommitted
smart_amp: add smart amplifier test component
Smart amplifier should be used in following topology: +------------------------------------------+ +------+ | +---+ +-------------+ +---+ +-------+ | | Host |----->|Buf|->| Smart Amp |->|Buf|->|SSP Dai|-----------+ +------+ | +---+ +-------------+ +---+ +-------+ | | +-----------------^------------------------+ | | | +---+ | |Buf| | +---+ | ^ | +-----------------|--------------------------+ | +------+ | +---+ +--------|------+ +---+ +-------+ | | | Host |<-----|Buf|<-| Demux |<-|Buf|<-|SSP Dai|<--------+ +------+ | +---+ +---------------+ +---+ +-------+ | +--------------------------------------------+ Smart amplifier test component does not implement any specific processing algorithm at the moment. I can pass chosen channels from source (buffer between Host and Smart amplifier) or feedback (buffer between Smart amplifier and Demux component) buffers. Those channels are selected by sending proper config to this component. Smart amplifier can be configured via SOF_SMART_AMP_CONFIG or SOF_SMART_AMP_MODEL data (similarly as it happens in detector case). Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
1 parent 4d9244f commit f06da57

File tree

4 files changed

+674
-0
lines changed

4 files changed

+674
-0
lines changed

src/audio/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ if(NOT CONFIG_LIBRARY)
6060
detect_test.c
6161
)
6262
endif()
63+
if(CONFIG_COMP_TEST_SMART_AMP)
64+
add_local_sources(sof
65+
smart_amp_test.c
66+
)
67+
endif()
6368
add_subdirectory(pcm_converter)
6469
if(CONFIG_COMP_ASRC)
6570
add_subdirectory(asrc)

src/audio/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,13 @@ config COMP_DCBLOCK
122122
Select for DC Blocking Filter component. This component filters out
123123
the DC offset which often originates from a microphone's output.
124124

125+
config COMP_TEST_SMART_AMP
126+
depends on CAVS && !CAVS_VERSION_1_5
127+
bool "Smart amplifier test component"
128+
default y
129+
help
130+
Select for test smart amplifier component
131+
125132
config COMP_TEST_KEYPHRASE
126133
bool "KEYPHRASE_TEST component"
127134
default y

0 commit comments

Comments
 (0)