File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # This function will evaluate pipeline parameter related shell code generated by
4+ # - sof-tplgreader.py (for SOF, pipeline parameters dumped from topology)
5+ # - sof-dump-status.py (for legacy HDA, pipeline paramters dumped from proc)
6+ # Args: $1: SOF topology path
7+ # $2: Pipeline filter in string form
8+ # Note: for legacy HDA, topology is not present, $1 will be empty.
39func_pipeline_export ()
410{
11+ # For legacy HDA platform, there is no topology, we have to export pipeline
12+ # parameters from proc file system.
13+ is_sof_used || {
14+ filter_str=" $2 "
15+ dlogi " No SOF sound card found, exporting pipeline parameters from proc file system"
16+ tmp_pipeline_params=$( mktemp /tmp/pipeline-params.XXXXXXXX)
17+ sof-dump-status.py -e " $filter_str " > " $tmp_pipeline_params " ||
18+ die " Failed to export pipeline parameters from proc file system"
19+ source " $tmp_pipeline_params " || return 1
20+ rm " $tmp_pipeline_params "
21+ return 0
22+ }
23+
524 # no parameter input the function
625 if [ $# -lt 1 ]; then
726 die " Topology file name is not specified, unable to run command: $SCRIPT_NAME "
You can’t perform that action at this time.
0 commit comments