Home
last modified time | relevance | path

Searched refs:best_port (Results 1 - 1 of 1) sorted by relevance

/third_party/pulseaudio/src/modules/
H A Dmodule-switch-on-port-available.c265 pa_device_port *p, *best_port = NULL; in switch_from_port() local
282 if (!best_port || best_port->priority < p->priority) in switch_from_port()
283 best_port = p; in switch_from_port()
286 pa_log_debug("Trying to switch away from port %s, found %s", port->name, best_port ? best_port->name : "no better option"); in switch_from_port()
292 if (best_port) { in switch_from_port()
293 struct port_pointers best_pp = find_port_pointers(best_port); in switch_from_port()
294 switch_to_port(best_port, best_pp); in switch_from_port()

Completed in 2 milliseconds