How do I find the "ASCII identifier of the PCM handle" for ALSA?
How do I find the "ASCII identifier of the PCM handle" for ALSA?
I’d have a look at the aplay.c implementation for listing PCM device names (-L), pcm_list().
It’s basically using snd_device_name_hint(-1, “pcm”, &hints) and snd_device_name_get_hint() calls to discover the PCM device names.