Skip to content

Commit

Permalink
check-alsabat.sh: dump amixer settings always
Browse files Browse the repository at this point in the history
amixer settings are always required. good case for reference and
bad case for more debugging.

Signed-off-by: Fred Oh <fred.oh@linux.intel.com>
  • Loading branch information
fredoh9 committed May 1, 2024
1 parent 962e060 commit c5bb7f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test-case/check-alsabat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,16 @@ alsabat -P$pcm_p --standalone -n $frames -c $channel_p -r $rate -f $format -F $f
# playback may have low latency, add one second delay to aviod recording zero at beginning.
sleep 1

# dump amixer contents always.
# Good case amixer settings is for reference, bad case for debugging.
amixer contents > "$LOG_ROOT"/amixer_settings.txt

# We use different USB sound cards in CI, part of them only support 1 channel for capture,
# so make the channel as an option and config it in alsabat-playback.csv
dlogc "alsabat -C$pcm_c -c $channel_c -r $rate -f $format -F $frequency -k $sigmak"
alsabat -C$pcm_c -c $channel_c -r $rate -f $format -F $frequency -k $sigmak || {
# upload failed wav file
__upload_wav_file
# dump amixer contents for more debugging
amixer contents > "$LOG_ROOT"/amixer_settings.txt
exit 1
}

Expand Down

0 comments on commit c5bb7f6

Please sign in to comment.