-
Notifications
You must be signed in to change notification settings - Fork 318
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-rtnr16/24/32-<platform>
This patch adds build of hda-generic development topologies to test IGO NR component with all s16/s24/s32 formats. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
- Loading branch information
Showing
8 changed files
with
163 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
43 changes: 43 additions & 0 deletions
43
tools/topology/topology2/include/bench/igo_nr_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,43 @@ | ||
# Created initially with script "./bench_comp_generate.sh igo_nr" | ||
# may need edits to modify controls | ||
Object.Control { | ||
# Un-comment the supported controls in IGO_NR | ||
bytes."1" { | ||
name '$ANALOG_CAPTURE_PCM IGO_NR bytes' | ||
Object.Base.data.1 { | ||
# Data is ipc4 header modified copy from | ||
# tools/topology/topology1/sof/pipe-igonr-capture.m4 | ||
bytes "0x53,0x4f,0x46,0x34, | ||
0x00,0x00,0x00,0x00, | ||
0x44,0x00,0x00,0x00, | ||
0x00,0x00,0x00,0x03, | ||
0x00,0x00,0x00,0x00, | ||
0x00,0x00,0x00,0x00, | ||
0x00,0x00,0x00,0x00, | ||
0x00,0x00,0x00,0x00, | ||
0x00,0x20,0x00,0x00, | ||
0x00,0x00,0x00,0x00, | ||
0x00,0x00,0x00,0x00, | ||
0x01,0x00,0x00,0x00, | ||
0x01,0x00,0x00,0x00, | ||
0x01,0x00,0x00,0x00, | ||
0x01,0x00,0x00,0x00, | ||
0x02,0x00,0x00,0x00, | ||
0x02,0x00,0x00,0x00, | ||
0x02,0x00,0x00,0x00, | ||
0x01,0x00,0x00,0x00, | ||
0x3d,0x00,0x00,0x00, | ||
0x09,0x00,0x00,0x00, | ||
0x00,0x00,0x00,0x00, | ||
0x00,0x20,0x00,0x00, | ||
0x34,0x03,0x00,0x00, | ||
0x00,0x00,0x00,0x00" | ||
} | ||
} | ||
mixer."1" { | ||
name '$ANALOG_CAPTURE_PCM IGO_NR enable' | ||
} | ||
#enum."1" { | ||
# name '$ANALOG_CAPTURE_PCM IGO_NR enum' | ||
#} | ||
} |
43 changes: 43 additions & 0 deletions
43
tools/topology/topology2/include/bench/igo_nr_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,43 @@ | ||
# Created initially with script "./bench_comp_generate.sh igo_nr" | ||
# may need edits to modify controls | ||
Object.Control { | ||
# Un-comment the supported controls in IGO_NR | ||
bytes."1" { | ||
name '$ANALOG_PLAYBACK_PCM IGO_NR bytes' | ||
Object.Base.data.1 { | ||
# Data is ipc4 header modified copy from | ||
# tools/topology/topology1/sof/pipe-igonr-capture.m4 | ||
bytes "0x53,0x4f,0x46,0x34, | ||
0x00,0x00,0x00,0x00, | ||
0x44,0x00,0x00,0x00, | ||
0x00,0x00,0x00,0x03, | ||
0x00,0x00,0x00,0x00, | ||
0x00,0x00,0x00,0x00, | ||
0x00,0x00,0x00,0x00, | ||
0x00,0x00,0x00,0x00, | ||
0x00,0x20,0x00,0x00, | ||
0x00,0x00,0x00,0x00, | ||
0x00,0x00,0x00,0x00, | ||
0x01,0x00,0x00,0x00, | ||
0x01,0x00,0x00,0x00, | ||
0x01,0x00,0x00,0x00, | ||
0x01,0x00,0x00,0x00, | ||
0x02,0x00,0x00,0x00, | ||
0x02,0x00,0x00,0x00, | ||
0x02,0x00,0x00,0x00, | ||
0x01,0x00,0x00,0x00, | ||
0x3d,0x00,0x00,0x00, | ||
0x09,0x00,0x00,0x00, | ||
0x00,0x00,0x00,0x00, | ||
0x00,0x20,0x00,0x00, | ||
0x34,0x03,0x00,0x00, | ||
0x00,0x00,0x00,0x00" | ||
} | ||
} | ||
mixer."1" { | ||
name '$ANALOG_PLAYBACK_PCM IGO_NR enable' | ||
} | ||
#enum."1" { | ||
# name '$ANALOG_PLAYBACK_PCM IGO_NR enum' | ||
#} | ||
} |
19 changes: 19 additions & 0 deletions
19
tools/topology/topology2/include/bench/igo_nr_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 igo_nr" | ||
Object.Base.route [ | ||
{ | ||
sink 'dai-copier.HDA.$HDA_ANALOG_DAI_NAME.playback' | ||
source 'igo_nr.1.1' | ||
} | ||
{ | ||
sink 'igo_nr.1.1' | ||
source 'host-copier.0.playback' | ||
} | ||
{ | ||
source 'dai-copier.HDA.$HDA_ANALOG_DAI_NAME.capture' | ||
sink 'igo_nr.3.2' | ||
} | ||
{ | ||
source 'igo_nr.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 igo_nr" | ||
Object.Widget.igo_nr.1 { | ||
index 1 | ||
<include/bench/one_input_output_format_s16.conf> | ||
<include/bench/igo_nr_controls_playback.conf> | ||
} | ||
Object.Widget.igo_nr.2 { | ||
index 3 | ||
<include/bench/one_input_output_format_s16.conf> | ||
<include/bench/igo_nr_controls_capture.conf> | ||
} | ||
<include/bench/host_io_gateway_pipelines_s16.conf> | ||
<include/bench/igo_nr_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 igo_nr" | ||
Object.Widget.igo_nr.1 { | ||
index 1 | ||
<include/bench/one_input_output_format_s24.conf> | ||
<include/bench/igo_nr_controls_playback.conf> | ||
} | ||
Object.Widget.igo_nr.2 { | ||
index 3 | ||
<include/bench/one_input_output_format_s24.conf> | ||
<include/bench/igo_nr_controls_capture.conf> | ||
} | ||
<include/bench/host_io_gateway_pipelines_s24.conf> | ||
<include/bench/igo_nr_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 igo_nr" | ||
Object.Widget.igo_nr.1 { | ||
index 1 | ||
<include/bench/one_input_output_format_s32.conf> | ||
<include/bench/igo_nr_controls_playback.conf> | ||
} | ||
Object.Widget.igo_nr.2 { | ||
index 3 | ||
<include/bench/one_input_output_format_s32.conf> | ||
<include/bench/igo_nr_controls_capture.conf> | ||
} | ||
<include/bench/host_io_gateway_pipelines_s32.conf> | ||
<include/bench/igo_nr_hda_route.conf> |