tools: testbench: Include dcblock in testbench

This commit adds support for running test for dc blocker.

Signed-off-by: Sebastiano Carlucci <scarlucci@google.com>
This commit is contained in:
Sebastiano Carlucci 2020-03-16 17:06:47 -07:00 committed by Liam Girdwood
parent 2a5d1c41b9
commit 60fc730003
5 changed files with 6 additions and 2 deletions

View File

@ -107,7 +107,7 @@ check_optimization(fma -mfma -DOPS_FMA)
check_optimization(hifi2ep -mhifi2ep -DOPS_HIFI2EP)
check_optimization(hifi3 -mhifi3 -DOPS_HIFI3)
set(sof_audio_modules volume src asrc eq-fir eq-iir)
set(sof_audio_modules volume src asrc eq-fir eq-iir dcblock)
# sources for each module
set(volume_sources volume/volume.c volume/volume_generic.c)
@ -115,6 +115,7 @@ set(src_sources src/src.c src/src_generic.c)
set(asrc_sources asrc/asrc.c asrc/asrc_farrow.c asrc/asrc_farrow_generic.c)
set(eq-fir_sources eq_fir/eq_fir.c eq_fir/fir.c)
set(eq-iir_sources eq_iir/eq_iir.c eq_iir/iir.c eq_iir/iir_generic.c)
set(dcblock_sources dcblock/dcblock.c dcblock/dcblock_generic.c)
foreach(audio_module ${sof_audio_modules})
# first compile with no optimizations

View File

@ -18,7 +18,7 @@
#define MAX_LIB_NAME_LEN 256
/* number of widgets types supported in testbench */
#define NUM_WIDGETS_SUPPORTED 6
#define NUM_WIDGETS_SUPPORTED 7
struct testbench_prm {
char *tplg_file; /* topology file to use */

View File

@ -24,6 +24,7 @@ struct shared_lib_table lib_table[NUM_WIDGETS_SUPPORTED] = {
{"asrc", "libsof_asrc.so", SOF_COMP_ASRC, 0, NULL},
{"eq-fir", "libsof_eq-fir.so", SOF_COMP_EQ_FIR, 0, NULL},
{"eq-iir", "libsof_eq-iir.so", SOF_COMP_EQ_IIR, 0, NULL},
{"dcblock", "libsof_dcblock.so", SOF_COMP_DCBLOCK, 0, NULL}
};
/* main firmware context */

View File

@ -52,6 +52,7 @@ enum sof_ipc_process_type {
SOF_PROCESS_CHAN_SELECTOR, /**< Channel Selector */
SOF_PROCESS_MUX,
SOF_PROCESS_DEMUX,
SOF_PROCESS_DCBLOCK,
};
struct sof_topology_token {

View File

@ -33,6 +33,7 @@ static const struct sof_process_types sof_process[] = {
{"CHAN_SELECTOR", SOF_PROCESS_CHAN_SELECTOR, SOF_COMP_SELECTOR},
{"MUX", SOF_PROCESS_MUX, SOF_COMP_MUX},
{"DEMUX", SOF_PROCESS_DEMUX, SOF_COMP_DEMUX},
{"DCBLOCK", SOF_PROCESS_DCBLOCK, SOF_COMP_DCBLOCK}
};
static enum sof_ipc_process_type find_process(const char *name)