Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1281602rwi; Mon, 31 Oct 2022 14:10:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4QM1ocx3A3bIkmgGdBy3uxf/yVItqv8kAkFhW3wxEzJTxpfOilaa1zzMGIuBmuq4OreJpf X-Received: by 2002:a05:6402:1248:b0:461:fc07:b95b with SMTP id l8-20020a056402124800b00461fc07b95bmr15945392edw.56.1667250617988; Mon, 31 Oct 2022 14:10:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667250617; cv=none; d=google.com; s=arc-20160816; b=Wmypg7f10aXbFjBeDhx3Cuk8IZksU6BT6FpZfSZ8QU09yvp7sMj+GZWYDeZMQk1YrV SH+Y1kiF+PP7zNfIn73QMPFBUUsbNPPZFst10RHDXhHkVK43kMgK3hA80R3j9LE2etBn CyQsEHHk7grNFblkHmqap5NMNXR0GyPuLsss+GU7ypo5YBUTA/HAev44y55if2I96yH4 0dziZd1+Kutio1xzgjlWNWEA+aYI/8giH5tvMm3EvsZ0pJsSB1sKM30ZuWKhhroll2kb lwRWk3D3pvREqmF9b4a3QJVuTQn1L0rzcGnYUuF9E57vX66keegfYfUaKoVSIXvHMQqt v8Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=nv+um2iHootXO2ohoNURrDQrq8avbiRP9ra/LyIjPj8=; b=H84EzFrD82VSHGb732eYllBbwFclvONXX3amwoapTmD5jFweCqhFgs7sHaD05yjtnW 0x/Zt+EGNl0qC2dpA8sgxDx9K6lNK66O50hfw/Did/LaQ3gyO6Wkp80J7DAk1tTBWOKw 8L+Utp8q62oLG3U+7WK2Eq9iQzl6Bpe7fhBtQinzOiRG3vgxr/MxfAeD7audRmnHhmnc xnmghMGaFdQQILmgYLqn56+RBqLJSmysM/t0tRDBx0dMdqTECQwJ6eyNcz4K4Eg/EfAr 8/b1KjmeVN9HlUvTWULQJsqJFJ+REzdhosX6O+Yt/v3wLhgIotSXWa9Mp7z1uf1EXaaZ o12Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="EhPLOh/D"; 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 f12-20020a0564021e8c00b00461d726439asi9231198edf.538.2022.10.31.14.09.46; Mon, 31 Oct 2022 14:10:17 -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="EhPLOh/D"; 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 S229909AbiJaU5v (ORCPT + 99 others); Mon, 31 Oct 2022 16:57:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229739AbiJaU5u (ORCPT ); Mon, 31 Oct 2022 16:57:50 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 094FF12762 for ; Mon, 31 Oct 2022 13:57:49 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id u2so18265416ljl.3 for ; Mon, 31 Oct 2022 13:57:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=nv+um2iHootXO2ohoNURrDQrq8avbiRP9ra/LyIjPj8=; b=EhPLOh/DhuuH/nSHEn0t1orfBVqYL9hoiDnEiUrDJmNuKI1UduqzXOHFGsZunrv4za mNkaa2jfPCdRcxw5u4bWEMKc+4C0mmNq5Oofcb+d1wpDZ0twxc74djNN8jtoGFj19pta eHQ/ANm4HpQw4mt0yQ41DdIPT6yhwPtSjRRyG7zAsolwi2cjC6VcWA+/Cm9hmglvyzTg ne/fjApyo8ER7JDayBp3N+Jlkpu/5TkdqoE7PdePaLRm87bH/f7xVzp+2JgZulJY8mCO UXLVnywhdqkGuB2ung+itkB75Mp6GTFYTNJFoCU0ddQGd0W6crJG2UQQ2sLE7xnD+eok GsFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nv+um2iHootXO2ohoNURrDQrq8avbiRP9ra/LyIjPj8=; b=Xhru3w5B1YIb573PfwO9SuNi4cNdmMs3Cn2AhsKQijEzJkfIreOqPWCYCNbRUhgfuy lj9NKU69iH1NVLX3z+YfE4n5+pPHnPkXVxzU7CUzysMwkFvfKiJFF5spUIJVaWR0rMCX 5l8TDFYBD9S1A029Vanh63YAv0W1Dq+brhvm8bstvYrA6IWSgFYUZABEcpUAnimMX45Y 3TgHvZsPxSHl7SqvPA3T714r/br5nbnDFw9UXjK7OTKMO1DUSN5nWJxQvZQXoWP2p90Z FveeipfU6xyhdYmnz7VQiFy0b6Dl8R5Un081bXMrdhU0FwBulxmM3NBaOsGsTY+FyckE +Egg== X-Gm-Message-State: ACrzQf1Il+uH/7oYoDiKTiyIo/BgXURglt6KYMj2Y3KCRadL+ufbgOij VCTEcvSSB40rOuQOljR0MMksCe+EbeQbpBwWUdDaMXY1KNI= X-Received: by 2002:a2e:9208:0:b0:277:46da:16d2 with SMTP id k8-20020a2e9208000000b0027746da16d2mr4819756ljg.161.1667249867312; Mon, 31 Oct 2022 13:57:47 -0700 (PDT) MIME-Version: 1.0 References: <20221029170408.175533-1-abhay.maheshbhai.maheta@intel.com> <20221029170408.175533-5-abhay.maheshbhai.maheta@intel.com> In-Reply-To: <20221029170408.175533-5-abhay.maheshbhai.maheta@intel.com> From: Luiz Augusto von Dentz Date: Mon, 31 Oct 2022 13:57:35 -0700 Message-ID: Subject: Re: [PATCH BlueZ 4/5] media-api: Add CompanyID, VendorCodecID, Metadata To: Abhay Maheta Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" 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 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 Hi Abhay, On Sat, Oct 29, 2022 at 9:54 AM Abhay Maheta wrote: > > From: "Maheta, Abhay" > > This adds CompanyID, VendorCodecID, Metadata for RegisterEndpoint method > --- > doc/media-api.txt | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/doc/media-api.txt b/doc/media-api.txt > index 847f8bee7..ce2b74e53 100644 > --- a/doc/media-api.txt > +++ b/doc/media-api.txt > @@ -34,11 +34,29 @@ Methods void RegisterEndpoint(object endpoint, dict properties) > match the profile specification which > is indicated by the UUID. > > + uint16_t CompanyID: > + > + Assigned number of Company ID that the > + endpoint implements. It should be set to > + appropriate value when Vendor Specific > + Codec is used. > + > + uint16_t VendorCodecID: > + > + Vendor-specific codec ID that the endpoint > + implements. It should be set to appropriate > + value when Vendor Specific Codec is used. I think we can be a less confusing with respect to CodecID, so instead of using the special 0xff to determine the endpoint is registering a vendor codec we can use the CompanyID directly, so if it is present (D-Bus property exists) then codec ID is used a vid and the codec id is set to 0x0ff. We also need to document if CompanyID is BAP only or not, afaik for A2DP we do have this information prepended into the Capabilities, but I think adding the CompanyID is better so I wouldn't oppose adding support for it also in A2DP. > array{byte} Capabilities: > > Capabilities blob, it is used as it is > so the size and byte order must match. > > + array{byte} Metadata: > + > + Metadata blob, it is used as it is > + so the size and byte order must match. > + > Possible Errors: org.bluez.Error.InvalidArguments > org.bluez.Error.NotSupported - emitted > when interface for the end-point is > -- > 2.25.1 > -- Luiz Augusto von Dentz