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 <[email protected]>
  • Loading branch information
Amery Song committed Oct 22, 2020
1 parent f85bbfa commit 45fa6ca
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions case-lib/pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

func_pipeline_export()
{
# For legacy HDA platform, there is no topology, we have to exporting pipeline
# information from proc file system.
is_sof_used || {
dlogi "No SOF sound card found, exporting pipeline parameters from proc file system"
source <(sof-dump-status.py -e) ||
die "Failed to export pipeline parameters from proc file system"
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 45fa6ca

Please sign in to comment.