sink: Add missing 'hifi' form factor to priorities
authorChristian Kellner <christian@kellner.me>
Wed, 5 Apr 2017 11:59:08 +0000 (13:59 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Wed, 19 Apr 2017 14:04:35 +0000 (17:04 +0300)
Assign it a propriety of 600, therefore ranking higher then speaker,
but below headphone.

https://bugs.freedesktop.org/show_bug.cgi?id=100579

src/pulsecore/sink.c

index bff345f..92670c1 100644 (file)
@@ -3512,6 +3512,8 @@ unsigned pa_device_init_priority(pa_proplist *p) {
 
         if (pa_streq(s, "headphone"))
             priority += 900;
+        else if (pa_streq(s, "hifi"))
+            priority += 600;
         else if (pa_streq(s, "speaker"))
             priority += 500;
         else if (pa_streq(s, "portable"))