mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
adapter: name Duplex port names capture/playback
This commit is contained in:
parent
57886c1198
commit
53adabea19
1 changed files with 2 additions and 2 deletions
|
|
@ -111,13 +111,13 @@ static void node_port_init(void *data, struct pw_impl_port *port)
|
||||||
else
|
else
|
||||||
is_device = false;
|
is_device = false;
|
||||||
|
|
||||||
is_duplex = media_class != NULL &&strstr(media_class, "Duplex") != NULL;
|
is_duplex = media_class != NULL && strstr(media_class, "Duplex") != NULL;
|
||||||
|
|
||||||
new = pw_properties_new(NULL, NULL);
|
new = pw_properties_new(NULL, NULL);
|
||||||
|
|
||||||
if (is_monitor && !is_duplex)
|
if (is_monitor && !is_duplex)
|
||||||
prefix = "monitor";
|
prefix = "monitor";
|
||||||
else if (is_device)
|
else if (is_device || is_duplex)
|
||||||
prefix = direction == PW_DIRECTION_INPUT ?
|
prefix = direction == PW_DIRECTION_INPUT ?
|
||||||
"playback" : "capture";
|
"playback" : "capture";
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue