Skip to content

Commit 2b197af

Browse files
Thalleykartben
authored andcommitted
Bluetooth: BAP: Modify range of BT_BAP_BROADCAST_SNK_SUBGROUP_COUNT
The range of BT_BAP_BROADCAST_SNK_SUBGROUP_COUNT should be relative to BT_BAP_BASS_MAX_SUBGROUPS. The broadcast sink depends on the scan delegator, and thus it does not make sense for the broadcast sink to support more subgroups than what the scan delegator supports. Since this no longer relates to the number of streams, there may be new runtime errors if applications attempt to sync to more subgroups than the number of ISO channels supported. Signed-off-by: Emil Gydesen <[email protected]>
1 parent 01e8d0e commit 2b197af

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

subsys/bluetooth/audio/Kconfig.bap

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,8 @@ if BT_BAP_BROADCAST_SINK
171171

172172
config BT_BAP_BROADCAST_SNK_SUBGROUP_COUNT
173173
int "Basic Audio Profile Broadcast Sink subgroup count"
174-
default 1
175-
range 1 BT_ISO_MAX_CHAN if BT_ISO_MAX_CHAN < 31
176-
range 1 31
174+
default BT_BAP_BASS_MAX_SUBGROUPS
175+
range 1 BT_BAP_BASS_MAX_SUBGROUPS
177176
help
178177
This option sets the maximum number of subgroups per broadcast sink
179178
to support.

tests/bluetooth/tester/overlay-le-audio.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ CONFIG_BT_BAP_BROADCAST_SNK_STREAM_COUNT=2
6161
CONFIG_BT_BAP_BROADCAST_SNK_SUBGROUP_COUNT=2
6262

6363
# BASS
64+
CONFIG_BT_BAP_BASS_MAX_SUBGROUPS=2
6465
CONFIG_BT_PER_ADV_SYNC_TRANSFER_SENDER=y
6566
CONFIG_BT_AUDIO_CODEC_CFG_MAX_METADATA_SIZE=255
6667
CONFIG_BT_PER_ADV_SYNC_TRANSFER_RECEIVER=y

0 commit comments

Comments
 (0)