Skip to content

Commit 9e22312

Browse files
committed
Tools: Topology: Add test topology for sound dose component
Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent cf5c856 commit 9e22312

8 files changed

Lines changed: 111 additions & 0 deletions

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

Lines changed: 17 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/sound_dose.conf>
89

910
Define {
1011
ANALOG_PLAYBACK_PCM 'Analog Playback'
@@ -543,6 +544,22 @@ IncludeByKey.BENCH_CONFIG {
543544
<include/bench/rtnr_s32.conf>
544545
}
545546

547+
#
548+
# Sound Dose component
549+
#
550+
551+
"sound_dose16" {
552+
<include/bench/sound_dose_s16.conf>
553+
}
554+
555+
"sound_dose24" {
556+
<include/bench/sound_dose_s24.conf>
557+
}
558+
559+
"sound_dose32" {
560+
<include/bench/sound_dose_s32.conf>
561+
}
562+
546563
#
547564
# SRC component
548565
#

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ set(components
1717
"gain"
1818
"igo_nr"
1919
"rtnr"
20+
"sound_dose"
2021
"src"
2122
"src_lite"
2223
"tdfb"
@@ -33,6 +34,7 @@ set(component_parameters
3334
"BENCH_GAIN_PARAMS=default"
3435
"BENCH_IGO_NR_PARAMS=default"
3536
"BENCH_RTNR_PARAMS=default"
37+
"BENCH_SOUND_DOSE_PARAMS=default"
3638
"BENCH_SRC_PARAMS=default"
3739
"BENCH_SRC_LITE_PARAMS=default"
3840
"BENCH_TDFB_PARAMS=default"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Created initially with script "./bench_comp_generate.sh sound_dose"
2+
# may need edits to modify controls
3+
Object.Control {
4+
# Un-comment the supported controls in SOUND_DOSE
5+
#bytes."1" {
6+
# name '$ANALOG_CAPTURE_PCM SOUND_DOSE bytes'
7+
# IncludeByKey.BENCH_SOUND_DOSE_PARAMS {
8+
# "default" "include/components/sound_dose/default.conf"
9+
# }
10+
#}
11+
#mixer."1" {
12+
# name '$ANALOG_CAPTURE_PCM SOUND_DOSE switch or volume'
13+
#}
14+
#enum."1" {
15+
# name '$ANALOG_CAPTURE_PCM SOUND_DOSE enum'
16+
#}
17+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Created initially with script "./bench_comp_generate.sh sound_dose"
2+
# may need edits to modify controls
3+
Object.Control {
4+
# Un-comment the supported controls in SOUND_DOSE
5+
#bytes."1" {
6+
# name '$ANALOG_PLAYBACK_PCM SOUND_DOSE bytes'
7+
# IncludeByKey.BENCH_SOUND_DOSE_PARAMS {
8+
# "default" "include/components/sound_dose/default.conf"
9+
# }
10+
#}
11+
#mixer."1" {
12+
# name '$ANALOG_PLAYBACK_PCM SOUND_DOSE switch or volume'
13+
#}
14+
#enum."1" {
15+
# name '$ANALOG_PLAYBACK_PCM SOUND_DOSE enum'
16+
#}
17+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Created with script "./bench_comp_generate.sh sound_dose"
2+
Object.Base.route [
3+
{
4+
sink 'dai-copier.HDA.$HDA_ANALOG_DAI_NAME.playback'
5+
source 'sound_dose.1.1'
6+
}
7+
{
8+
sink 'sound_dose.1.1'
9+
source 'host-copier.0.playback'
10+
}
11+
{
12+
source 'dai-copier.HDA.$HDA_ANALOG_DAI_NAME.capture'
13+
sink 'sound_dose.3.2'
14+
}
15+
{
16+
source 'sound_dose.3.2'
17+
sink 'host-copier.0.capture'
18+
}
19+
]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Created with script "./bench_comp_generate.sh sound_dose"
2+
Object.Widget.sound_dose.1 {
3+
index 1
4+
<include/bench/one_input_output_format_s16.conf>
5+
<include/bench/sound_dose_controls_playback.conf>
6+
}
7+
Object.Widget.sound_dose.2 {
8+
index 3
9+
<include/bench/one_input_output_format_s16.conf>
10+
<include/bench/sound_dose_controls_capture.conf>
11+
}
12+
<include/bench/host_io_gateway_pipelines_s16.conf>
13+
<include/bench/sound_dose_hda_route.conf>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Created with script "./bench_comp_generate.sh sound_dose"
2+
Object.Widget.sound_dose.1 {
3+
index 1
4+
<include/bench/one_input_output_format_s24.conf>
5+
<include/bench/sound_dose_controls_playback.conf>
6+
}
7+
Object.Widget.sound_dose.2 {
8+
index 3
9+
<include/bench/one_input_output_format_s24.conf>
10+
<include/bench/sound_dose_controls_capture.conf>
11+
}
12+
<include/bench/host_io_gateway_pipelines_s24.conf>
13+
<include/bench/sound_dose_hda_route.conf>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Created with script "./bench_comp_generate.sh sound_dose"
2+
Object.Widget.sound_dose.1 {
3+
index 1
4+
<include/bench/one_input_output_format_s32.conf>
5+
<include/bench/sound_dose_controls_playback.conf>
6+
}
7+
Object.Widget.sound_dose.2 {
8+
index 3
9+
<include/bench/one_input_output_format_s32.conf>
10+
<include/bench/sound_dose_controls_capture.conf>
11+
}
12+
<include/bench/host_io_gateway_pipelines_s32.conf>
13+
<include/bench/sound_dose_hda_route.conf>

0 commit comments

Comments
 (0)