1717# # no error in dmesg
1818# #
1919
20- source $( dirname ${BASH_SOURCE[0]} ) /../case-lib/lib.sh
20+ source $( dirname " ${BASH_SOURCE[0]} " ) /../case-lib/lib.sh
2121
2222OPT_NAME[' t' ]=' tplg' OPT_DESC[' t' ]=' tplg file, default value is env TPLG: $TPLG'
2323OPT_HAS_ARG[' t' ]=1 OPT_VAL[' t' ]=" $TPLG "
@@ -28,7 +28,9 @@ OPT_HAS_ARG['l']=1 OPT_VAL['l']=3
2828OPT_NAME[' d' ]=' delay' OPT_DESC[' d' ]=' max delay time for state convert'
2929OPT_HAS_ARG[' d' ]=1 OPT_VAL[' d' ]=15
3030
31+ # shellcheck disable=SC2034
3132OPT_NAME[' s' ]=' sof-logger' OPT_DESC[' s' ]=" Open sof-logger trace the data will store at $LOG_ROOT "
33+ # shellcheck disable=SC2034
3234OPT_HAS_ARG[' s' ]=0 OPT_VAL[' s' ]=1
3335
3436# param: $1 -> max delay time for dsp pm status switch
@@ -70,15 +72,15 @@ DEV_LST['capture']='/dev/null'
7072logger_disabled || func_lib_start_log_collect
7173func_pipeline_export " $tplg " " type:any"
7274
73- for idx in $( seq 0 $( expr $PIPELINE_COUNT - 1) )
75+ for idx in $( seq 0 $( expr " $PIPELINE_COUNT " - 1) )
7476do
75- channel=$( func_pipeline_parse_value $idx channel)
76- rate=$( func_pipeline_parse_value $idx rate)
77- fmt=$( func_pipeline_parse_value $idx fmt)
78- dev=$( func_pipeline_parse_value $idx dev)
79- pcm=$( func_pipeline_parse_value $idx pcm)
80- type=$( func_pipeline_parse_value $idx type)
81- snd=$( func_pipeline_parse_value $idx snd)
77+ channel=$( func_pipeline_parse_value " $idx " channel)
78+ rate=$( func_pipeline_parse_value " $idx " rate)
79+ fmt=$( func_pipeline_parse_value " $idx " fmt)
80+ dev=$( func_pipeline_parse_value " $idx " dev)
81+ pcm=$( func_pipeline_parse_value " $idx " pcm)
82+ type=$( func_pipeline_parse_value " $idx " type)
83+ snd=$( func_pipeline_parse_value " $idx " snd)
8284
8385 cmd=" ${APP_LST[$type]} "
8486 dummy_file=" ${DEV_LST[$type]} "
0 commit comments