Skip to content

Commit

Permalink
pipeline.sh: export proc pipeline info to test case
Browse files Browse the repository at this point in the history
Signed-off-by: Amery Song <chao.song@intel.com>
  • Loading branch information
Amery Song committed Oct 22, 2020
1 parent 371520e commit dd2ac80
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions case-lib/pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

func_pipeline_export()
{
# For legacy HDA platform, there is no topology, we have to exporting pipeline
# information from proc file system.
is_sof_used || {
filter_str="$@"["$#"]
dlogi "No SOF sound card found, exporting pipeline parameters from proc file system"
tmp_pipeline_params=$(mktemp /tmp/pipeline-params.XXXXXXXX)
sof-dump-status.py -e "$filter_str" > "$tmp_pipeline_params" ||
die "Failed to export pipeline parameters from proc file system"
source "$tmp_pipeline_params" || return 1
rm "$tmp_pipeline_params" || true
return 0
}

# no parameter input the function
if [ $# -lt 1 ]; then
die "Topology file name is not specified, unable to run command: $SCRIPT_NAME"
Expand Down

0 comments on commit dd2ac80

Please sign in to comment.