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 20, 2020
1 parent ae0f162 commit 37bc48b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions case-lib/pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

func_pipeline_export()
{
# For legacy HDA platform, there is no topology, we have to exporting pipeline
# information from proc file system.
if ! is_sof_used; then
dlogi "No SOF sound card found, exporting pipeline parameters from proc file system"
local -a proc_pipeline
if ! readarray -t proc_pipeline < <(eval "sof-dump-status.py -e"); then
die "Failed to export pipeline parameters from proc file system"
fi
for line in "${proc_pipeline[@]}"
do
eval "$line"
done
return 0
fi

# 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 37bc48b

Please sign in to comment.