Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3129835pxk; Tue, 15 Sep 2020 10:45:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaDCW29HWCF7kV+Gw7EjLSWdXO23bS0MOoJzMNrYMh7ZwuW4v2SSQEFzziopI8mMU2/4G2 X-Received: by 2002:a17:906:dbf5:: with SMTP id yd21mr20897554ejb.521.1600191956188; Tue, 15 Sep 2020 10:45:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600191956; cv=none; d=google.com; s=arc-20160816; b=gmKtBScXt2sRcadIQnu2yjhg6Q6fI+G22YDJBYMNnpI2giF7eoHUw89VktocT7f0oQ TTLN9t8VUSliHHYK2Gs9tMZEs31QAMbWyjQY86gX01r0qOboptKAt5ETelDNMyjBBHhb q7YPYsqnH+lBFdmF5dvgb2FKjhLEPugYTOYuBysemORfVWN+DcGc6BDqCj2RrPOgh2Zj 49d2FlJtNCJ7ScGvBoP6xkgLIG/RDER9H0ormC8FBxWJrSc2Osn4TagT6mw/Zk/PfKpF tJyHcCIWMRZcTgmf2CUZvllvIeIR4oVXvO05B+eRUCBe/f/WDQVGieuYMTkgw5ysagBT tHAw== 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=etTtXFZ+lu630ZAqLK4CGu9TZoeAs1sQTeV8Ne2d0us=; b=1IaOTjZDdpVd8fPA94q/NX4QGFqvkGUluAtQ4FI6rcT61hfz08jjMR3DBspgdm5NiJ 6xMloo3fppfnwyOxwmhTXFNDwQxrfvhWLkvH1EgvaIuyJofETXHVQzhIoAVoe76lhH9C ebk32112VafJVVD1n/AmvvSvhGxKKIYQRfoQXLLh04UK4ladbHNFFCaXc4CTKsgEwj6x LblHLR2+0Er7m/MRb7baNGbCfdZLC2cZ38FtSii7AWpt3qEq8L7NM2Ii8e+tglvqVpE7 az2z3XeQTeCs/IWiAn16wWv73h9edEh4mWacRkovuAWiFxc8cErU82K0mw6HCQFmBs8f xbyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OLQmmhyk; 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 l4si9693006edn.124.2020.09.15.10.45.31; Tue, 15 Sep 2020 10:45:56 -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=OLQmmhyk; 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 S1727976AbgIORm6 (ORCPT + 99 others); Tue, 15 Sep 2020 13:42:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727962AbgIORmA (ORCPT ); Tue, 15 Sep 2020 13:42:00 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB10AC06178B for ; Tue, 15 Sep 2020 10:41:59 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id a9so169573pjg.1 for ; Tue, 15 Sep 2020 10:41:59 -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=etTtXFZ+lu630ZAqLK4CGu9TZoeAs1sQTeV8Ne2d0us=; b=OLQmmhykEbiDObMY6ZoX0TLRp1ikCpRQyFIyK1sjIC0ENWMNyGSUAxdt+OD97awO3+ 6YKkwfzsOP2C5Q18SyYf0T8YUUOAxj+g4zbJ5rStZUVB8g/TCbbSRHTR1MNG4Lw9h3eG Q9XkScCXCbLPD0sRs7YQEysLZLNHya8dG2vdg= 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=etTtXFZ+lu630ZAqLK4CGu9TZoeAs1sQTeV8Ne2d0us=; b=Wtot8YXLdN29U1UvlsTtXAJwaKoW4NJEeQStue0bkhFXjEnLDq00dpsasPMQHCx3wJ nuB+U76hB7kos1t23Q+H1cACHsjJpVTFufO9R2z2p/2ryOuzRFDJrjqm1XWpcnmDt6YC jdo7xgicp2KSWNbh1TUnQJhKoh5TLDYZgQQme3MEqPhydTTfwLIZcSrMxcgEHRT7juhN KdQCPFlyz/taxOL1K7qUvCq7qjSvuWMXG+IvJDGad0FtTbjgiQ9u/LC/3EnLVi3AwPBJ ukRIujWIZs6hZEXUzQXDMCDcCfVKkHTtsk+pB4MG5WOsurVvIBGtYyRU1GCHltIaJRxA 7JnA== X-Gm-Message-State: AOAM531IlYzcvUkum+GEw35AGV7lwd1sop1kAxQEdD7tMykdGYiQPKBw EHXmwSU/T4mwjsNmJqCdF3wKOQ== X-Received: by 2002:a17:90a:dd46:: with SMTP id u6mr456402pjv.67.1600191719475; Tue, 15 Sep 2020 10:41:59 -0700 (PDT) Received: from apsdesk.mtv.corp.google.com ([2620:15c:202:1:7220:84ff:fe09:2b94]) by smtp.gmail.com with ESMTPSA id y29sm15490232pfq.207.2020.09.15.10.41.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 10:41:58 -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 v5 3/4] policy: Enable reconnect for a2dp-sink in defaults Date: Tue, 15 Sep 2020 10:41:45 -0700 Message-Id: <20200915104127.Bluez.v5.3.Ic87c0fbb00fe76356cee8f78a82b29a47fc6d438@changeid> X-Mailer: git-send-email 2.28.0.618.gf4bc123cb7-goog In-Reply-To: <20200915174146.1693687-1-abhishekpandit@chromium.org> References: <20200915174146.1693687-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 v5: None 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