summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikel Astiz <mikel.astiz@bmw-carit.de>2012-08-31 12:50:57 +0200
committerJaska Uimonen <jaska.uimonen@intel.com>2013-01-24 09:29:36 +0200
commit9dcb9a9d436c4d006810955fdad5d07a823323ba (patch)
tree951e895fa48ee0b1393fe321f83d749d7885d9cb
parent6ac06377e20083da361f4357b4991249e4a56214 (diff)
downloadpulseaudio-panda-9dcb9a9d436c4d006810955fdad5d07a823323ba.tar.gz
pulseaudio-panda-9dcb9a9d436c4d006810955fdad5d07a823323ba.tar.bz2
pulseaudio-panda-9dcb9a9d436c4d006810955fdad5d07a823323ba.zip
bluetooth: Fix wrongly set "phone" role for HFGW
The HFGW source should be consistent with the sink by not setting the "phone" intended role. Even though setting this role seems to make sense strictly speaking, the rest of the codebase doesn't handle this well. Therefore, the audio coming from a Bluetooth phone can be routed back to the same device.
-rw-r--r--src/modules/bluetooth/module-bluetooth-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c
index 115416dc..c83fc80c 100644
--- a/src/modules/bluetooth/module-bluetooth-device.c
+++ b/src/modules/bluetooth/module-bluetooth-device.c
@@ -1595,7 +1595,7 @@ static int add_source(struct userdata *u) {
data.module = u->module;
pa_source_new_data_set_sample_spec(&data, &u->sample_spec);
pa_proplist_sets(data.proplist, "bluetooth.protocol", profile_to_string(u->profile));
- if ((u->profile == PROFILE_HSP) || (u->profile == PROFILE_HFGW))
+ if (u->profile == PROFILE_HSP)
pa_proplist_sets(data.proplist, PA_PROP_DEVICE_INTENDED_ROLES, "phone");
data.card = u->card;