diff --git a/src/modules/bluetooth/module-bluez5-discover.c b/src/modules/bluetooth/module-bluez5-discover.c index bfb361ae..d2a0420d 100644 --- a/src/modules/bluetooth/module-bluez5-discover.c +++ b/src/modules/bluetooth/module-bluez5-discover.c @@ -93,7 +93,7 @@ static pa_hook_result_t device_connection_changed_cb(pa_bluetooth_discovery *y, } #ifdef HAVE_BLUEZ_5_NATIVE_HEADSET -const char *default_headset_backend = "auto"; +const char *default_headset_backend = "native"; #else const char *default_headset_backend = "ofono"; #endif @@ -104,7 +104,7 @@ int pa__init(pa_module *m) { const char *headset_str; int headset_backend; bool autodetect_mtu; - bool enable_native_hfp_hf = true; + bool enable_native_hfp_hf; pa_assert(m); @@ -125,6 +125,9 @@ int pa__init(pa_module *m) { goto fail; } + /* default value if no module parameter */ + enable_native_hfp_hf = (headset_backend == HEADSET_BACKEND_NATIVE); + autodetect_mtu = false; if (pa_modargs_get_value_boolean(ma, "autodetect_mtu", &autodetect_mtu) < 0) { pa_log("Invalid boolean value for autodetect_mtu parameter");