diff options
author | Abhishek Pandit-Subedi <abhishekpandit@chromium.org> | 2020-09-11 15:30:36 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-09-14 13:20:41 -0700 |
commit | 20275c5a9b22c321853199d85c2b14b06befd0f6 (patch) | |
tree | 836cf2fdcaa1fd2b6ca5f09f7b23ba8604c4b37b | |
parent | 9bf6b051b520bd88473da4bbf7b84c92f994a2c0 (diff) | |
download | bluez-20275c5a9b22c321853199d85c2b14b06befd0f6.tar.gz |
policy: Enable reconnect for a2dp-sink in defaults
Add a2dp-sink to default reconnects list.
-rw-r--r-- | plugins/policy.c | 3 | ||||
-rw-r--r-- | src/main.conf | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/policy.c b/plugins/policy.c index de51e58b9..c18ca8d1f 100644 --- a/plugins/policy.c +++ b/plugins/policy.c @@ -65,7 +65,8 @@ struct reconnect_data { }; static const char *default_reconnect[] = { - HSP_AG_UUID, HFP_AG_UUID, A2DP_SOURCE_UUID, NULL }; + HSP_AG_UUID, HFP_AG_UUID, A2DP_SOURCE_UUID, + A2DP_SINK_UUID, NULL }; static char **reconnect_uuids = NULL; static const size_t default_attempts = 7; diff --git a/src/main.conf b/src/main.conf index 42f7e41c5..e1d77cc47 100644 --- a/src/main.conf +++ b/src/main.conf @@ -186,7 +186,7 @@ # timeout). The policy plugin should contain a sane set of values by # default, but this list can be overridden here. By setting the list to # empty the reconnection feature gets disabled. -#ReconnectUUIDs=00001112-0000-1000-8000-00805f9b34fb,0000111f-0000-1000-8000-00805f9b34fb,0000110a-0000-1000-8000-00805f9b34fb +#ReconnectUUIDs=00001112-0000-1000-8000-00805f9b34fb,0000111f-0000-1000-8000-00805f9b34fb,0000110a-0000-1000-8000-00805f9b34fb,0000110b-0000-1000-8000-00805f9b34fb # ReconnectAttempts define the number of attempts to reconnect after a link # lost. Setting the value to 0 disables reconnecting feature. |