alsa: Use "PipeWire ALSA" as the node name

So that it is easier to know it is the PipeWire one.
This commit is contained in:
Wim Taymans 2020-10-27 16:10:22 +01:00
parent 9de98df1b7
commit e571c0bcb1

View file

@ -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);