]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
Allow concurrent runs with different names
authorTakashi Iwai <tiwai@suse.de>
Mon, 30 Jan 2006 15:15:23 +0000 (15:15 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 30 Jan 2006 15:15:23 +0000 (15:15 +0000)
Allow concurrent use of alsa-jack plugin with different names.
The patch taken from ALSA bug#1790.

pcm/jack/pcm_jack.c

index a10ed144a2377cf2be58a38153b8463cd0a2a7c6..855f83730762a77b48e0980a9b0b5d5d03e78bca 100644 (file)
@@ -336,7 +336,7 @@ static int snd_pcm_jack_open(snd_pcm_t **pcmp, const char *name,
                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",