diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2017-12-19 17:16:01 +0100 |
---|---|---|
committer | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-12-20 00:24:51 +0100 |
commit | 4e05b46538610f29eb26d302d98baa68a845c9e7 (patch) | |
tree | 9976238265547607f91708cb7b408b3376129639 /alsa-hook/PolicyAlsaHook.c | |
parent | b5007352099457ef9d9ff5bb757af605ef927b16 (diff) |
Change websock session id from uid only to pcm+uideel_4.99.5eel/4.99.54.99.5
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 <fulup@iot.bzh>
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'alsa-hook/PolicyAlsaHook.c')
-rw-r--r-- | alsa-hook/PolicyAlsaHook.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); |