Commit 4594d26f authored by Mark Brown's avatar Mark Brown Committed by Takashi Iwai

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: default avatarMark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20240716-alsa-kselftest-board-name-v2-2-60f1acdde096@kernel.orgSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b1a7b97a
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment