From c5bb7f6659e049c911d1275550c1ff24f57e778a 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 c3c41e1a..7350b012 100755 --- a/test-case/check-alsabat.sh +++ b/test-case/check-alsabat.sh @@ -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 }