mbox series

[BlueZ,v4,0/5] Add support for multiple BISes on the bcast source

Message ID 20240223164813.66484-1-silviu.barbulescu@nxp.com
Headers show
Series Add support for multiple BISes on the bcast source | expand

Message

Silviu Florian Barbulescu Feb. 23, 2024, 4:48 p.m. UTC
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_bcast0 /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_bcast0/fd1
.....
transport.release /org/bluez/hci0/pac_bcast0/fd0
transport.release /org/bluez/hci0/pac_bcast0/fd1

Silviu Florian Barbulescu (5):
  shared/bap: Fix endpoint direction for the broadcast source
  shared/bap: Add state in the stream struct for broadcast source
  shared/bap: Add support to create a stream for broadcast source
  bap: Add a callback to create a new stream
  bap: Set the generated BASE on all setups from the same BIG

 profiles/audio/bap.c | 223 +++++++++++++++++++++++++++++++++++++++----
 src/shared/bap.c     | 133 ++++++++++++++++++++++----
 src/shared/bap.h     |   6 ++
 3 files changed, 327 insertions(+), 35 deletions(-)


base-commit: 8f262a27bdf233f142a7bb22bf3f8c6db53debee

Comments

patchwork-bot+bluetooth@kernel.org Feb. 27, 2024, 2:30 p.m. UTC | #1
Hello:

This series was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Fri, 23 Feb 2024 18:48:08 +0200 you 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
> 
> [...]

Here is the summary with links:
  - [BlueZ,v4,1/5] shared/bap: Fix endpoint dir for the bcast source
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=8552e06b6617
  - [BlueZ,v4,2/5] shared/bap: Add state in stream struct for bcast source
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=b4f9a9fd7ed2
  - [BlueZ,v4,3/5] shared/bap: Add support to create a stream for bcast src
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=6ea7f481094c
  - [BlueZ,v4,4/5] bap: Add a callback to create a new stream
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=dd57562760e4
  - [BlueZ,v4,5/5] bap: Set generated BASE on all setups from the same BIG
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=92f3ed187904

You are awesome, thank you!