Created
January 27, 2022 06:36
-
-
Save duk3luk3/36667f4031923828ce9d0e9ae1eaa89c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults.pipewire.server "pipewire-0" | |
defaults.pipewire.node "-1" | |
defaults.pipewire.exclusive false | |
defaults.pipewire.role "" | |
pcm.pipewire_alias { | |
@args [ SERVER NODE EXCLUSIVE ROLE ] | |
@args.SERVER { | |
type string | |
default { | |
@func refer | |
name defaults.pipewire.server | |
} | |
} | |
@args.NODE { | |
type string | |
default { | |
@func refer | |
name defaults.pipewire.node | |
} | |
} | |
@args.EXCLUSIVE { | |
type integer | |
default { | |
@func refer | |
name defaults.pipewire.exclusive | |
} | |
} | |
@args.ROLE { | |
type string | |
default { | |
@func refer | |
name defaults.pipewire.role | |
} | |
} | |
type pipewire | |
server $SERVER | |
playback_node $NODE | |
capture_node $NODE | |
exclusive $EXCLUSIVE | |
role $ROLE | |
hint { | |
show on | |
description "PipeWire Sound Server" | |
} | |
} | |
pcm.pipewire_src_mic { | |
@args [ SERVER NODE EXCLUSIVE ROLE ] | |
@args.SERVER { | |
type string | |
default { | |
@func refer | |
name defaults.pipewire.server | |
} | |
} | |
@args.NODE { | |
type string | |
default { | |
@func refer | |
name defaults.pipewire.node | |
} | |
} | |
@args.EXCLUSIVE { | |
type integer | |
default { | |
@func refer | |
name defaults.pipewire.exclusive | |
} | |
} | |
@args.ROLE { | |
type string | |
default { | |
@func refer | |
name defaults.pipewire.role | |
} | |
} | |
type pipewire | |
server $SERVER | |
playback_node $NODE | |
capture_node $NODE | |
exclusive $EXCLUSIVE | |
role $ROLE | |
hint { | |
show on | |
description "PipeWire Sound Server" | |
} | |
} | |
pcm.pipewire_src_mon { | |
@args [ SERVER NODE EXCLUSIVE ROLE ] | |
@args.SERVER { | |
type string | |
default { | |
@func refer | |
name defaults.pipewire.server | |
} | |
} | |
@args.NODE { | |
type string | |
default { | |
@func refer | |
name defaults.pipewire.node | |
} | |
} | |
@args.EXCLUSIVE { | |
type integer | |
default { | |
@func refer | |
name defaults.pipewire.exclusive | |
} | |
} | |
@args.ROLE { | |
type string | |
default { | |
@func refer | |
name defaults.pipewire.role | |
} | |
} | |
type pipewire | |
server $SERVER | |
playback_node $NODE | |
capture_node $NODE | |
exclusive $EXCLUSIVE | |
role $ROLE | |
hint { | |
show on | |
description "PipeWire Sound Server" | |
} | |
} | |
pcm.pipewire_tx_audio { | |
@args [ SERVER NODE EXCLUSIVE ROLE ] | |
@args.SERVER { | |
type string | |
default { | |
@func refer | |
name defaults.pipewire.server | |
} | |
} | |
@args.NODE { | |
type string | |
default { | |
@func refer | |
name defaults.pipewire.node | |
} | |
} | |
@args.EXCLUSIVE { | |
type integer | |
default { | |
@func refer | |
name defaults.pipewire.exclusive | |
} | |
} | |
@args.ROLE { | |
type string | |
default { | |
@func refer | |
name defaults.pipewire.role | |
} | |
} | |
type pipewire | |
server $SERVER | |
playback_node $NODE | |
capture_node $NODE | |
exclusive $EXCLUSIVE | |
role $ROLE | |
hint { | |
show on | |
description "PipeWire Sound Server" | |
} | |
} | |
pcm.pipewire_rx_audio { | |
@args [ SERVER NODE EXCLUSIVE ROLE ] | |
@args.SERVER { | |
type string | |
default { | |
@func refer | |
name defaults.pipewire.server | |
} | |
} | |
@args.NODE { | |
type string | |
default { | |
@func refer | |
name defaults.pipewire.node | |
} | |
} | |
@args.EXCLUSIVE { | |
type integer | |
default { | |
@func refer | |
name defaults.pipewire.exclusive | |
} | |
} | |
@args.ROLE { | |
type string | |
default { | |
@func refer | |
name defaults.pipewire.role | |
} | |
} | |
type pipewire | |
server $SERVER | |
playback_node $NODE | |
capture_node $NODE | |
exclusive $EXCLUSIVE | |
role $ROLE | |
hint { | |
show on | |
description "PipeWire Sound Server" | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/pipewire-alsa/alsa-plugins/pcm_pipewire.c b/pipewire-alsa/alsa-plugins/pcm_pipewire.c | |
index f3ff8ec51..3f7047d75 100644 | |
--- a/pipewire-alsa/alsa-plugins/pcm_pipewire.c | |
+++ b/pipewire-alsa/alsa-plugins/pcm_pipewire.c | |
@@ -1075,8 +1075,9 @@ static int snd_pcm_pipewire_open(snd_pcm_t **pcmp, const char *name, | |
props = pw_properties_new(NULL, NULL); | |
- pw_properties_setf(props, PW_KEY_APP_NAME, "PipeWire ALSA [%s]", | |
- pw_get_prgname()); | |
+ pw_properties_set(props, "application.alsa.devname", name); | |
+ pw_properties_setf(props, PW_KEY_APP_NAME, "PipeWire ALSA [%s] [%s]", | |
+ name, pw_get_prgname()); | |
if (server_name) | |
pw_properties_set(props, PW_KEY_REMOTE_NAME, server_name); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment