bluetooth: Never allow microphone output ports
authorDavid Henningsson <david.henningsson@canonical.com>
Fri, 8 Mar 2013 17:23:41 +0000 (18:23 +0100)
committerDavid Henningsson <david.henningsson@canonical.com>
Fri, 8 Mar 2013 17:23:41 +0000 (18:23 +0100)
If we find a microphone output port, it is probably something else
than a microphone. Therefore label it "Bluetooth output" instead of
"Microphone".

Same goes for Headphones and Speakers, but in the other direction.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/modules/bluetooth/module-bluetooth-device.c

index b19362fe84eaa8314d38a846241c35fa2025f2f6..c877df28e5d69bd1b90e2b2854d5bede9dbc3d7d 100644 (file)
@@ -2094,17 +2094,17 @@ static void create_card_ports(struct userdata *u, pa_hashmap *ports) {
 
         case PA_BT_FORM_FACTOR_MICROPHONE:
             name_prefix = "microphone";
-            input_description = output_description = _("Microphone");
+            input_description = _("Microphone");
             break;
 
         case PA_BT_FORM_FACTOR_SPEAKER:
             name_prefix = "speaker";
-            input_description = output_description = _("Speaker");
+            output_description = _("Speaker");
             break;
 
         case PA_BT_FORM_FACTOR_HEADPHONE:
             name_prefix = "headphone";
-            input_description = output_description = _("Headphone");
+            output_description = _("Headphone");
             break;
 
         case PA_BT_FORM_FACTOR_PORTABLE: