Skip to content

Commit

Permalink
Tools: Topology2: Add sof-hda-benchmark-aria32-tgl build
Browse files Browse the repository at this point in the history
This patch adds the aria test topologies build. Aria supports
only s32 format so the s16 and s24 versions build is left
out.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
  • Loading branch information
singalsu authored and kv2019i committed Nov 1, 2023
1 parent 6d6637d commit 16975a5
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/topology/topology2/cavs-benchmark-hda.conf
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,14 @@ IncludeByKey.BENCH_CONFIG {
]
}

#
# Aria component
#

"aria32" {
<include/bench/aria_s32.conf>
}

#
# DCblock component
#
Expand Down
16 changes: 16 additions & 0 deletions tools/topology/topology2/development/tplg-targets-bench.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ set(component_parameters
"BENCH_GAIN_PARAMS=default"
)

set(components_s32
"aria"
)

set(component_parameters_s32
"BENCH_ARIA_PARAMS=default"
)

foreach(p ${platforms})
string(TOLOWER ${p} pl)

Expand All @@ -37,4 +45,12 @@ foreach(p ${platforms})
list(APPEND TPLGS "${item}")
endforeach()
endforeach()

# Add components with single format
set (sf "32")
foreach(comp bench_param IN ZIP_LISTS components_s32 component_parameters_s32)
set(item "sof-hda-generic\;sof-hda-benchmark-${comp}${sf}-${pl}\;PLATFORM=${p},HDA_CONFIG=benchmark,BENCH_CONFIG=${comp}${sf},${bench_param}")
#message(STATUS "Item=" ${item})
list(APPEND TPLGS "${item}")
endforeach()
endforeach()
13 changes: 13 additions & 0 deletions tools/topology/topology2/include/bench/aria_controls_capture.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Created initially with script "./bench_comp_generate.sh aria"
# may need edits to modify controls
Object.Control {
bytes."1" {
name '$ANALOG_CAPTURE_PCM ARIA bytes'
}
#mixer."1" {
# name '$ANALOG_CAPTURE_PCM ARIA switch or volume'
#}
#enum."1" {
# name '$ANALOG_CAPTURE_PCM ARIA enum'
#}
}
13 changes: 13 additions & 0 deletions tools/topology/topology2/include/bench/aria_controls_playback.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Created initially with script "./bench_comp_generate.sh aria"
# may need edits to modify controls
Object.Control {
bytes."1" {
name '$ANALOG_PLAYBACK_PCM ARIA bytes'
}
#mixer."1" {
# name '$ANALOG_PLAYBACK_PCM ARIA switch or volume'
#}
#enum."1" {
# name '$ANALOG_PLAYBACK_PCM ARIA enum'
#}
}
19 changes: 19 additions & 0 deletions tools/topology/topology2/include/bench/aria_hda_route.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Created with script "./bench_comp_generate.sh aria"
Object.Base.route [
{
sink 'dai-copier.HDA.$HDA_ANALOG_DAI_NAME.playback'
source 'aria.1.1'
}
{
sink 'aria.1.1'
source 'host-copier.0.playback'
}
{
source 'dai-copier.HDA.$HDA_ANALOG_DAI_NAME.capture'
sink 'aria.3.2'
}
{
source 'aria.3.2'
sink 'host-copier.0.capture'
}
]
13 changes: 13 additions & 0 deletions tools/topology/topology2/include/bench/aria_s32.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Created with script "./bench_comp_generate.sh aria"
Object.Widget.aria.1 {
index 1
<include/bench/one_input_output_format_s32.conf>
<include/bench/aria_controls_playback.conf>
}
Object.Widget.aria.2 {
index 3
<include/bench/one_input_output_format_s32.conf>
<include/bench/aria_controls_capture.conf>
}
<include/bench/host_io_gateway_pipelines_s32.conf>
<include/bench/aria_hda_route.conf>

0 comments on commit 16975a5

Please sign in to comment.