Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp257983rdb; Thu, 1 Feb 2024 07:46:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IH93B8MSXdMBekoDsPx/r7aTaJyaH2uTCpL102J/V4a9YerqHvOh4RtKugNs3gz4HB4H6QA X-Received: by 2002:ac8:7e90:0:b0:42b:fefc:b851 with SMTP id w16-20020ac87e90000000b0042bfefcb851mr298806qtj.62.1706802399968; Thu, 01 Feb 2024 07:46:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706802399; cv=pass; d=google.com; s=arc-20160816; b=yRGK7NSSzaICwWZKexzZUVA/EiOEA6rAqTyZX4F11LpBaqcxGiSRzAEXsqsrQhuaxk 2Zam1S9KrNkgTZC5ZUIRVlrhDkL3cBlm1TvNoPhZrunG55OdpnPpJZOZkJt1MwKrUHbA /AJqJAohH8Kh/F/cwyOc5vqtw9CwR7rJoUkCb5tcXp1gNpdOqPPf/2LNKFG7hb1it1Ky Tpsv7pCUN/XOqV5aIA/AUEEaT5t13R0Y9hs1SV7SbwpGHT1klVUv11G5G4+FJok7crNB qMhL9+lFLy1OBZ18V3aUrQf+LOEZZDkCNqtPZ9xNB/ObxSdDmvkdax+OouAu1LQ0Jhob wCpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=nJVlBzJscMcA2voHMWrDxawYWbtejRaZS3mMueBEAW8=; fh=CcXatqKiyzW4Kjp4x/ysI7I2+7Tuo+V1v0lUrkVZcPQ=; b=yzSFUwteQg086ZdOYAkRYuzxpFmGxMAAFVvZ1jmrH2K5PRH2QtpHEILGHyy8aF0Iy5 x9aWptbDxPSEsjTRHkb4TG/GrYrVPY6iNkk8grB7wqnyUPzn42vBRgxzetM9eB6vGEyP /ZSQ73C4gtY7J4RNZhiLaYODv2BhHPUp1rFuYR9ZEney39FlnaqYAegu1UgFKcEo5t38 SWtDx2FGHWdJte0eqT6e9MwSjQl2sfV02FG/CknEaNeqCEQ0gViHGcVrdTGeIlNwZX+z d+cSai8tfypozEvvAN5//bxF5Gi7yiW20vNjiMJo/cLU8vRQgJIl7/2I2fiiRRnU4WP/ 1rRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="ixjzN/J7"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-1523-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1523-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCWIk3oPWTkoaspG4L1Y0qC8nUnDemPoKHk/SPDCmEDeokbrOxn39QR9ELNeritqrEBj60jCFxe19Hnm5jmQ7Iqf1wX4ScQW0JQWPK5lhQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a19-20020ac85b93000000b0042aaed200cesi7355802qta.144.2024.02.01.07.46.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 07:46:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-1523-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="ixjzN/J7"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-bluetooth+bounces-1523-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-1523-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E01081C24497 for ; Thu, 1 Feb 2024 15:46:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D5836217F; Thu, 1 Feb 2024 15:46:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ixjzN/J7" X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6A7762159 for ; Thu, 1 Feb 2024 15:46:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706802386; cv=none; b=iAL6GOdkGc+c+Verj2/Zplwy2WdR7tQVEBtOmAyFCUz74JR9JWFSf2u90NswbNIlrn3OdloM3U0Cy5GKG3oG4sPsxdcP08yuv9Y0nJSnGwRmChkXGN4vfNi4Smk9jbF2AqTKhIwliukMrofuqdblhi6rd9iP4zCO5gwd2nzMDWE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706802386; c=relaxed/simple; bh=qO84xf0TAnzBPeZnOdovQFxAhlvEhkH9b9OtYABuFAc=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Xf9QAkCZKJnZZcn8TnklhUg9EEdLzzU3AbEuTlHLoiy5IXWI17Rd97yoyexKJFHFX9i3F4F38YwY9TMwzli1X69LqEgvm8kHY/8/+C8ym1b1rsjHb5bEnHzA84tkOhh9kd/SocKDEhMZpZzGh9fTy7qnJfIduAY+Icml3UOJaPw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ixjzN/J7; arc=none smtp.client-ip=209.85.208.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2cf1288097aso14682051fa.0 for ; Thu, 01 Feb 2024 07:46:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706802383; x=1707407183; darn=vger.kernel.org; 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=nJVlBzJscMcA2voHMWrDxawYWbtejRaZS3mMueBEAW8=; b=ixjzN/J7sOnmSX9PeZl1U17HsGeuDgns+4CduKG4BBZouJC9vcV2sqdhrTz6qyhAGn +lmgUSXbjM6a5WPxugw+j4dR6JOlmbow6eeapKaaxSGtxoXKCO7ZeZR+qFEp/avNG3ff el3c8+poxFTrte15j/gnkHKrODzTSgL6GNsHsv96dbOKzZpoCYGqxoA5LwpJjruyCJrI d2AOUTOQCZ1J+KXuZ1m9b/3LnJx90UuxiUxnutnOKoRhjBkueECQi67dhY+j0MEfdbJ8 bWuwcQ+L1difAYzER1zW7x2KraOTgZeXXRrCbYLJYIlpIH62V+EpW2dr1Uuq8QSUrr2n Z+tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706802383; x=1707407183; 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=nJVlBzJscMcA2voHMWrDxawYWbtejRaZS3mMueBEAW8=; b=wV8ls+uW4kEUg8eBdhmC+LNui8urgC/VwforQawrXj64Zcwnl3TqHkpcAkRjuV08Te Bvs8uP5Z6X9OXCTrxrt0MXZifTXK6ZSiTnkDO5jGYQ44JDWncWGN4G6ydavUbFhU8c24 CZhqo5PrBSZ81/LFbtqLSZo2sva1jlnuag5Bo+Jeq5ayG2GytvfW2sqtmFB5OoA0htXF uvadmnhK24u4nMkvoWAp8O/DlsKFTrFOVTh3/a/avPMAxXZOMJG7pEkYRTTaJTCkNL/W 9cBg9vx5YyoeE66sJ3alg78g5RkvMH+McHdA8o2t2boU1Pp4Hu9BdeBDCL+QQgYcRskg v+Hw== X-Gm-Message-State: AOJu0Yy0CYxglIE90kUUlNHpJ6owlJh8TqTOpEtEOD8bIfrAejliYwmY rKgjMgswB5iaUOvL6fjsIx0K9kK6CE89+wV3o5STb4SLAOMc0WeAQVmuQQbGi1FREfBGRPbqprl YbIkOfrH9G/On0rZoD2SSiF8cmEE= X-Received: by 2002:a2e:a26f:0:b0:2cf:1174:44a with SMTP id k15-20020a2ea26f000000b002cf1174044amr3565314ljm.13.1706802382477; Thu, 01 Feb 2024 07:46:22 -0800 (PST) Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240201152835.196617-1-silviu.barbulescu@nxp.com> In-Reply-To: <20240201152835.196617-1-silviu.barbulescu@nxp.com> From: Luiz Augusto von Dentz Date: Thu, 1 Feb 2024 10:46:09 -0500 Message-ID: Subject: Re: [PATCH BlueZ 0/7] Add support for multiple BISes on the bcast source To: Silviu Florian Barbulescu Cc: linux-bluetooth@vger.kernel.org, mihai-octavian.urzica@nxp.com, vlad.pruteanu@nxp.com, andrei.istodorescu@nxp.com, iulia.tanasescu@nxp.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Silviu, On Thu, Feb 1, 2024 at 10:28=E2=80=AFAM Silviu Florian Barbulescu wrote: > > This patch adds support for multiple BISes in broadcast sources. > > Example commands: > Create a local endpoint and an endpoint for BIS1: > endpoint.register 00001852-0000-1000-8000-00805f9b34fb 0x06 > [/local/endpoint/ep0] Auto Accept (yes/no): y > [/local/endpoint/ep0] Max Transports (auto/value): a > [/local/endpoint/ep0] Locations: 0x03 > [/local/endpoint/ep0] Supported Context (value): 0 > > Configure BIS1, create BIS1 transport and endpoint for BIS2: > endpoint.config /org/bluez/hci0/pac_bcast0 /local/endpoint/ep0 48_4_1 > [/local/endpoint/ep0] BIG (auto/value): 0x01 > [/local/endpoint/ep0] Enter channel location (value/no): 0x01 > [/local/endpoint/ep0] Enter Metadata (value/no): n > > Configure BIS2, create BIS2 transport and endpoint for BIS3: > endpoint.config /org/bluez/hci0/pac_bcast1 /local/endpoint/ep0 48_4_1 > [/local/endpoint/ep0] BIG (auto/value): 0x01 > [/local/endpoint/ep0] Enter channel location (value/no): 0x02 > [/local/endpoint/ep0] Enter Metadata (value/no): n > > For multiple BISes acquire must be called on all transports > before the BIG is created: > transport.acquire /org/bluez/hci0/pac_bcast0/fd0 > transport.acquire /org/bluez/hci0/pac_bcast1/fd1 > ..... > transport.release /org/bluez/hci0/pac_bcast0/fd0 > transport.release /org/bluez/hci0/pac_bcast1/fd1 > > Silviu Florian Barbulescu (7): > bap: Remove set lpac user data at bcast ep register > shared/bap: Add support to create multiple streams for the same pac > bap: Create a new endpoint to be available for the next BIS > configuration > bap: Split bap_state and bap_connecting in two functions > shared/bap: Check the state of all the streams with the same BIG ID > bap: Set the generated BASE on all setups from the same BIG > shared/bap: Generate single BIS BASE for a configuration with BIG ID > 0xFF > > profiles/audio/bap.c | 239 ++++++++++++++++++++++++++++++++----------- > src/shared/bap.c | 67 ++++++++++-- > src/shared/bap.h | 2 + > 3 files changed, 238 insertions(+), 70 deletions(-) > > > base-commit: a692cc44dc8735b9303f8893f784306b4d2654fe > -- > 2.39.2 Not sure how you guys are testing these changes but currently I can't get Broadcast Sink to work, and it crashes on the the cleanup: https://gist.github.com/Vudentz/00a62914b0dc08261065cea65c0e04f0 So until we fix that I'm actually not merging new code on top, I'm also considering moving the driver out of bap plugin and perhaps have it as a standalone bcaa plugin since there have been quite a few occasions where broadcast code has caused regressions on unicast. Anyway Ive been working on the following fixes and I do appreciate some feedback: https://patchwork.kernel.org/project/bluetooth/patch/20240131173002.834951-= 1-luiz.dentz@gmail.com/ https://patchwork.kernel.org/project/bluetooth/list/?series=3D822175 --=20 Luiz Augusto von Dentz