mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-12 13:30:10 -05:00
sink: Add portable form factor priority (450)
The 'portable' form factor was currently missing meaning it is not getting any form-factor priority at all and it would therefore always be ranked lower then internal devices (which receive 400 form factor priority). The priority 450 is smaller then 'speaker', based on the idea that a portable device might have less quality then a dedicated 'speaker' device (some Yamaha amplifiers announce themselves as such). https://bugs.freedesktop.org/show_bug.cgi?id=100579
This commit is contained in:
parent
fe70b9e11a
commit
6f4d303b6a
1 changed files with 2 additions and 0 deletions
|
|
@ -3514,6 +3514,8 @@ unsigned pa_device_init_priority(pa_proplist *p) {
|
||||||
priority += 900;
|
priority += 900;
|
||||||
else if (pa_streq(s, "speaker"))
|
else if (pa_streq(s, "speaker"))
|
||||||
priority += 500;
|
priority += 500;
|
||||||
|
else if (pa_streq(s, "portable"))
|
||||||
|
priority += 450;
|
||||||
else if (pa_streq(s, "internal"))
|
else if (pa_streq(s, "internal"))
|
||||||
priority += 400;
|
priority += 400;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue