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 <[email protected]>
  • Loading branch information
singalsu committed Oct 23, 2023
1 parent 25fa4c0 commit 5ae5c0d
Show file tree
Hide file tree
Showing 6 changed files with 72 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
6 changes: 6 additions & 0 deletions tools/topology/topology2/development/tplg-targets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,10 @@ foreach(p ${platforms})
)
list(APPEND TPLGS "${items}")
endforeach()

# Add components with single format
set(items
"sof-hda-generic\;sof-hda-benchmark-aria32-${pl}\;PLATFORM=${p},HDA_CONFIG=benchmark,BENCH_CONFIG=aria32"
)
list(APPEND TPLGS "${items}")
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 5ae5c0d

Please sign in to comment.