diff options
author | Jaroslav Kysela <perex@perex.cz> | 2022-12-27 17:06:47 +0000 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-01-02 15:07:35 +0100 |
commit | 348d09fcd1b6ba455141882daf1d50ff33cd0bf8 (patch) | |
tree | 4e1484104f83397cfd1ef538debd505671787adc /tools/testing/selftests/alsa/conf.d/Lenovo_ThinkPad_P1_Gen2.conf | |
parent | c48cafc241bff09d7ea682982ff96d532e64e2ed (diff) |
kselftest/alsa: pcm - move more configuration to configuration files
Obtain all test parameters from the configuration files. The defaults
are defined in the pcm-test.conf file. The test count and parameters
may be variable per specific hardware.
Also, handle alt_formats field now (with the fixes in the format loop).
It replaces the original "automatic" logic which is not so universal.
The code may be further extended to skip various tests based
on the configuration hints, if the exact PCM hardware parameters
are not available for the given hardware.
Signed-off-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-2-5a152e65b1e1@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/testing/selftests/alsa/conf.d/Lenovo_ThinkPad_P1_Gen2.conf')
-rw-r--r-- | tools/testing/selftests/alsa/conf.d/Lenovo_ThinkPad_P1_Gen2.conf | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/testing/selftests/alsa/conf.d/Lenovo_ThinkPad_P1_Gen2.conf b/tools/testing/selftests/alsa/conf.d/Lenovo_ThinkPad_P1_Gen2.conf index 0a83f35d43eb..5b40a916295d 100644 --- a/tools/testing/selftests/alsa/conf.d/Lenovo_ThinkPad_P1_Gen2.conf +++ b/tools/testing/selftests/alsa/conf.d/Lenovo_ThinkPad_P1_Gen2.conf @@ -55,6 +55,14 @@ card.hda { period_size 24000 buffer_size 192000 } + test.time3 { + access RW_INTERLEAVED + format S16_LE + rate 44100 + channels 2 + period_size 24000 + buffer_size 192000 + } } CAPTURE { # use default tests, check for the presence |