Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mark Brown and committed by
Takashi Iwai
4594d26f b1a7b97a

+4
+4
tools/testing/selftests/alsa/pcm-test.c
··· 240 240 if (err < 0) 241 241 ksft_exit_fail_msg("snd_ctl_pcm_info: %d:%d:%d\n", 242 242 dev, 0, stream); 243 + 244 + ksft_print_msg("%s.0 - %s\n", card_data->name, 245 + snd_pcm_info_get_id(pcm_info)); 246 + 243 247 count = snd_pcm_info_get_subdevices_count(pcm_info); 244 248 for (subdev = 0; subdev < count; subdev++) { 245 249 sprintf(key, "pcm.%d.%d.%s", dev, subdev, snd_pcm_stream_name(stream));