Skip to content

Commit

Permalink
nimble/audio: Add PACS to Broadcast Sink
Browse files Browse the repository at this point in the history
This enables PACS when Broadcast Sink role is enabled. By default the
16_2 and 24_2 mandatory settings are supported as per spec.
  • Loading branch information
MariuszSkamra committed May 24, 2024
1 parent 3ae79ef commit 218617d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nimble/host/audio/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ pkg.deps:
- nimble
- nimble/host

pkg.deps.BLE_AUDIO_BROADCAST_SINK:
- nimble/host/audio/services/pacs/lc3

pkg.deps.BLE_AUDIO_SCAN_DELEGATOR:
- nimble/host/audio/services/bass

Expand Down
9 changes: 9 additions & 0 deletions nimble/host/audio/services/pacs/lc3/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,12 @@ syscfg.defs:
Audio Locations supported by sink codec. Value is an any combination of values defined
in Bluetooth Assigned Numbers 6.12.3. Default: Media
value: 0x0004

syscfg.vals.BLE_AUDIO_BROADCAST_SINK:
BLE_SVC_AUDIO_PACS_LC3_SNK_SAMPLING_FREQUENCIES: >
BLE_AUDIO_CODEC_SUPPORTED_SAMPLING_RATE_16000_HZ || BLE_AUDIO_CODEC_SUPPORTED_SAMPLING_RATE_24000_HZ
BLE_SVC_AUDIO_PACS_LC3_SNK_FRAME_DURATIONS: BLE_AUDIO_CODEC_SUPPORTED_FRAME_DURATION_10_MS
BLE_SVC_AUDIO_PACS_LC3_SNK_AUDIO_CHANNEL_COUNTS: BLE_AUDIO_CODEC_SUPPORTED_CHANNEL_COUNT_1
BLE_SVC_AUDIO_PACS_LC3_SNK_MIN_OCTETS_PER_CODEC_FRAME: 40
BLE_SVC_AUDIO_PACS_LC3_SNK_MAX_OCTETS_PER_CODEC_FRAME: 60
BLE_SVC_AUDIO_PACS_LC3_SNK_MAX_CODEC_FRAMES_PER_SDU: 1
1 change: 1 addition & 0 deletions nimble/host/audio/syscfg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,4 @@ syscfg.logs.BLE_AUDIO_SCAN_DELEGATOR:
syscfg.vals.BLE_AUDIO_BROADCAST_SINK:
BLE_AUDIO_SCAN_DELEGATOR: 1
BLE_AUDIO_SCAN_DELEGATOR_STANDALONE: 0
BLE_AUDIO_MAX_CODEC_RECORDS: 2

0 comments on commit 218617d

Please sign in to comment.