bluez5: rename 'bluez5.reconnect-profiles' property to 'bluez5.auto-connect'

Avoid confusion with 'ReconnectUUIDs' in bluez policy config. See #1081.
This commit is contained in:
Huang-Huang Bao 2021-04-22 08:26:46 +08:00 committed by Wim Taymans
parent f44d00424f
commit 8129b6658e
2 changed files with 7 additions and 6 deletions

View File

@ -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;
}

View File

@ -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 = [