Skip to content

Commit d76cad8

Browse files
committed
Fix: Refactor the multiple-pipline.sh
Refactor the multiple-pipline.sh to use initialize_audio_params function. Signed-off-by: Arkadiusz Cholewinski <arkadiuszx.cholewinski@intel.com>
1 parent c7bb56c commit d76cad8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test-case/multiple-pipeline.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,11 @@ func_run_pipeline_with_type()
108108

109109
for idx in "${idx_lst[@]}"
110110
do
111-
channel=$(func_pipeline_parse_value "$idx" channel)
112-
rate=$(func_pipeline_parse_value "$idx" rate)
113-
fmt=$(func_pipeline_parse_value "$idx" fmt)
114-
dev=$(func_pipeline_parse_value "$idx" dev)
115-
pcm=$(func_pipeline_parse_value "$idx" pcm)
111+
initialize_audio_params "$idx"
116112

117113
dlogi "Testing: $pcm [$dev]"
118114

119-
"${APP_LST[$direction]}" -D "$dev" -c "$channel" -r "$rate" -f "$fmt" "${DEV_LST[$direction]}" -q &
115+
"${APP_LST[$direction]}" -D "$dev" -c "$channel" -r "$rate" -f "$fmts" "${DEV_LST[$direction]}" -q &
120116

121117
: $((tmp_count--))
122118
if [ "$tmp_count" -le 0 ]; then return 0; fi

0 commit comments

Comments
 (0)