module-bluetooth-device do not load if both HFP and A2DP are connected because the profile argument is given twice. pa_modargs_new is failing in pa__init. --- src/modules/bluetooth/module-bluetooth-discover.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/modules/bluetooth/module-bluetooth-discover.c b/src/modules/bluetooth/module-bluetooth-discover.c index e96a4f3..5b1cd92 100644 --- a/src/modules/bluetooth/module-bluetooth-discover.c +++ b/src/modules/bluetooth/module-bluetooth-discover.c @@ -109,8 +109,7 @@ static pa_hook_result_t load_module_for_device(pa_bluetooth_discovery *y, const if (d->audio_source_state >= PA_BT_AUDIO_STATE_CONNECTED) args = pa_sprintf_malloc("%s profile=\"a2dp_source\" auto_connect=no", args); - - if (d->hfgw_state >= PA_BT_AUDIO_STATE_CONNECTED) + else if (d->hfgw_state >= PA_BT_AUDIO_STATE_CONNECTED) args = pa_sprintf_malloc("%s profile=\"hfgw\"", args); pa_log_debug("Loading module-bluetooth-device %s", args); -- 1.7.5.4