Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test-case/multiple-pause-resume.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ rnd_range=$((rnd_max - rnd_min))
[[ $rnd_range -le 0 ]] && dlogw "Error random range scope [ min:$rnd_min - max:$rnd_max ]" && exit 2

tplg=${OPT_VAL['t']}
func_pipeline_export "$tplg" "type:any"
func_pipeline_export "$tplg" "type:any & ~pcm:Amplifier Reference"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would go one step further and remove 'Amplifier'.

We've seen cases where we talk about 'Echo Reference'.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@plbossart , so you mean that we should remove both smart amplifier pipeline and echo reference pipeline form the test?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"amplifier reference' and 'echo reference' are the same thing, aren't they?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant use ~pcm:Reference

@keqiaozhang keqiaozhang Mar 4, 2022 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here is the output of these 2 pipelines parsed by sof-tplgreader.py:

pcm=Speaker;id=2;type=playback;cap_name=Smart Amplifier Playback 2;fmts=S16_LE S24_LE S32_LE;fmt=S16_LE;rate_min=48000;rate_max=48000;ch_min=2;ch_max=2;rate=48000;channel=2;dev=hw:0,2;snd=/dev/snd/pcmC0D2p;smart_amp=SMART_AMP3.0;
pcm=Amplifier Reference;id=3;type=capture;cap_name=Echo Reference Capture 3;fmts=S16_LE S24_LE S32_LE;fmt=S16_LE;rate_min=48000;rate_max=48000;ch_min=2;ch_max=2;rate=48000;channel=2;dev=hw:0,3;snd=/dev/snd/pcmC0D3c;smart_amp=SMART_AMP3.0;

if we want to skip them all, we can use ~smart_amp


logger_disabled || func_lib_start_log_collect

Expand Down
13 changes: 9 additions & 4 deletions test-case/multiple-pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,15 @@ APP_LST['capture']='arecord_opts'
DEV_LST['capture']='/dev/null'

# define for load pipeline
# args: $1: playback or capture
# $2: optional filter
func_run_pipeline_with_type()
{
local direction="$1"
local opt_filter
[ -n "$2" ] && opt_filter="& $2"
[[ $tmp_count -le 0 ]] && return
func_pipeline_export "$tplg" "type:$1"
func_pipeline_export "$tplg" "type:$direction $opt_filter"
local -a idx_lst
if [ ${OPT_VAL['r']} -eq 0 ]; then
idx_lst=("$(seq 0 $((PIPELINE_COUNT - 1)))")
Expand All @@ -105,7 +110,7 @@ func_run_pipeline_with_type()

dlogi "Testing: $pcm [$dev]"

"${APP_LST[$1]}" -D "$dev" -c "$channel" -r "$rate" -f "$fmt" "${DEV_LST[$1]}" -q &
"${APP_LST[$direction]}" -D "$dev" -c "$channel" -r "$rate" -f "$fmt" "${DEV_LST[$direction]}" -q &

: $((tmp_count--))
if [ "$tmp_count" -le 0 ]; then return 0; fi
Expand Down Expand Up @@ -165,11 +170,11 @@ do
'p' | 'a')
tmp_count=$max_count
func_run_pipeline_with_type "playback"
func_run_pipeline_with_type "capture"
func_run_pipeline_with_type "capture" "~pcm:Amplifier Reference"
;;
'c')
tmp_count=$max_count
func_run_pipeline_with_type "capture"
func_run_pipeline_with_type "capture" "~pcm:Amplifier Reference"
func_run_pipeline_with_type "playback"
;;
*)
Expand Down