From 135afa28e7d4f34aec776fe4d225e21b76fc461c Mon Sep 17 00:00:00 2001 From: David Henningsson Date: Fri, 8 Mar 2013 18:23:41 +0100 Subject: [PATCH] bluetooth: Never allow microphone output ports 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 --- src/modules/bluetooth/module-bluetooth-device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index b19362f..c877df2 100644 --- a/src/modules/bluetooth/module-bluetooth-device.c +++ b/src/modules/bluetooth/module-bluetooth-device.c @@ -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: -- 2.7.4