# @name ALSA Speaker test utility
# @desc Run speaker-test utility provided by alsa-utils to test the capabilities of the speaker.
# @requires  sound
ALSA_XS_FUNC_SPEAKER_TEST_0001 source 'common.sh' ; do_cmd install_modules.sh 'sound' ; do_cmd 'run_speaker_test.sh -c 1 -t wave -l 5';
ALSA_XS_FUNC_SPEAKER_TEST_0002 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 -t wave -l 5';
ALSA_S_FUNC_SPEAKER_TEST_0003 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --period 1  -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0004 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --period 2  -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0005 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --period 4  -l 10'
ALSA_XS_FUNC_SPEAKER_TEST_0006 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --period 8  -l 5'
ALSA_S_FUNC_SPEAKER_TEST_0007 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --period 16  -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0008 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --period 32  -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0009 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --period 64  -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0010 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --period 128  -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0011 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --period 256  -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0012 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --period 512  -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0013 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --period 1024  -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0014 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --period 2046  -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0015 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --period 4096  -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0016 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --period 8192  -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0017 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --period 16384  -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0018 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --period 32768  -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0019 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --format S8 -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0020 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --format S16_LE -l 5'
ALSA_S_FUNC_SPEAKER_TEST_0021 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --format S24_LE -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0022 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 --format S32_LE -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0023 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 -r 8000 -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0024 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 -r 11025 -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0025 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 -r 16000 -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0026 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 -r 22050 -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0027 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 -r 24000 -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0028 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 -r 32000 -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0029 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 -r 44100 -l 5'
ALSA_S_FUNC_SPEAKER_TEST_0030 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 -r 48000 -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0031 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 -r 88200 -l 10'
ALSA_S_FUNC_SPEAKER_TEST_0032 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 -r 96000 -l 10'
ALSA_M_STRESS_SPEAKER_TEST_0032 source 'common.sh' ; do_cmd install_modules.sh 'sound' ;do_cmd 'run_speaker_test.sh -c 2 -t wave -l 1000'
