Skip to content

Commit

Permalink
Tools: Topology2: Fix configuration blobs for Aria
Browse files Browse the repository at this point in the history
The blob data in aria.conf results to illegal value outside of
allowed range 0 - 3 for the attenuation parameter. The new blobs
passthrough.conf, and blobs for parameter values 1 - 3 can be
used instead. The benchmark topologies are changed to use
parameter value 2 (+12 dB level boost target)

Signed-off-by: Seppo Ingalsuo <[email protected]>
  • Loading branch information
singalsu committed Oct 24, 2024
1 parent 8ae5e54 commit dbef83a
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 10 deletions.
6 changes: 6 additions & 0 deletions tools/topology/topology2/cavs-benchmark-hda.conf
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ IncludeByKey.BENCH_CONFIG {
]
Object.Control.bytes."1" {
name '$ANALOG_PLAYBACK_PCM ARIA bytes'
IncludeByKey.BENCH_ARIA_PARAMS {
"passthrough" "include/components/aria/passthrough.conf"
"param_1" "include/components/aria/param_1.conf"
"param_2" "include/components/aria/param_2.conf"
"param_3" "include/components/aria/param_3.conf"
}
}
}
Object.Widget.mixout.1 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ set(components_s24
)

set(component_parameters_s24
"BENCH_ARIA_PARAMS=default"
"BENCH_ARIA_PARAMS=param_2"
)

# Add components with all sample formats
Expand Down
2 changes: 1 addition & 1 deletion tools/topology/topology2/development/tplg-targets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ PREPROCESS_PLUGINS=nhlt,NHLT_BIN=nhlt-sof-nocodec-bt-mtl-lbm.bin"

# CAVS HDA topology for benchmarking performance
# Copier - peak volume - mixin - mixout - aria - peak volume - mixin - mixout - copier
"sof-hda-generic\;sof-hda-benchmark-generic\;HDA_CONFIG=benchmark,BENCH_CONFIG=benchmark"
"sof-hda-generic\;sof-hda-benchmark-generic\;HDA_CONFIG=benchmark,BENCH_CONFIG=benchmark,BENCH_ARIA_PARAMS=param_2"

# Topology to test IPC4 Crossover
"development/cavs-nocodec-crossover\;sof-tgl-nocodec-crossover-2way\;PLATFORM=tgl,\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
Object.Control {
bytes."1" {
name '$ANALOG_CAPTURE_PCM ARIA bytes'
IncludeByKey.BENCH_ARIA_PARAMS {
"passthrough" "include/components/aria/passthrough.conf"
"param_1" "include/components/aria/param_1.conf"
"param_2" "include/components/aria/param_2.conf"
"param_3" "include/components/aria/param_3.conf"
}
}
#mixer."1" {
# name '$ANALOG_CAPTURE_PCM ARIA switch or volume'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
Object.Control {
bytes."1" {
name '$ANALOG_PLAYBACK_PCM ARIA bytes'
IncludeByKey.BENCH_ARIA_PARAMS {
"passthrough" "include/components/aria/passthrough.conf"
"param_1" "include/components/aria/param_1.conf"
"param_2" "include/components/aria/param_2.conf"
"param_3" "include/components/aria/param_3.conf"
}
}
#mixer."1" {
# name '$ANALOG_PLAYBACK_PCM ARIA switch or volume'
Expand Down
8 changes: 0 additions & 8 deletions tools/topology/topology2/include/components/aria.conf
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,6 @@ Class.Widget."aria" {
put 0
}
max 4096
Object.Base.data. 1 {
# attenuation for the aria module
bytes "0x53, 0x4f, 0x46, 0x34, 0x01, 0x00, 0x00, 0x00,
0x4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x01, 0x00, 0x00, 0x00"
}
}

# Attribute categories
Expand Down
10 changes: 10 additions & 0 deletions tools/topology/topology2/include/components/aria/param_1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Exported with script sof_aria_blobs.m 24-Oct-2024
# cd tools/tune/aria; octave sof_aria_blobs.m
Object.Base.data."aria_config" {
bytes "
0x53,0x4f,0x46,0x34,0x01,0x00,0x00,0x00,
0x04,0x00,0x00,0x00,0x00,0xa0,0x01,0x03,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x00,0x00,0x00"
}
10 changes: 10 additions & 0 deletions tools/topology/topology2/include/components/aria/param_2.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Exported with script sof_aria_blobs.m 24-Oct-2024
# cd tools/tune/aria; octave sof_aria_blobs.m
Object.Base.data."aria_config" {
bytes "
0x53,0x4f,0x46,0x34,0x01,0x00,0x00,0x00,
0x04,0x00,0x00,0x00,0x00,0xa0,0x01,0x03,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x00,0x00,0x00"
}
10 changes: 10 additions & 0 deletions tools/topology/topology2/include/components/aria/param_3.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Exported with script sof_aria_blobs.m 24-Oct-2024
# cd tools/tune/aria; octave sof_aria_blobs.m
Object.Base.data."aria_config" {
bytes "
0x53,0x4f,0x46,0x34,0x01,0x00,0x00,0x00,
0x04,0x00,0x00,0x00,0x00,0xa0,0x01,0x03,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x03,0x00,0x00,0x00"
}
10 changes: 10 additions & 0 deletions tools/topology/topology2/include/components/aria/passthrough.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Exported with script sof_aria_blobs.m 24-Oct-2024
# cd tools/tune/aria; octave sof_aria_blobs.m
Object.Base.data."aria_config" {
bytes "
0x53,0x4f,0x46,0x34,0x01,0x00,0x00,0x00,
0x04,0x00,0x00,0x00,0x00,0xa0,0x01,0x03,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00"
}

0 comments on commit dbef83a

Please sign in to comment.