Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp595218pxk; Fri, 11 Sep 2020 15:31:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3lcCW/TRDfuv0FikH5tpPEZIKcDWRio1kervTwqKb4VM2pjTcdbT5YI9sPWVRKYaNWcgw X-Received: by 2002:a17:906:7013:: with SMTP id n19mr4015614ejj.388.1599863500597; Fri, 11 Sep 2020 15:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599863500; cv=none; d=google.com; s=arc-20160816; b=Ym88wf8gB29ShwlLtC5jG0roIe9aZIDULcxA54oeghmmRmvNR9sNIeGW5DpD9anccG 9s2PHxqYq8Gk34krOr3LjoZxwxbP6N6ObZPtCktp+cIBClwq97re59xHPIAm7OgQTbve QulLc1YhO5D23Zu9RTESL1F6xTOzIwPfqX+MD+SIQSpbGS/LbSf1Dy787gbP0CSe7at6 TSZoWHldOl3xw0S60fWrSv4a2cfKpTJEK+HnrjdfKWRIQS/UIioq2BzSK0OZQ6l/e8rr n9MFsc9e24MXvNVpZ1qyXYqMik56t0a7sEriJN3xBnJzpOaI9dfsEA9uNiOTDlLGj6pC Ynmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=g/SMny2P7BvcZfQfCGZTxLxuPv+qDCSbc/fXi3RUGtg=; b=ZAbP18kcjrmh+3FxZ29Gr4cykNlshr22WXPKkM2ydeoDc23ucL5rsZaB80GLg0G/Rn jjNusnG9CTmeJYq8XumEZAd3raUPX2BiPhY8f/JvSEAQmCrBLMQdJhwfme8erKORE1n+ zJOO5B6HoZyTnKOsKfvQMwt5HWZ4PLn0VdLOZ8Vdl0Bq/9IOq5cwulb9NZGx4sMLrLBJ 8F/98AcsLJSPngAdbI9i9C2VkoKAZEf8AWni4GAuOUrSEw/MJaEZ/ppQjsO5inoTk4+o hCYiOqSOIkbRPkl3bAZDJ1n9vccFVWwqvhJNT5TJ0MMYF79PbaawM8Nty3n2UyUlAGDC 3AYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YIdW57fX; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x7si2134684eje.505.2020.09.11.15.31.03; Fri, 11 Sep 2020 15:31:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YIdW57fX; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725889AbgIKWaz (ORCPT + 99 others); Fri, 11 Sep 2020 18:30:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725856AbgIKWat (ORCPT ); Fri, 11 Sep 2020 18:30:49 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DACAC0613ED for ; Fri, 11 Sep 2020 15:30:48 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id c3so1540359plz.5 for ; Fri, 11 Sep 2020 15:30:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=g/SMny2P7BvcZfQfCGZTxLxuPv+qDCSbc/fXi3RUGtg=; b=YIdW57fXDJDPfJWC84dOakS/JRR6DU97MKMfmWJpbZIypmzyrNVthU+rRju0soXp+F LZ4UhZW5A/q2Vz4RmRTQyYHbiQQ+vD5H8IyL/xOKr0bWn04Yybdp/UqQ7W/uQmnFZpch /wkhy/gBXI7DapM0ZkfIW4inEWRjM+/JAaC1o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=g/SMny2P7BvcZfQfCGZTxLxuPv+qDCSbc/fXi3RUGtg=; b=kkZXfKjYD3L3QKEHEHDmgjQWEB1GWRXmLix9lS2n+DMPUcbMDQQb6qSFbefO4G5a6S CEFR2c74Q93L1JcWmCGDjlM95QVylpjt48MMWKsMT+6mhsrG7jbIbfSKhEAHxDEbQFk+ lSScIP2441ub+8Ql5faMfESYqQg4PMtUOe+L0oddJc22yCf9kLxdayOwrK7zYmX8J2CE 1Xlz9PXrIoyg9ptp23wNq7VofZDgypjMo+Q+Y6AxePjxQcfOeL6gd5bLq2Lx5rD8pp9T CVgc8J6p0r8UZGOmiL92knncFFBPakXNTzu0wyLk8qj9sMUSzENugNHueZurSyuk792u mcYQ== X-Gm-Message-State: AOAM533af5MWA8oc1gQGSB/g42PDY+ASpmWeIEONDwxIvhdnSLIWGdPz Hj26AYKiJCmllGgfrEej796Pvg== X-Received: by 2002:a17:902:aa4b:b029:d0:cbe1:e739 with SMTP id c11-20020a170902aa4bb02900d0cbe1e739mr4589998plr.20.1599863447681; Fri, 11 Sep 2020 15:30:47 -0700 (PDT) Received: from apsdesk.mtv.corp.google.com ([2620:15c:202:1:7220:84ff:fe09:2b94]) by smtp.gmail.com with ESMTPSA id m14sm3123742pfo.202.2020.09.11.15.30.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 15:30:47 -0700 (PDT) From: Abhishek Pandit-Subedi To: luiz.dentz@gmail.com, marcel@holtmann.org Cc: chromeos-bluetooth-upstreaming@chromium.org, linux-bluetooth@vger.kernel.org, Abhishek Pandit-Subedi Subject: [Bluez PATCH v4 3/4] policy: Enable reconnect for a2dp-sink in defaults Date: Fri, 11 Sep 2020 15:30:36 -0700 Message-Id: <20200911153010.Bluez.v4.3.Ic87c0fbb00fe76356cee8f78a82b29a47fc6d438@changeid> X-Mailer: git-send-email 2.28.0.618.gf4bc123cb7-goog In-Reply-To: <20200911223037.4127188-1-abhishekpandit@chromium.org> References: <20200911223037.4127188-1-abhishekpandit@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Add a2dp-sink to default reconnects list. --- Changes in v4: None Changes in v3: None Changes in v2: None plugins/policy.c | 3 ++- 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. -- 2.28.0.618.gf4bc123cb7-goog