summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2006-01-30 15:15:23 +0000
committerTakashi Iwai <tiwai@suse.de>2006-01-30 15:15:23 +0000
commit6074e887419c70bed8a9177a4d78357156c7c611 (patch)
tree55380fcedcd0c10a4da8b39770bd76777c35df0c
parent8ebf880126b67d0d0ac2479cdf31c239860a1184 (diff)
Allow concurrent runs with different names
Allow concurrent use of alsa-jack plugin with different names. The patch taken from ALSA bug#1790.
-rw-r--r--pcm/jack/pcm_jack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcm/jack/pcm_jack.c b/pcm/jack/pcm_jack.c
index a10ed14..855f837 100644
--- a/pcm/jack/pcm_jack.c
+++ b/pcm/jack/pcm_jack.c
@@ -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",