mbox series

[BlueZ,v3,0/7] Add support for multiple BISes on the bcast source

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

Message

Silviu Florian Barbulescu Feb. 15, 2024, 9:23 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 (7):
  bap: Remove set lpac user data at bcast ep register
  bap: Split bap_state and bap_connecting in two functions
  shared/bap: Generate single BIS BASE for a config with BIG ID 0xFF
  shared/bap: Add state in the stream struct for broadcast source
  shared/bap: Check the state of all the streams with the same BIG ID
  shared/bap: Add support to create a stream for broadcast source
  bap: Set the generated BASE on all setups from the same BIG

 profiles/audio/bap.c | 307 ++++++++++++++++++++++++++++++++++---------
 src/shared/bap.c     |  87 +++++++++---
 src/shared/bap.h     |   2 +
 3 files changed, 314 insertions(+), 82 deletions(-)


base-commit: ee880bee85864b0e691370197c9de8d2f7ba0af2

Comments

patchwork-bot+bluetooth@kernel.org Feb. 21, 2024, 7:40 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 Thu, 15 Feb 2024 23:23:49 +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,v3,1/7] bap: Remove set lpac user data at bcast ep register
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=c5f1c5ba0e8d
  - [BlueZ,v3,2/7] bap: Split bap_state and bap_connecting in two functions
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=5629f4784a4d
  - [BlueZ,v3,3/7] shared/bap: Generate one BIS BASE for
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=a16c2ccf9c25
  - [BlueZ,v3,4/7] shared/bap: Add state in stream struct for bcast source
    (no matching commit)
  - [BlueZ,v3,5/7] shared/bap: Check state of all streams with same BIG ID
    (no matching commit)
  - [BlueZ,v3,6/7] shared/bap: Add support to create stream for bcast source
    (no matching commit)
  - [BlueZ,v3,7/7] bap: Set generated BASE on all setups from the same BIG
    (no matching commit)

You are awesome, thank you!