mbox series

[BlueZ,0/6] Add support for BAP broadcast sink

Message ID 20230712085900.5423-1-claudia.rosu@nxp.com
Headers show
Series Add support for BAP broadcast sink | expand

Message

Claudia Draghicescu July 12, 2023, 8:58 a.m. UTC
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

[bluetooth]# scan on

[bluetooth]# endpoint.config /org/bluez/hci0/pac_bcast0 
/local/endpoint/ep0 16_2_1 <source_address>

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