Skip to content

Commit 898c04d

Browse files
committed
check-alsabat: dump amixer contents when fails
Most of alsabat test failures are due to wrong alsa settings. To debug the failure, amixer contents dumps are very useful. Signed-off-by: Fred Oh <fred.oh@linux.intel.com>
1 parent 630c1b9 commit 898c04d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test-case/check-alsabat.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ dlogc "alsabat -C$pcm_c -c $channel_c -r $rate -F $frequency"
9292
alsabat -C$pcm_c -c $channel_c -r $rate -F $frequency || {
9393
# upload failed wav file
9494
__upload_wav_file
95+
# dump amixer contents for more debugging
96+
amixer contents > "$LOG_ROOT"/amixer_settings.txt
9597
exit 1
9698
}
9799

0 commit comments

Comments
 (0)