adapter: name Duplex port names capture/playback

This commit is contained in:
Wim Taymans 2020-12-02 13:00:21 +01:00
parent 57886c1198
commit 53adabea19

View file

@ -117,7 +117,7 @@ static void node_port_init(void *data, struct pw_impl_port *port)
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