mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
Revert "adapter: set prefix for all monitor ports to "monitor""
This reverts commit 38a40949ec.
This is not quite right, virtual devices now have monitor ports
instead of capture ports.
This commit is contained in:
parent
ba544c8e36
commit
78aae9cfdc
1 changed files with 3 additions and 3 deletions
|
|
@ -115,16 +115,16 @@ static void node_port_init(void *data, struct pw_impl_port *port)
|
|||
|
||||
if (is_duplex)
|
||||
prefix = direction == PW_DIRECTION_INPUT ?
|
||||
"playback" : is_monitor ? "monitor" : "capture";
|
||||
"playback" : "capture";
|
||||
else if (is_virtual)
|
||||
prefix = direction == PW_DIRECTION_INPUT ?
|
||||
"input" : is_monitor ? "monitor" : "capture";
|
||||
"input" : "capture";
|
||||
else if (is_device)
|
||||
prefix = direction == PW_DIRECTION_INPUT ?
|
||||
"playback" : is_monitor ? "monitor" : "capture";
|
||||
else
|
||||
prefix = direction == PW_DIRECTION_INPUT ?
|
||||
"input" : is_monitor ? "monitor" : "capture" ;
|
||||
"input" : "output";
|
||||
|
||||
if ((str = pw_properties_get(old, PW_KEY_AUDIO_CHANNEL)) == NULL ||
|
||||
strcmp(str, "UNK") == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue