-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Topology: Topology2: Add sof-hda-benchmark-src32-<platform>
This patch adds build of hda-generic development topologies to test SRC component with s32 format. Signed-off-by: Andrula Song <[email protected]>
- Loading branch information
1 parent
d66ad57
commit 38e680a
Showing
5 changed files
with
130 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
84 changes: 84 additions & 0 deletions
84
tools/topology/topology2/include/bench/host_io_gateway_pipelines_src.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,84 @@ | ||
Object.Pipeline { | ||
host-gateway-playback [ | ||
{ | ||
index 1 | ||
|
||
Object.Widget.host-copier.1 { | ||
stream_name $ANALOG_PLAYBACK_PCM | ||
pcm_id 0 | ||
<include/components/src_format_sxx_to_s32_convert.conf> | ||
} | ||
} | ||
] | ||
|
||
io-gateway [ | ||
{ | ||
index 2 | ||
direction playback | ||
|
||
Object.Widget.dai-copier.1 { | ||
node_type $HDA_LINK_OUTPUT_CLASS | ||
stream_name $HDA_ANALOG_DAI_NAME | ||
dai_type "HDA" | ||
copier_type "HDA" | ||
num_input_pins 1 | ||
num_input_audio_formats 1 | ||
num_output_audio_formats 1 | ||
Object.Base.input_audio_format [ | ||
{ | ||
in_bit_depth 32 | ||
in_valid_bit_depth 32 | ||
} | ||
] | ||
Object.Base.output_audio_format [ | ||
{ | ||
out_bit_depth 32 | ||
out_valid_bit_depth 32 | ||
} | ||
] | ||
} | ||
} | ||
] | ||
|
||
host-gateway-capture [ | ||
{ | ||
index 3 | ||
Object.Widget.host-copier.1 { | ||
stream_name $ANALOG_CAPTURE_PCM | ||
pcm_id 0 | ||
<include/components/src_format_s32_to_sxx_convert.conf> | ||
} | ||
} | ||
] | ||
|
||
io-gateway-capture [ | ||
{ | ||
index 4 | ||
direction capture | ||
|
||
Object.Widget.dai-copier."1" { | ||
dai_type "HDA" | ||
type "dai_out" | ||
copier_type "HDA" | ||
stream_name $HDA_ANALOG_DAI_NAME | ||
node_type $HDA_LINK_INPUT_CLASS | ||
num_output_pins 1 | ||
num_input_audio_formats 1 | ||
num_output_audio_formats 1 | ||
Object.Base.input_audio_format [ | ||
{ | ||
in_bit_depth 32 | ||
in_valid_bit_depth 32 | ||
} | ||
] | ||
Object.Base.output_audio_format [ | ||
{ | ||
out_bit_depth 32 | ||
out_valid_bit_depth 32 | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
|
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 src" | ||
Object.Base.route [ | ||
{ | ||
sink 'dai-copier.HDA.$HDA_ANALOG_DAI_NAME.playback' | ||
source 'src.1.1' | ||
} | ||
{ | ||
sink 'src.1.1' | ||
source 'host-copier.0.playback' | ||
} | ||
{ | ||
source 'dai-copier.HDA.$HDA_ANALOG_DAI_NAME.capture' | ||
sink 'src.3.2' | ||
} | ||
{ | ||
source 'src.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 src" | ||
Object.Widget.src.1 { | ||
index 1 | ||
rate_out 48000 | ||
<include/components/src_format_s32_convert_to_48k.conf> | ||
} | ||
Object.Widget.src.2 { | ||
index 3 | ||
rate_in 48000 | ||
<include/components/src_format_s32_convert_from_48k.conf> | ||
} | ||
<include/bench/host_io_gateway_pipelines_src.conf> | ||
<include/bench/src_hda_route.conf> |