summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kellner <christian@kellner.me>2017-04-05 13:52:27 +0200
committerTanu Kaskinen <tanuk@iki.fi>2017-04-19 17:00:02 +0300
commit6f4d303b6a5474fc421c28bd56d1e686ecccd659 (patch)
treefc46575b0ecd99f0386e1785fba557d7ab8a544e
parentfe70b9e11aa0312f5d9508158c6cd652f66d732d (diff)
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
-rw-r--r--src/pulsecore/sink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c
index 6692066a1..bff345f85 100644
--- a/src/pulsecore/sink.c
+++ b/src/pulsecore/sink.c
@@ -3514,6 +3514,8 @@ unsigned pa_device_init_priority(pa_proplist *p) {
priority += 900;
else if (pa_streq(s, "speaker"))
priority += 500;
+ else if (pa_streq(s, "portable"))
+ priority += 450;
else if (pa_streq(s, "internal"))
priority += 400;
}