diff options
author | Mark Brown <broonie@kernel.org> | 2024-07-16 16:48:00 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-07-18 16:48:44 +0200 |
commit | 4594d26fca91fab0e1621d2ab196f3f9bab96bc8 (patch) | |
tree | d132cebc29617d3bf00e4fbac87bf9e49c513ca7 /tools | |
parent | kselftest/alsa: Use card name rather than number in test names (diff) | |
download | linux-4594d26fca91fab0e1621d2ab196f3f9bab96bc8.tar.xz linux-4594d26fca91fab0e1621d2ab196f3f9bab96bc8.zip |
kselftest/alsa: Log the PCM ID in pcm-test
Drivers report a string with a name for each PCM, log it during startup of
pcm-test as a diagnostic aid.
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20240716-alsa-kselftest-board-name-v2-2-60f1acdde096@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/alsa/pcm-test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/testing/selftests/alsa/pcm-test.c b/tools/testing/selftests/alsa/pcm-test.c index a8f189ffdd8e..dbd7c222ce93 100644 --- a/tools/testing/selftests/alsa/pcm-test.c +++ b/tools/testing/selftests/alsa/pcm-test.c @@ -240,6 +240,10 @@ static void find_pcms(void) if (err < 0) ksft_exit_fail_msg("snd_ctl_pcm_info: %d:%d:%d\n", dev, 0, stream); + + ksft_print_msg("%s.0 - %s\n", card_data->name, + snd_pcm_info_get_id(pcm_info)); + count = snd_pcm_info_get_subdevices_count(pcm_info); for (subdev = 0; subdev < count; subdev++) { sprintf(key, "pcm.%d.%d.%s", dev, subdev, snd_pcm_stream_name(stream)); |