Skip to content

Commit 4594d26

Browse files
broonietiwai
authored andcommitted
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent b1a7b97 commit 4594d26

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/testing/selftests/alsa/pcm-test.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@ static void find_pcms(void)
240240
if (err < 0)
241241
ksft_exit_fail_msg("snd_ctl_pcm_info: %d:%d:%d\n",
242242
dev, 0, stream);
243+
244+
ksft_print_msg("%s.0 - %s\n", card_data->name,
245+
snd_pcm_info_get_id(pcm_info));
246+
243247
count = snd_pcm_info_get_subdevices_count(pcm_info);
244248
for (subdev = 0; subdev < count; subdev++) {
245249
sprintf(key, "pcm.%d.%d.%s", dev, subdev, snd_pcm_stream_name(stream));

0 commit comments

Comments
 (0)