Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp141301rwp; Wed, 12 Jul 2023 10:54:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlGjQkNvjfMbCIhmOvhvfK0HHbS9fRV9M1Ayk7GATk0xJ2JWmAwkpJWFAHJ6mk4UBws2fAL8 X-Received: by 2002:a05:6402:715:b0:51d:d1c0:63f7 with SMTP id w21-20020a056402071500b0051dd1c063f7mr3673676edx.4.1689184468088; Wed, 12 Jul 2023 10:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689184468; cv=none; d=google.com; s=arc-20160816; b=c8J+R6GPbfzJahqxDpdcCas3fZaq3IK/duI18kJNaE3MEpNgcEzKxqY1UEGPnRVDco WmfuXdqNXAFQ/MQJxEyKTXlKexHR2H2nDn9A1EIm43d7Mqdm29uQfwt7pGqeMZ2QAdrI yPilfSRmJSjHARLgeQX0he/iEh8fUZQPAdcl3J6xggmsPq93UtPqyUrLQm9shQVli4Ik D9+zxsI0G1ire78uRWLvFDIFthjuneqyfxaUth9tUYVtT/egsSiQk44fWn0rLs02q0YT /mo62Oq9UgqqSaAnOQUpLAMXOj/xEbiNadzwgIXNvWy5YYB61d5Df1SqYIK7zpDX40LD iSwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=M6OqCU5wAPQ++4ZxThpOx7EAj7O48JAkR2/f0ypEfZw=; fh=EbSrzLzjQdCbcNqHS2AYXkcSnQn4xXs56eqKQgC0fhE=; b=r39FANN//8cb0XHTh4UCdB3GeJ5iic49ah7mNnZrPubGTW27g5j1pcY8Jo6n4FWrnN ftK7/kT8LBp4BOZJa1qnAx77/dAPYGtfZSxqdTlRB4pUxGkHFPUWOCkMvsjiHpazb7hD Hl9bXKVS1MVmrDifN45ntVumnNl129K1ADcSGdFIb/ObLRqOQX4iPdMoMCHdYwlvXa48 NcfQhwKa0bF8TdLhcXiJN5XcRjwI2JQmKpfEWkDFANbU0FGO4Yh/zZVy+L3OxywpetsC TAjMKFGMsdDjBxGHaax5x1TMhlkKURvXkWhPtFicoUKh/8brr9eI+Sug7Dbt1fOLN859 2yDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=UVhQngfe; 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 i4-20020aa7c704000000b0051beec1b3f3si5497861edq.500.2023.07.12.10.53.55; Wed, 12 Jul 2023 10:54:28 -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=20221208 header.b=UVhQngfe; 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 S232034AbjGLRpX (ORCPT + 99 others); Wed, 12 Jul 2023 13:45:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230207AbjGLRpW (ORCPT ); Wed, 12 Jul 2023 13:45:22 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE5F61FD4 for ; Wed, 12 Jul 2023 10:45:18 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2b7441bfa9eso23451fa.0 for ; Wed, 12 Jul 2023 10:45:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689183917; x=1691775917; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=M6OqCU5wAPQ++4ZxThpOx7EAj7O48JAkR2/f0ypEfZw=; b=UVhQngfeQ0EaItQud/jk79ow/fIf1CDO/d6fggFS9GUMQcVJKRRRJE0MuYYetIpwgz GOW2BCqILDIcD5/aUmESwttUTN82EjzdUmC088sjAVKD5asy8pe5hEwMov3Ht8/JNNnM EVGQA040bL/KKZh38Fk8kkaZIH9qCeDgGepq4vQDXEqb5E7jQyJifgz4gaurSZHSX3SX WKMVZMPdBY6ooMdkkXFkBsWtd+fjWAFuVCbfWte4TomlezDK8y2x1aum35b5nOyyBHlH gZkPFcPkg2MGTstRCoBC4gRYmbJ2IB78ks7WWMFWk9HsXMuybELWIlSXGdKHLo9p+V0Y EedQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689183917; x=1691775917; h=content-transfer-encoding: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=M6OqCU5wAPQ++4ZxThpOx7EAj7O48JAkR2/f0ypEfZw=; b=G4Qnmyl3VQ/MTv+R2487OXkK5zP+5EXZLl6NoAKMQP0Q+Hpj9r+UCpDmybwHPENuYQ M/hSd5FZ20/SILOAgq/Jtz+rux/mc5Sp1UcaNirOB9aJ4InwpKzZTlCH2brsH2nwOj2Y LmRQeJ4duV+s7CBegvb4cpQQLecUT96qle7oE4Oc9jzRGdPdxFDnqh9u7bXkGSGmOHU6 ZocY1uxFmkRYSgaWpPoLUTcbhj/tAcO+uXbeAMjFWlqxZQffetO0JJhEJKl8MDyfjAmB ieBoYI3QMMsnUchvmiVIF9XqmK4AWQvFRViRAXWjOvA5E2Ul8Qfn3NQzji3Iw0qUNHc3 ZiUw== X-Gm-Message-State: ABy/qLY67+3gpcGgmWmckaFOT//WGqAehvLwXJmTjUQPPoO/pZkPNRTB PeHRcPm2gzk/G0kCOVADpERnGJrPGkxc2aAyPNJUZEzW57A= X-Received: by 2002:a2e:b10f:0:b0:2b6:a694:aaa1 with SMTP id p15-20020a2eb10f000000b002b6a694aaa1mr1039040ljl.1.1689183916893; Wed, 12 Jul 2023 10:45:16 -0700 (PDT) MIME-Version: 1.0 References: <20230712122135.7734-1-claudia.rosu@nxp.com> In-Reply-To: <20230712122135.7734-1-claudia.rosu@nxp.com> From: Luiz Augusto von Dentz Date: Wed, 12 Jul 2023 10:45:04 -0700 Message-ID: Subject: Re: [PATCH BlueZ v2 0/6] Add support for BAP broadcast sink To: Claudia Draghicescu Cc: linux-bluetooth@vger.kernel.org, iulia.tanasescu@nxp.com, mihai-octavian.urzica@nxp.com, silviu.barbulescu@nxp.com, vlad.pruteanu@nxp.com, andrei.istodorescu@nxp.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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_BLOCKED,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 Hi Claudia, On Wed, Jul 12, 2023 at 5:46=E2=80=AFAM Claudia Draghicescu wrote: > > This series of patches adds support for BAP broadcast sink. > It consists in registering a sink endpoint using the Sink PAC UUID, > discovering of broadcast advertisers that announce the > Broadcast Audio Announcement service, synchronizes to the Periodic > advertisements of the source and synchronizes to the BIG advertised > in the PA train. > To retrieve the BASE info advertised in the PA train, the patch > Bluetooth: ISO: Add support for periodic adv reports processing > was used. > > This feature was tested using bluetoothctl with the following commands: > > [bluetooth]# endpoint.register 00002bc9-0000-1000-8000-00805f9b34fb 0x06 > [/local/endpoint/ep0] Auto Accept (yes/no): y > [/local/endpoint/ep0] Max Transports (auto/value): a > [/local/endpoint/ep0] unicast/broadcast (u/b): b > [/local/endpoint/ep0] BIG (auto/value): a > [/local/endpoint/ep0] BIS (auto/value): a Ive thought we would be using BAA UUID instead to follow the same setup as the broadcaster role. > [bluetooth]# scan on Then while scanning if we find an announcement it should create a remote endpoint under the device object path, just as in case of unicast, which can later be used with endpoint.config. > [bluetooth]# endpoint.config /org/bluez/hci0/pac_bcast0 > /local/endpoint/ep0 16_2_1 Here then one would replace /org/bluez/hci0/pac_bcast0 with the one found during the scanning, so the difference with broadcaster becomes the source endpoint, if you pass the adapter it is for broadcaster role or in case it is a remote endpoint the it is for listener role so the commands would work similarly in all directions > Claudia Draghicescu (6): > client/player: Add broadcast sink endpoint registration and > configuration. > client/main: Add broadcast source discovery > media: Add support for a broadcast sink media endpoint > transport: Update transport properties for a broadcast stream > btio: Add support for getsockopt(BT_ISO_BASE) > bap: Add gdbus interface for BAP broadcast sink, create > synchronization with source and create BAP broadcast sink stream > > btio/btio.c | 13 +- > client/main.c | 57 +++++- > client/player.c | 187 +++++++++++++++++++- > client/player.h | 3 + > profiles/audio/bap.c | 347 ++++++++++++++++++++++++++++++++++--- > profiles/audio/media.c | 35 +++- > profiles/audio/media.h | 2 +- > profiles/audio/transport.c | 244 +++++++++++++++++++++++++- > src/shared/bap.c | 50 +++++- > src/shared/bap.h | 4 +- > 10 files changed, 888 insertions(+), 54 deletions(-) > > > base-commit: 838e1578072900d1f98dfb31cc538940d2fad876 > -- > 2.34.1 > --=20 Luiz Augusto von Dentz