From 4b80d0f17ce24d160f13f6e1d19021cbb2717429 Mon Sep 17 00:00:00 2001 From: Ronan Le Martret Date: Wed, 20 Dec 2017 09:51:29 +0100 Subject: Change websock session id from uid only to pcm+uid MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allow to have one session per PCM in order to allow a single process handling multiple PCM like pulse to have on independant session per PCM. Change-Id: Icdd3e4d44539dba2349d70edeaaeee861c3bd1cf Signed-off-by: Fulup Ar Foll Signed-off-by: Jan-Simon Möller Signed-off-by: Ronan Le Martret --- alsa-hook/PolicyAlsaHook.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'alsa-hook') diff --git a/alsa-hook/PolicyAlsaHook.c b/alsa-hook/PolicyAlsaHook.c index db4e5a2..49e1559 100644 --- a/alsa-hook/PolicyAlsaHook.c +++ b/alsa-hook/PolicyAlsaHook.c @@ -574,9 +574,7 @@ int PLUGIN_ENTRY_POINT (snd_pcm_t *pcm, snd_config_t *conf) { afbClient->pcm = pcm; afbClient->name= strdup(snd_pcm_name(pcm)); afbClient->verbose = 0; - (void) asprintf(&afbClient->uid, "alsa-hook-pid:%d", getpid()); - - + (void) asprintf(&afbClient->uid, "hook:%s:%d", afbClient->name, getpid()); // Get PCM arguments from asoundrc snd_config_for_each(it, next, conf) { snd_config_t *node = snd_config_iterator_entry(it); -- cgit 1.2.3-korg