]> code.delx.au - pulseaudio/commitdiff
intended-roles: Mark devices with a form factor of 'headset' as being appropriate...
authorColin Guthrie <cguthrie@mandriva.org>
Sat, 16 Oct 2010 11:26:32 +0000 (12:26 +0100)
committerColin Guthrie <cguthrie@mandriva.org>
Sat, 16 Oct 2010 11:26:47 +0000 (12:26 +0100)
This was a result a report by Patrick Ben Koetter relating to his
Logitech Wireless Headset.

src/pulsecore/sink.c

index 136508b29052b62a16e2e531f8f550f2f76f57c1..7b4e626d18eb556233b25f4ce03b7a545fb652ea 100644 (file)
@@ -2808,7 +2808,8 @@ pa_bool_t pa_device_init_intended_roles(pa_proplist *p) {
         return TRUE;
 
     if ((s = pa_proplist_gets(p, PA_PROP_DEVICE_FORM_FACTOR)))
-        if (pa_streq(s, "handset") || pa_streq(s, "hands-free")) {
+        if (pa_streq(s, "handset") || pa_streq(s, "hands-free")
+            || pa_streq(s, "headset")) {
             pa_proplist_sets(p, PA_PROP_DEVICE_INTENDED_ROLES, "phone");
             return TRUE;
         }