Allow concurrent use of alsa-jack plugin with different names.
The patch taken from ALSA bug#1790.
return -EINVAL;
}
- if (snprintf(jack_client_name, sizeof(jack_client_name), "alsa%s.%d.%d",
+ if (snprintf(jack_client_name, sizeof(jack_client_name), "alsa-jack.%s%s.%d.%d", name,
stream == SND_PCM_STREAM_PLAYBACK ? "P" : "C", getpid(), num++)
>= (int)sizeof(jack_client_name)) {
fprintf(stderr, "%s: WARNING: JACK client name '%s' truncated to %d characters, might not be unique\n",