Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp797023rdb; Sun, 1 Oct 2023 06:06:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IElJX8Gct/KtdfRkrCs4AlsVe3c8kK3X84rc2Rz0j3JUswtEeEpL+mpVDuJ4gCemlOW80gH X-Received: by 2002:a17:903:185:b0:1c5:f663:1722 with SMTP id z5-20020a170903018500b001c5f6631722mr8451705plg.6.1696165565519; Sun, 01 Oct 2023 06:06:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696165565; cv=pass; d=google.com; s=arc-20160816; b=u/Wi2+ab814RzEvLvrnKul3FP1DJ4A4sJ41hVzFxJUY7SohLmsj1LqdtXqABRDEk1n nkNZ7kR8K3tkBG/aKgolMTmNBjAMLq7WgR9vToS2u0GjlzeLlMTW9RKhkf7jGmV0mX8e DNAQ8+NNgGDh+NTGrNdRtJfZSVgUQqPBckSK295pffTtZ0TDMdXBfKCN6yOeQum+R/ql 7Mlegon+OVkzlHYvuh2iXrRb7ivfcmYWoW/RgCpBaIoWRP632DE1OC2pIuV8vbnm+9Gu jjLICclPA9q6uEF0ZJ0uo5y+pOtX5EcsV4L3S1H7dCptZV5iVcrp3OgxJARfH+aJWFaK PwFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=9BlBv/2Xp8qYvgYxs+dlophEqLLDcw2DVFjV3yp2+Vc=; fh=ExGhjNQEFJgRqHmYATVc5UXZbS7abAmaHDitrfHKOuE=; b=N0sLSO2R1bP/5BxXDL3ubXyMr83LariJ8RjbJTXnbXOZ+0Y6apV2cZG80oKHNDvHHp Cky0B18NXewK5moF5qUMS7ekrdzV+YQdeZFQtJsPIYirOzEM5BJsHoyGqYtSamn8CvoR ySC6kPoWrNf+7ypPEP3Gqs7xLAJ7KjnTVjOu7ulcfnkpL3vKAOKutxXoPI9+JxrnGO/d Y8DISsd8dN6BpEyJLRdxFp6p9FQ+YU2+9QEIR6k4R+BKFiWELk+47q4q2NVTdnbWw7lL ILoGiaelVoC1s9hwd5FR30XAL7XiUzkrtR4ataonOU/dHWryL2IGk3KSIR333Y1P525D eAiA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iki.fi header.s=meesny header.b=q4EPvWZS; arc=pass (i=1); spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id i2-20020a17090332c200b001c72b13a1cbsi11342804plr.352.2023.10.01.06.06.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 06:06:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@iki.fi header.s=meesny header.b=q4EPvWZS; arc=pass (i=1); spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 02FAB802886C; Sun, 1 Oct 2023 04:10:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234859AbjJAK53 (ORCPT + 99 others); Sun, 1 Oct 2023 06:57:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234839AbjJAK52 (ORCPT ); Sun, 1 Oct 2023 06:57:28 -0400 Received: from meesny.iki.fi (meesny.iki.fi [IPv6:2001:67c:2b0:1c1::201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70D18AC for ; Sun, 1 Oct 2023 03:57:23 -0700 (PDT) Received: from monolith.lan (91-152-120-176.elisa-laajakaista.fi [91.152.120.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pav) by meesny.iki.fi (Postfix) with ESMTPSA id 4Rz1Hx7293zybZ; Sun, 1 Oct 2023 13:57:16 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1696157838; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=9BlBv/2Xp8qYvgYxs+dlophEqLLDcw2DVFjV3yp2+Vc=; b=q4EPvWZSMfH0+ieeUXODq93UTDe99vH5xFPvdk6twFoHy2S/cX4H6awCuOIYmUTw6x/ct9 yZqGAOeZQftaTtif20iqPHxWbLVtbIirkeGi5CAB0phLzYnLlDqCzBU5SVjevII8uS7wLO LT48VDVRKIKdvLAA2z0Oet6amD5PBDM= ARC-Seal: i=1; s=meesny; d=iki.fi; t=1696157838; a=rsa-sha256; cv=none; b=vjLyrtLPVIHt/DmKtoBt4ClQA2KhgrqwOHhGFPxQEM/qg8/Krv6R46fns3ZMoAS2gLURs1 hh8qCAdJkZKWrfRvY1mMCHkyXdepGMaqGjj68dgQ9BWjWEXjq6Uiq4uz7AqwoFqtaVxH1O i65WgIF/pfI5agSaOEN+2iAGOvrH1m0= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=pav smtp.mailfrom=pav@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1696157838; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=9BlBv/2Xp8qYvgYxs+dlophEqLLDcw2DVFjV3yp2+Vc=; b=mv6ccJZ4e7UVqqxpT4jAKbV8nAUgoxmO7vHlByjYYyyIFQnLktQDZqaqxqyDO6HnaCBjsA 6rpNU+EtAIx0+whHoiF574Hdyt3FmqMW/seqBKxBPr0bHKdtTcuFxOMrXPHYOMx0P1NyTs GD4lfdFY8XY+jszj7uaUjFAWHNdwFkI= From: Pauli Virtanen To: linux-bluetooth@vger.kernel.org Cc: Pauli Virtanen Subject: [PATCH BlueZ 1/2] bap: use documented MediaEndpoint property names consistently Date: Sun, 1 Oct 2023 13:57:14 +0300 Message-ID: <3358dfd1591df242507755cea63d00db3d2c959e.1696157794.git.pav@iki.fi> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 01 Oct 2023 04:10:57 -0700 (PDT) Use the documented name "MaximumLatency" for the MediaEndpoint QoS Max_Transport_Latency field, in SelectProperties input parameters and expected client MediaEndpoint properties. Use the name "Locations" for SelectProperties supported locations input parameter, to match the MediaEndpoint property name which indicates the same thing. --- profiles/audio/media.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/profiles/audio/media.c b/profiles/audio/media.c index 8345487d7..85ece47c4 100644 --- a/profiles/audio/media.c +++ b/profiles/audio/media.c @@ -965,7 +965,7 @@ static int pac_select(struct bt_bap_pac *lpac, struct bt_bap_pac *rpac, loc = bt_bap_pac_get_locations(rpac); if (loc) - g_dbus_dict_append_entry(&dict, "Location", DBUS_TYPE_UINT32, + g_dbus_dict_append_entry(&dict, "Locations", DBUS_TYPE_UINT32, &loc); if (metadata) { @@ -983,8 +983,8 @@ static int pac_select(struct bt_bap_pac *lpac, struct bt_bap_pac *rpac, g_dbus_dict_append_entry(&dict, "PHY", DBUS_TYPE_BYTE, &qos->phy); - g_dbus_dict_append_entry(&dict, "Latency", DBUS_TYPE_UINT16, - &qos->latency); + g_dbus_dict_append_entry(&dict, "MaximumLatency", + DBUS_TYPE_UINT16, &qos->latency); g_dbus_dict_append_entry(&dict, "MinimumDelay", DBUS_TYPE_UINT32, &qos->pd_min); @@ -2749,7 +2749,7 @@ static void app_register_endpoint(void *data, void *user_data) dbus_message_iter_get_basic(&iter, &qos.phy); } - if (g_dbus_proxy_get_property(proxy, "Latency", &iter)) { + if (g_dbus_proxy_get_property(proxy, "MaximumLatency", &iter)) { if (dbus_message_iter_get_arg_type(&iter) != DBUS_TYPE_UINT16) goto fail; -- 2.41.0