mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
add priority logic to find best default profile
This commit is contained in:
parent
b3a043fd31
commit
7368a6e6be
6 changed files with 43 additions and 15 deletions
|
|
@ -108,6 +108,7 @@ static void enumerate_cb(
|
|||
pa_xfree(t);
|
||||
pa_xfree(n);
|
||||
|
||||
p->priority = (sink ? sink->priority : 0)*100 + (source ? source->priority : 0);
|
||||
p->n_sinks = !!sink;
|
||||
p->n_sources = !!source;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue