From 4e05b46538610f29eb26d302d98baa68a845c9e7 Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Tue, 19 Dec 2017 17:16:01 +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 --- alsa-hook/PolicyAlsaHook.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'alsa-hook/PolicyAlsaHook.c') 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