Tools: Topology2: Add sof-hda-benchmark-rtnr16/24/32-<platform>

This patch adds build of hda-generic development topologies to
test RTNR component with all s16/s24/s32 formats.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2023-11-02 17:28:14 +02:00 committed by Kai Vehmanen
parent 0e787e60c4
commit 2ab6fe528d
8 changed files with 123 additions and 0 deletions

View File

@ -1,4 +1,5 @@
<include/components/dcblock.conf>
<include/components/rtnr.conf>
Define {
ANALOG_PLAYBACK_PCM 'Analog Playback'
@ -284,4 +285,20 @@ IncludeByKey.BENCH_CONFIG {
"gain32" {
<include/bench/gain_s32.conf>
}
#
# RTNR component
#
"rtnr16" {
<include/bench/rtnr_s16.conf>
}
"rtnr24" {
<include/bench/rtnr_s24.conf>
}
"rtnr32" {
<include/bench/rtnr_s32.conf>
}
}

View File

@ -15,6 +15,7 @@ set(components
"eqiir"
"eqfir"
"gain"
"rtnr"
)
set(component_parameters
@ -24,6 +25,7 @@ set(component_parameters
"BENCH_EQIIR_PARAMS=highpass_50hz_0db_48khz"
"BENCH_EQFIR_PARAMS=loudness"
"BENCH_GAIN_PARAMS=default"
"BENCH_RTNR_PARAMS=default"
)
set(components_s32

View File

@ -0,0 +1,23 @@
# Created initially with script "./bench_comp_generate.sh rtnr"
# may need edits to modify controls
Object.Control {
# Un-comment the supported controls in RTNR
bytes."1" {
name '$ANALOG_CAPTURE_PCM RTNR bytes'
IncludeByKey.BENCH_RTNR_PARAMS {
"default" "include/components/rtnr/default_bytes.conf"
}
}
bytes."2" {
name '$ANALOG_CAPTURE_PCM RTNR data'
IncludeByKey.BENCH_RTNR_PARAMS {
"default" "include/components/rtnr/default_data.conf"
}
}
mixer."1" {
name '$ANALOG_CAPTURE_PCM RTNR enable'
}
#enum."1" {
# name '$ANALOG_CAPTURE_PCM RTNR enum'
#}
}

View File

@ -0,0 +1,23 @@
# Created initially with script "./bench_comp_generate.sh rtnr"
# may need edits to modify controls
Object.Control {
# Un-comment the supported controls in RTNR
bytes."1" {
name '$ANALOG_PLAYBACK_PCM RTNR bytes'
IncludeByKey.BENCH_RTNR_PARAMS {
"default" "include/components/rtnr/default_bytes.conf"
}
}
bytes."2" {
name '$ANALOG_PLAYBACK_PCM RTNR data'
IncludeByKey.BENCH_RTNR_PARAMS {
"default" "include/components/rtnr/default_data.conf"
}
}
mixer."1" {
name '$ANALOG_PLAYBACK_PCM RTNR enable'
}
#enum."1" {
# name '$ANALOG_PLAYBACK_PCM RTNR enum'
#}
}

View File

@ -0,0 +1,19 @@
# Created with script "./bench_comp_generate.sh rtnr"
Object.Base.route [
{
sink 'dai-copier.HDA.$HDA_ANALOG_DAI_NAME.playback'
source 'rtnr.1.1'
}
{
sink 'rtnr.1.1'
source 'host-copier.0.playback'
}
{
source 'dai-copier.HDA.$HDA_ANALOG_DAI_NAME.capture'
sink 'rtnr.3.2'
}
{
source 'rtnr.3.2'
sink 'host-copier.0.capture'
}
]

View File

@ -0,0 +1,13 @@
# Created with script "./bench_comp_generate.sh rtnr"
Object.Widget.rtnr.1 {
index 1
<include/bench/one_input_output_format_s16.conf>
<include/bench/rtnr_controls_playback.conf>
}
Object.Widget.rtnr.2 {
index 3
<include/bench/one_input_output_format_s16.conf>
<include/bench/rtnr_controls_capture.conf>
}
<include/bench/host_io_gateway_pipelines_s16.conf>
<include/bench/rtnr_hda_route.conf>

View File

@ -0,0 +1,13 @@
# Created with script "./bench_comp_generate.sh rtnr"
Object.Widget.rtnr.1 {
index 1
<include/bench/one_input_output_format_s24.conf>
<include/bench/rtnr_controls_playback.conf>
}
Object.Widget.rtnr.2 {
index 3
<include/bench/one_input_output_format_s24.conf>
<include/bench/rtnr_controls_capture.conf>
}
<include/bench/host_io_gateway_pipelines_s24.conf>
<include/bench/rtnr_hda_route.conf>

View File

@ -0,0 +1,13 @@
# Created with script "./bench_comp_generate.sh rtnr"
Object.Widget.rtnr.1 {
index 1
<include/bench/one_input_output_format_s32.conf>
<include/bench/rtnr_controls_playback.conf>
}
Object.Widget.rtnr.2 {
index 3
<include/bench/one_input_output_format_s32.conf>
<include/bench/rtnr_controls_capture.conf>
}
<include/bench/host_io_gateway_pipelines_s32.conf>
<include/bench/rtnr_hda_route.conf>