summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@HansenPartnership.com>2017-09-21 11:49:45 -0700
committerIgor Kovalenko <igor.v.kovalenko@gmail.com>2021-02-23 06:54:39 +0000
commitcb193e19ee9dc04b54ee62dfba2b194ec275ad5c (patch)
tree6fe786f68c02130042bc854cf309226f5a8166b1 /src
parent485a64642e8da895f1b71ccc3d8aee78f5645639 (diff)
downloadpulseaudio-cb193e19ee9dc04b54ee62dfba2b194ec275ad5c.tar.gz
bluetooth: make native the default backend
Change default backend from 'auto' to 'native' so that in the usual install pulseaudio uses the native backend with HFP_HF handling. set default to false unless the backend is the native one, in which case the default becomes true. Additionally set default value of enable_native_hfp_hf to false unless the backend is the native one, in which case the default becomes true. so that we only bind the HFP_HF end point in the native case (leaving it free for ofono in the ofono backend or auto case) Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/491>
Diffstat (limited to 'src')
-rw-r--r--src/modules/bluetooth/module-bluez5-discover.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/bluetooth/module-bluez5-discover.c b/src/modules/bluetooth/module-bluez5-discover.c
index 14583b6cd..d3cbf31af 100644
--- a/src/modules/bluetooth/module-bluez5-discover.c
+++ b/src/modules/bluetooth/module-bluez5-discover.c
@@ -98,7 +98,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
@@ -131,6 +131,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");