From: Colin Guthrie Date: Sat, 16 Oct 2010 11:26:32 +0000 (+0100) Subject: intended-roles: Mark devices with a form factor of 'headset' as being appropriate... X-Git-Tag: submit/2.0-panda/20130828.192557~921 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13278bf23407d934b56ba06d460310beb64017eb;p=profile%2Fivi%2Fpulseaudio-panda.git intended-roles: Mark devices with a form factor of 'headset' as being appropriate for 'phone' streams This was a result a report by Patrick Ben Koetter relating to his Logitech Wireless Headset. --- diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c index 136508b..7b4e626 100644 --- a/src/pulsecore/sink.c +++ b/src/pulsecore/sink.c @@ -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; }