We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77dd64c commit 686fd1bCopy full SHA for 686fd1b
1 file changed
test-case/check-alsabat.sh
@@ -123,9 +123,11 @@ alsabat -P$pcm_p --standalone -n $frames -c $channel_p -r $rate -f $format -F $f
123
# playback may have low latency, add one second delay to aviod recording zero at beginning.
124
sleep 1
125
126
+# Select the first card
127
+first_card_name=$(aplay -l | awk 'NR == 2 {print $3}')
128
# dump amixer contents always.
129
# Good case amixer settings is for reference, bad case for debugging.
-amixer contents > "$LOG_ROOT"/amixer_settings.txt
130
+amixer -c $first_card_name contents > "$LOG_ROOT"/amixer_settings.txt
131
132
# We use different USB sound cards in CI, part of them only support 1 channel for capture,
133
# so make the channel as an option and config it in alsabat-playback.csv
0 commit comments