summaryrefslogtreecommitdiffstats
path: root/alsa-hook
diff options
context:
space:
mode:
authorRonan Le Martret <ronan.lemartret@iot.bzh>2017-12-20 09:51:29 +0100
committerRonan Le Martret <ronan.lemartret@iot.bzh>2017-12-20 09:51:29 +0100
commit4b80d0f17ce24d160f13f6e1d19021cbb2717429 (patch)
tree25179f08fdc3eac9ff248c92e57ab8bff887865c /alsa-hook
parent9938a19818ad6fd555b4c46f405141ae2059f9f1 (diff)
Change websock session id from uid only to pcm+uid
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> Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Diffstat (limited to 'alsa-hook')
-rw-r--r--alsa-hook/PolicyAlsaHook.c4
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);