diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2012-08-17 17:21:52 +0300 |
---|---|---|
committer | Jaska Uimonen <jaska.uimonen@intel.com> | 2013-01-24 09:29:35 +0200 |
commit | b02e6b196f13742d855fba08be5d6904a3391d16 (patch) | |
tree | 45c7c8d7765771a1c268935dd9d0dcb4fa1e3ba4 | |
parent | 02ec34a8838892d903e52bef7dacb22d1e3a9eb1 (diff) | |
download | pulseaudio-panda-b02e6b196f13742d855fba08be5d6904a3391d16.tar.gz pulseaudio-panda-b02e6b196f13742d855fba08be5d6904a3391d16.tar.bz2 pulseaudio-panda-b02e6b196f13742d855fba08be5d6904a3391d16.zip |
bluetooth: Don't force any profile on discovery module
Let device module figure out the priority based on the state of the
profiles.
Note that most likely all profiles will be in PA_BT_AUDIO_STATE_CONNECTED
state so 'Off' will be the initial profile then it is up to the policy
module to switch to the most suitable profile.
-rw-r--r-- | src/modules/bluetooth/module-bluetooth-discover.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/modules/bluetooth/module-bluetooth-discover.c b/src/modules/bluetooth/module-bluetooth-discover.c index d4e056e3..cddb21ca 100644 --- a/src/modules/bluetooth/module-bluetooth-discover.c +++ b/src/modules/bluetooth/module-bluetooth-discover.c @@ -107,11 +107,6 @@ static pa_hook_result_t load_module_for_device(pa_bluetooth_discovery *y, const args = tmp; } - if (d->hfgw_state >= PA_BT_AUDIO_STATE_CONNECTED) - args = pa_sprintf_malloc("%s profile=\"hfgw\"", args); - else if (d->audio_source_state >= PA_BT_AUDIO_STATE_CONNECTED) - args = pa_sprintf_malloc("%s profile=\"a2dp_source\" auto_connect=no", args); - pa_log_debug("Loading module-bluetooth-device %s", args); m = pa_module_load(u->module->core, "module-bluetooth-device", args); pa_xfree(args); |