sink: remove priority bonus for the "internal" form factor
authorTanu Kaskinen <tanuk@iki.fi>
Wed, 6 Sep 2017 13:08:29 +0000 (16:08 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Mon, 18 Sep 2017 15:49:34 +0000 (18:49 +0300)
We're supposed to prioritize USB sound cards over PCI sound cards, but
the priority bonus for the "internal" form factor prevents this from
happening. Not all (if any) USB sound cards have the form factor
property set, whereas at least on my laptop the on-board sound card has
the form factor set to "internal".

src/pulsecore/sink.c

index d1c7fd3..94f41b9 100644 (file)
@@ -3558,8 +3558,6 @@ unsigned pa_device_init_priority(pa_proplist *p) {
             priority += 500;
         else if (pa_streq(s, "portable"))
             priority += 450;
-        else if (pa_streq(s, "internal"))
-            priority += 400;
     }
 
     if ((s = pa_proplist_gets(p, PA_PROP_DEVICE_BUS))) {