Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

kselftest/alsa: pcm - Add more coverage by default

Add more coverage to our standard test cases:

- 8kHz mono and stereo to verify that the most common mono format is
clocked correctly.
- 44.1kHz stereo to verify that this different clock base is generated
accurately.
- 48kHz 6 channel to verify that 6 channel is clocked correctly.
- 96kHz stereo since that is a common audiophile rate.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221208-alsa-pcm-test-hacks-v4-7-5a152e65b1e1@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Mark Brown and committed by
Takashi Iwai
777ad883 b8680e21

+46 -1
+46 -1
tools/testing/selftests/alsa/pcm-test.conf
··· 1 1 pcm.test.time1 { 2 + description "8kHz mono large periods" 3 + format S16_LE 4 + alt_formats [ S32_LE ] 5 + rate 8000 6 + channels 1 7 + period_size 8000 8 + buffer_size 32000 9 + } 10 + pcm.test.time2 { 11 + description "8kHz stereo large periods" 12 + format S16_LE 13 + alt_formats [ S32_LE ] 14 + rate 8000 15 + channels 2 16 + period_size 8000 17 + buffer_size 32000 18 + } 19 + pcm.test.time3 { 20 + description "44.1kHz stereo large periods" 21 + format S16_LE 22 + alt_formats [ S32_LE ] 23 + rate 44100 24 + channels 2 25 + period_size 22500 26 + buffer_size 192000 27 + } 28 + pcm.test.time4 { 2 29 description "48kHz stereo small periods" 3 30 format S16_LE 4 31 alt_formats [ S32_LE ] ··· 34 7 period_size 512 35 8 buffer_size 4096 36 9 } 37 - pcm.test.time2 { 10 + pcm.test.time5 { 38 11 description "48kHz stereo large periods" 39 12 format S16_LE 40 13 alt_formats [ S32_LE ] 41 14 rate 48000 42 15 channels 2 43 16 period_size 24000 17 + buffer_size 192000 18 + } 19 + pcm.test.time6 { 20 + description "48kHz 6 channel large periods" 21 + format S16_LE 22 + alt_formats [ S32_LE ] 23 + rate 48000 24 + channels 2 25 + period_size 48000 26 + buffer_size 576000 27 + } 28 + pcm.test.time7 { 29 + description "96kHz stereo large periods" 30 + format S16_LE 31 + alt_formats [ S32_LE ] 32 + rate 96000 33 + channels 2 34 + period_size 48000 44 35 buffer_size 192000 45 36 }