mbox series

[BlueZ,v5,0/6] Update Sink BASE management

Message ID 20240301150029.14386-1-andrei.istodorescu@nxp.com
Headers show
Series Update Sink BASE management | expand

Message

Andrei Istodorescu March 1, 2024, 3 p.m. UTC
This patch refactors the flow for the BAP Broadcast Sink.
After discovering a new Broadcast Source a short PA Sync will be tried.
Depending on the BASE information present in the PA and the local PACS 
capabilities of the Sink, one remote media endpoint will be created for 
each compatible BIS.
Configuring one of these endpoints results in creating a stream and a 
media transport for the corresponding BIS.

Idle timer.
This patch introduces an idle timer, responsible for processing PA Sync
requests. One request is possible at a time. When a broadcast source is
discovered a new request for short PA sync is enqueued. Also, when a
SetConfiguration is requested for an existing BAP broadcast source
endpoint another request is enqueued.
The timer runs periodically and peeks for requests. In case there is no 
request in progress the timer marks the already peeked request to 
pending and starts processing it. When the request is completed, it is 
removed from the timer's queue, so that the next request can be 
processed.

Andrei Istodorescu (6):
  shared/util: Add push LTV utilitary function
  shared/bap: Allow reading endpoint metadata and data
  shared/bap: Update local PACS for broadcast sink also
  shared/bap: Do stream configuration in bap_bcast_config
  shared/bap: Add API to add an observed BIS
  bap: Do PA Sync for each BAP Broadcast source discovered

 profiles/audio/bap.c | 656 +++++++++++++++++++++++++++----------------
 src/shared/bap.c     | 294 ++++++++++++++++++-
 src/shared/bap.h     |  13 +-
 src/shared/util.c    |  11 +-
 src/shared/util.h    |   4 +-
 5 files changed, 715 insertions(+), 263 deletions(-)


base-commit: 44d3f67277f83983e1e9697eda7b9aeb40ca231d

Comments

patchwork-bot+bluetooth@kernel.org March 1, 2024, 8:50 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,  1 Mar 2024 17:00:23 +0200 you wrote:
> This patch refactors the flow for the BAP Broadcast Sink.
> After discovering a new Broadcast Source a short PA Sync will be tried.
> Depending on the BASE information present in the PA and the local PACS
> capabilities of the Sink, one remote media endpoint will be created for
> each compatible BIS.
> Configuring one of these endpoints results in creating a stream and a
> media transport for the corresponding BIS.
> 
> [...]

Here is the summary with links:
  - [BlueZ,v5,1/6] shared/util: Add push LTV utilitary function
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=3f7d81e906e0
  - [BlueZ,v5,2/6] shared/bap: Allow reading endpoint metadata and data
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=7ec9a0f77c6e
  - [BlueZ,v5,3/6] shared/bap: Update local PACS for broadcast sink also
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=98aba4aaef7a
  - [BlueZ,v5,4/6] shared/bap: Do stream configuration in bap_bcast_config
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=2ec513fc37d7
  - [BlueZ,v5,5/6] shared/bap: Add API to add an observed BIS
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=d2fa46e08c3b
  - [BlueZ,v5,6/6] bap: Do PA Sync for each BAP Broadcast source discovered
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=29fe7bd07fbd

You are awesome, thank you!