From e571c0bcb15fcc2a53403fb8553d50ff71093d8c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 27 Oct 2020 16:10:22 +0100 Subject: [PATCH] alsa: Use "PipeWire ALSA" as the node name So that it is easier to know it is the PipeWire one. --- pipewire-alsa/alsa-plugins/pcm_pipewire.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pipewire-alsa/alsa-plugins/pcm_pipewire.c b/pipewire-alsa/alsa-plugins/pcm_pipewire.c index c40fecf23..18b83fe60 100644 --- a/pipewire-alsa/alsa-plugins/pcm_pipewire.c +++ b/pipewire-alsa/alsa-plugins/pcm_pipewire.c @@ -911,11 +911,9 @@ static int snd_pcm_pipewire_open(snd_pcm_t **pcmp, const char *name, pw->context = pw_context_new(loop, NULL, 0); props = pw_properties_new(NULL, NULL); - str = pw_get_prgname(); - if (str) - pw_properties_setf(props, PW_KEY_APP_NAME, "ALSA plug-in [%s]", str); - else - pw_properties_set(props, PW_KEY_APP_NAME, "ALSA plug-in"); + + pw_properties_setf(props, PW_KEY_APP_NAME, "PipeWire ALSA [%s]", + pw_get_prgname()); if (server_name) pw_properties_set(props, PW_KEY_REMOTE_NAME, server_name);