OSDN Git Service

kselftest/alsa: Add more coverage of sample rates and channel counts
authorMark Brown <broonie@kernel.org>
Thu, 1 Dec 2022 17:07:45 +0000 (17:07 +0000)
committerTakashi Iwai <tiwai@suse.de>
Thu, 1 Dec 2022 19:02:14 +0000 (20:02 +0100)
commit7d721baea138696d5a6746fb5bce0a510a91bd65
treece1319140ba2343e05a210cecd3daa664397e217
parentee12040dd53ac9034a782ed80eb8e8e496c05d9b
kselftest/alsa: Add more coverage of sample rates and channel counts

Now that we can skip unsupported configurations add some more test cases
using that, cover 8kHz, 44.1kHz and 96kHz plus 8kHz mono and 48kHz 6
channel.

44.1kHz is a different clock base to the existing 48kHz tests and may
therefore show problems with the clock configuration if only 8kHz based
rates are really available (or help diagnose if bad clocking is due to
only 44.1kHz based rates being supported). 8kHz mono and 48Hz 6 channel
are real world formats and should show if clocking does not account for
channel count properly.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221201170745.1111236-7-broonie@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
tools/testing/selftests/alsa/pcm-test.c