mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
f44d00424f
commit
8129b6658e
2 changed files with 7 additions and 6 deletions
|
|
@ -1881,7 +1881,7 @@ impl_init(const struct spa_handle_factory *factory,
|
||||||
int profiles;
|
int profiles;
|
||||||
this->bt_dev->settings = filter_bluez_device_setting(this, info);
|
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)
|
if ((profiles = spa_bt_profiles_from_json_array(str)) >= 0)
|
||||||
this->bt_dev->reconnect_profiles = profiles;
|
this->bt_dev->reconnect_profiles = profiles;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -40,9 +40,10 @@ rules = [
|
||||||
# Actions can update properties on the matched object.
|
# Actions can update properties on the matched object.
|
||||||
update-props = {
|
update-props = {
|
||||||
|
|
||||||
# Autoconnect device profiles, disabled by default
|
# Auto-connect device profiles on start up or when only partial
|
||||||
# if the property is not specified.
|
# profiles have connected. Disabled by default if the property
|
||||||
#bluez5.reconnect-profiles = [
|
# is not specified.
|
||||||
|
#bluez5.auto-connect = [
|
||||||
# hfp_hf
|
# hfp_hf
|
||||||
# hsp_hs
|
# hsp_hs
|
||||||
# a2dp_sink
|
# a2dp_sink
|
||||||
|
|
@ -50,7 +51,7 @@ rules = [
|
||||||
# hsp_ag
|
# hsp_ag
|
||||||
# a2dp_source
|
# 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.
|
# Overload mSBC support for native backend and a specific device.
|
||||||
#bluez5.msbc-support = false
|
#bluez5.msbc-support = false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue