Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp874897rwe; Fri, 26 Aug 2022 17:07:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR5xxJh+BvUH+Lhuhpa/v/IzDfCB8nf5g71fNhSxsxIUs5iVNPReiJF2ubtLpwIPeKzjrukN X-Received: by 2002:a17:90b:3ec7:b0:1fa:cdc1:f66 with SMTP id rm7-20020a17090b3ec700b001facdc10f66mr6993546pjb.167.1661558841493; Fri, 26 Aug 2022 17:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661558841; cv=none; d=google.com; s=arc-20160816; b=zYDxlxAY9Idw7vc5SLlUfUCJgL3kqismeZr9jEDT3RMBq1HElytda8ATMTDzeS1/CD 7okrLkmhm4SNHxruLro1GzYhAvDZ6n66whHL0m2+vLGq7hkrRVWHUmEYLz7PO0xpz3Nq BbkiLoJp92XHeWqzCFB0tX51EO5YrJ0P4/lovp9ExJE+LJz75bELzMwCgpkU7vcyik3i dDNVuat/sEX2JHhoRg5igxXhRh75f7AYe9Ox+d1uyKol1D3dFfYTXdzut5Rrthmt1IGc YT3Yl0L7hohEQjtOUO0Pb7BTPP0/ngkzVpqt5lk4ffIyO+YGYeYWmDU40C4T4IV/uChj mw8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=QSMUiJU2mV970rn7ifAB8SnNl65gwzqHfzVq99/Upio=; b=wUUgLEDuKt2WHoxYGl1l1DIkJFSnAlZwWskvnau4CbHOcqH2wfFHtBDYQI+cuJiQ38 6dUkA5rrLwiHECLlL3Qb1AfeRLd2TMKY2tpDqr9+/kO249GDBjXyN3meQmcZNojNl5DI pHjkWS8qsVnef0SZMRN/Ef/TtwF1fmy9zLaQHKDOZk9t7a0JoPpyja/w+1tHU3/+AMNT +NJhKWCbh7bkT16oz5ihgwXMeLRUvImzfH9kK2M72fTrfT+GJuqMcN1NZTXyHG+XjMzU Fr1vUl4j+P8QPYiQG76Ota0GvqUgR2ClXKojrv793vzzie0RjrvpR0u5RBRXQqyY6v0L tpqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bUftI5hE; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u1-20020a170902e80100b0016c4fc2de44si3042765plg.456.2022.08.26.17.07.06; Fri, 26 Aug 2022 17:07:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bUftI5hE; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231842AbiH0AGF (ORCPT + 99 others); Fri, 26 Aug 2022 20:06:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345144AbiH0AGB (ORCPT ); Fri, 26 Aug 2022 20:06:01 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E92DFE8690 for ; Fri, 26 Aug 2022 17:05:58 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id r15-20020a17090a1bcf00b001fabf42a11cso3356709pjr.3 for ; Fri, 26 Aug 2022 17:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc; bh=QSMUiJU2mV970rn7ifAB8SnNl65gwzqHfzVq99/Upio=; b=bUftI5hEYHLl3HG/p+kK9c4BBchEmjnrjjZSVrNRVl3SK773aLPtxgftoAFk4LEoWJ WhRJTOcqA5qVsLqhU2UEt6lAgpgnuNiYbwfjVt6qtEF2L6ajprC3GFD4nLQliz1YA+8R qpae+UKs5LlJbVqFMcRq7/rUsTBI1t9Ds562aIxSOVj1NbUYYc4QOk7YPp71U4WOBe8r +QGzAvWtdNJQzPNaDb2XLIznWYJkcNPRJtNGD++qdNfLX4LyBYZXaXfDCUu7SlyIRO6h xEPzsddfc/9Olckjb8ZgZmltBjTn6rb84SWBQaBw8ygQXwJTy3Pfz56JGDE+ztO33gPo ehNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc; bh=QSMUiJU2mV970rn7ifAB8SnNl65gwzqHfzVq99/Upio=; b=rj/YA+SXpAdOiUmH2cPd+ONhY+TlwBu8KsyElXlHqw2nQTH6X04vF2fhkfcJ29Li9I /Z80xv6NBVdsllAzPv2WXGwYrsOmrlkXmteY95LH+CRKRlTaSPGzgCKMKlLEOLMGCIT7 6J02LlMP4gs5pbWS3Hm6SY24GG425tsvPFKIv98qdnekexBn9+P9PSshM7smHDGzmu7D 9J8IQtjMTxerSR57ilYSDEcWB8Vtv5LAXhABT1bekyeGjSFM3GrgY4JtsG3GY7qsaBut a5bHLPgaMojUPnL+izp1JhA718Zinc+BS/X6LTnEag2wJnHn10yNmH0KtICtd0rgzoCK Pr2w== X-Gm-Message-State: ACgBeo3bHcdQxN2z2Tm26scV2ukNDqy3DSSfSbA5awDmHFgop7++Tiob Sx3tsW/ihACb/WdymmWPCNr0FRfDo60= X-Received: by 2002:a17:902:e844:b0:16f:9d2:f4ff with SMTP id t4-20020a170902e84400b0016f09d2f4ffmr5899508plg.27.1661558757509; Fri, 26 Aug 2022 17:05:57 -0700 (PDT) Received: from lvondent-mobl4.. (c-71-56-157-77.hsd1.or.comcast.net. [71.56.157.77]) by smtp.gmail.com with ESMTPSA id o1-20020a17090a168100b001fa8b909ef0sm2249487pja.7.2022.08.26.17.05.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Aug 2022 17:05:56 -0700 (PDT) From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH v3 11/11] profiles: Update transport Links property on state change to QoS Date: Fri, 26 Aug 2022 17:05:40 -0700 Message-Id: <20220827000540.113414-12-luiz.dentz@gmail.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220827000540.113414-1-luiz.dentz@gmail.com> References: <20220827000540.113414-1-luiz.dentz@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Frédéric Danis Currently, the Links property is only sent after the first call to the Acquire method, this cmay result in a rejection if a linked transport tries to call the Acquire method before receiving the Links update. --- profiles/audio/transport.c | 1 + 1 file changed, 1 insertion(+) diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c index f36e609cbd7a..f233643a6a3f 100644 --- a/profiles/audio/transport.c +++ b/profiles/audio/transport.c @@ -1321,6 +1321,7 @@ static void bap_state_changed(struct bt_bap_stream *stream, uint8_t old_state, /* If a request is pending wait it to complete */ if (owner && owner->pending) return; + bap_update_links(transport); transport_update_playing(transport, FALSE); return; case BT_BAP_STREAM_STATE_DISABLING: -- 2.37.2