Skip to content

Commit 6992c40

Browse files
singalsulgirdwood
authored andcommitted
Tools: Topology: Add topology sof-hda-benchmark-micsel16/24/32
This allows to test the component basics in testbench. The micsel16/24/32 are stereo in/out topologies. The micsel_multich32 topology is stereo in the DAI copier side and 1-8ch in the host copier side. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent e9ad2b0 commit 6992c40

26 files changed

Lines changed: 1199 additions & 0 deletions

tools/topology/topology2/cavs-benchmark-hda.conf

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<include/components/asrc.conf>
66
<include/components/tdfb.conf>
77
<include/components/template_comp.conf>
8+
<include/components/micsel.conf>
89

910
Define {
1011
ANALOG_PLAYBACK_PCM 'Analog Playback'
@@ -39,12 +40,16 @@ Object.PCM.pcm [
3940
name $ANALOG_PLAYBACK_PCM
4041
formats 'S32_LE,S24_LE,S16_LE'
4142
rates "8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000"
43+
channels_min 1
44+
channels_max 8
4245
}
4346
Object.PCM.pcm_caps.2 {
4447
direction "capture"
4548
name $ANALOG_CAPTURE_PCM
4649
formats 'S32_LE,S24_LE,S16_LE'
4750
rates "8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000"
51+
channels_min 1
52+
channels_max 8
4853
}
4954
direction duplex
5055
}
@@ -527,6 +532,26 @@ IncludeByKey.BENCH_CONFIG {
527532
<include/bench/igo_nr_s32.conf>
528533
}
529534

535+
#
536+
# Micsel component
537+
#
538+
539+
"^micsel16$" {
540+
<include/bench/micsel_s16.conf>
541+
}
542+
543+
"^micsel24$" {
544+
<include/bench/micsel_s24.conf>
545+
}
546+
547+
"^micsel32$" {
548+
<include/bench/micsel_s32.conf>
549+
}
550+
551+
"^micsel_multich32$" {
552+
<include/bench/micsel_multich_s32.conf>
553+
}
554+
530555
#
531556
# RTNR component
532557
#

tools/topology/topology2/development/tplg-targets-bench.cmake

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ set(components
1616
"eqfir"
1717
"gain"
1818
"igo_nr"
19+
"micsel"
1920
"rtnr"
2021
"src"
2122
"src_lite"
@@ -32,6 +33,7 @@ set(component_parameters
3233
"BENCH_EQFIR_PARAMS=loudness"
3334
"BENCH_GAIN_PARAMS=default"
3435
"BENCH_IGO_NR_PARAMS=default"
36+
"BENCH_MICSEL_PARAMS=passthrough"
3537
"BENCH_RTNR_PARAMS=default"
3638
"BENCH_SRC_PARAMS=default"
3739
"BENCH_SRC_LITE_PARAMS=default"
@@ -47,6 +49,14 @@ set(component_parameters_s24
4749
"BENCH_ARIA_PARAMS=param_2"
4850
)
4951

52+
set(components_s32
53+
"micsel_multich"
54+
)
55+
56+
set(component_parameters_s32
57+
"BENCH_MICSEL_PARAMS=default"
58+
)
59+
5060
# Add components with all sample formats
5161
foreach(sf ${sampleformats})
5262
foreach(comp bench_param IN ZIP_LISTS components component_parameters)
@@ -63,3 +73,11 @@ foreach(comp bench_param IN ZIP_LISTS components_s24 component_parameters_s24)
6373
#message(STATUS "Item=" ${item})
6474
list(APPEND TPLGS "${item}")
6575
endforeach()
76+
77+
set (sf "32")
78+
foreach(comp bench_param IN ZIP_LISTS components_s32 component_parameters_s32)
79+
#message(STATUS "Bench_param=" ${bench_param})
80+
set(item "sof-hda-generic\;sof-hda-benchmark-${comp}${sf}\;HDA_CONFIG=benchmark,BENCH_CONFIG=${comp}${sf},${bench_param}")
81+
#message(STATUS "Item=" ${item})
82+
list(APPEND TPLGS "${item}")
83+
endforeach()

0 commit comments

Comments
 (0)