forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tools: Topology2: Add sof-hda-benchmark-gain16/24/32-tgl build
This patch adds test topologies build for gain component. Testing of gain can be done with all supported s16/s24/s32 source and sink formats. The topologies normally use only the s32 format internally. Signed-off-by: Seppo Ingalsuo <[email protected]>
- Loading branch information
Showing
8 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
tools/topology/topology2/include/bench/gain_controls_capture.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Created initially with script "./bench_comp_generate.sh gain" | ||
# may need edits to modify controls | ||
Object.Control { | ||
#bytes."1" { | ||
# name '$ANALOG_CAPTURE_PCM GAIN bytes' | ||
# IncludeByKey.BENCH_GAIN_PARAMS { | ||
# "default" "include/components/gain/default.conf" | ||
# } | ||
#} | ||
mixer."1" { | ||
name '$ANALOG_CAPTURE_PCM GAIN volume' | ||
} | ||
#enum."1" { | ||
# name '$ANALOG_CAPTURE_PCM GAIN enum' | ||
#} | ||
} |
16 changes: 16 additions & 0 deletions
16
tools/topology/topology2/include/bench/gain_controls_playback.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Created initially with script "./bench_comp_generate.sh gain" | ||
# may need edits to modify controls | ||
Object.Control { | ||
#bytes."1" { | ||
# name '$ANALOG_PLAYBACK_PCM GAIN bytes' | ||
# IncludeByKey.BENCH_GAIN_PARAMS { | ||
# "default" "include/components/gain/default.conf" | ||
# } | ||
#} | ||
mixer."1" { | ||
name '$ANALOG_PLAYBACK_PCM GAIN volume' | ||
} | ||
#enum."1" { | ||
# name '$ANALOG_PLAYBACK_PCM GAIN enum' | ||
#} | ||
} |
19 changes: 19 additions & 0 deletions
19
tools/topology/topology2/include/bench/gain_hda_route.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Created with script "./bench_comp_generate.sh gain" | ||
Object.Base.route [ | ||
{ | ||
sink 'dai-copier.HDA.$HDA_ANALOG_DAI_NAME.playback' | ||
source 'gain.1.1' | ||
} | ||
{ | ||
sink 'gain.1.1' | ||
source 'host-copier.0.playback' | ||
} | ||
{ | ||
source 'dai-copier.HDA.$HDA_ANALOG_DAI_NAME.capture' | ||
sink 'gain.3.2' | ||
} | ||
{ | ||
source 'gain.3.2' | ||
sink 'host-copier.0.capture' | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Created with script "./bench_comp_generate.sh gain" | ||
Object.Widget.gain.1 { | ||
index 1 | ||
<include/bench/one_input_output_format_s16.conf> | ||
<include/bench/gain_controls_playback.conf> | ||
} | ||
Object.Widget.gain.2 { | ||
index 3 | ||
<include/bench/one_input_output_format_s16.conf> | ||
<include/bench/gain_controls_capture.conf> | ||
} | ||
<include/bench/host_io_gateway_pipelines_s16.conf> | ||
<include/bench/gain_hda_route.conf> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Created with script "./bench_comp_generate.sh gain" | ||
Object.Widget.gain.1 { | ||
index 1 | ||
<include/bench/one_input_output_format_s24.conf> | ||
<include/bench/gain_controls_playback.conf> | ||
} | ||
Object.Widget.gain.2 { | ||
index 3 | ||
<include/bench/one_input_output_format_s24.conf> | ||
<include/bench/gain_controls_capture.conf> | ||
} | ||
<include/bench/host_io_gateway_pipelines_s24.conf> | ||
<include/bench/gain_hda_route.conf> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Created with script "./bench_comp_generate.sh gain" | ||
Object.Widget.gain.1 { | ||
index 1 | ||
<include/bench/one_input_output_format_s32.conf> | ||
<include/bench/gain_controls_playback.conf> | ||
} | ||
Object.Widget.gain.2 { | ||
index 3 | ||
<include/bench/one_input_output_format_s32.conf> | ||
<include/bench/gain_controls_capture.conf> | ||
} | ||
<include/bench/host_io_gateway_pipelines_s32.conf> | ||
<include/bench/gain_hda_route.conf> |