From 8129b6658e98d0dfbc7aebda0b6e59f0a9e40e5e Mon Sep 17 00:00:00 2001 From: Huang-Huang Bao Date: Thu, 22 Apr 2021 08:26:46 +0800 Subject: [PATCH] bluez5: rename 'bluez5.reconnect-profiles' property to 'bluez5.auto-connect' Avoid confusion with 'ReconnectUUIDs' in bluez policy config. See #1081. --- spa/plugins/bluez5/bluez5-device.c | 2 +- src/daemon/media-session.d/bluez-monitor.conf | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/spa/plugins/bluez5/bluez5-device.c b/spa/plugins/bluez5/bluez5-device.c index 183a0934c..6e2df8a04 100644 --- a/spa/plugins/bluez5/bluez5-device.c +++ b/spa/plugins/bluez5/bluez5-device.c @@ -1881,7 +1881,7 @@ impl_init(const struct spa_handle_factory *factory, int profiles; this->bt_dev->settings = filter_bluez_device_setting(this, info); - if ((str = spa_dict_lookup(info, "bluez5.reconnect-profiles")) != NULL) { + if ((str = spa_dict_lookup(info, "bluez5.auto-connect")) != NULL) { if ((profiles = spa_bt_profiles_from_json_array(str)) >= 0) this->bt_dev->reconnect_profiles = profiles; } diff --git a/src/daemon/media-session.d/bluez-monitor.conf b/src/daemon/media-session.d/bluez-monitor.conf index 50028ec22..e483378bf 100644 --- a/src/daemon/media-session.d/bluez-monitor.conf +++ b/src/daemon/media-session.d/bluez-monitor.conf @@ -40,9 +40,10 @@ rules = [ # Actions can update properties on the matched object. update-props = { - # Autoconnect device profiles, disabled by default - # if the property is not specified. - #bluez5.reconnect-profiles = [ + # Auto-connect device profiles on start up or when only partial + # profiles have connected. Disabled by default if the property + # is not specified. + #bluez5.auto-connect = [ # hfp_hf # hsp_hs # a2dp_sink @@ -50,10 +51,10 @@ rules = [ # hsp_ag # a2dp_source #] - bluez5.reconnect-profiles = [ hfp_hf hsp_hs a2dp_sink ] + bluez5.auto-connect = [ hfp_hf hsp_hs a2dp_sink ] # Overload mSBC support for native backend and a specific device. - #bluez5.msbc-support = false + #bluez5.msbc-support = false # Hardware volume control (default: [ hfp_ag hsp_ag a2dp_source ]) #bluez5.hw-volume = [