From aaf9c1547942817c6c83f7d63fd2c0c59e7b7d62 Mon Sep 17 00:00:00 2001 From: Fred Oh Date: Tue, 30 Apr 2024 21:03:04 -0700 Subject: [PATCH] check-alsabat.sh: dump amixer settings always amixer settings are always required. good case for reference and bad case for more debugging. Signed-off-by: Fred Oh --- test-case/check-alsabat.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test-case/check-alsabat.sh b/test-case/check-alsabat.sh index cad2a23a..e028db78 100755 --- a/test-case/check-alsabat.sh +++ b/test-case/check-alsabat.sh @@ -123,14 +123,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 }