Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test-case: test-speaker.sh: fix test for PCMs that only support 32bit #1155

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions test-case/test-speaker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,16 @@ do
dev=$(func_pipeline_parse_value "$idx" dev)
snd=$(func_pipeline_parse_value "$idx" snd)

# speaker-test only supports wav for 48 kHz test, pink noise works for all rates
if [ "$rate" = "48000" ]; then
#
# The default wav files for speaker-test are 48000Hz 16bit mono
# files. In this test, no alsa-lib plugin layer is used so the "wav" test
# method can be only be used if sampling rate and sample format
# match exactly. Channel count does NOT need to match, so we do not
# need to check for that here.
#
# Use "pink" test method for other audio configurations.
#
if [ "$rate" = "48000" ] && [ "$fmt" = "S16_LE" ]; then
sound_type="wav"
else
sound_type="pink"
Expand Down
Loading