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:
Wim Taymans 2021-05-17 15:32:26 +02:00
parent ba544c8e36
commit 78aae9cfdc

View file

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