Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth: Audio: redone the base subgroup struct. #68676

Merged

Conversation

pin-zephyr
Copy link
Collaborator

@pin-zephyr pin-zephyr commented Feb 7, 2024

The struct bt_bap_broadcast_assistant_add_src_param and struct bt_bap_broadcast_assistant_mod_src_param use the struct bt_bap_scan_delegator_subgroup to provide subgroup information to the scan delegator.

The issue is that the struct bt_bap_scan_delegator_subgroup depend on a Kconfig value that only exists for the Scan Delegator (guarded by CONFIG_BT_BAP_SCAN_DELEGATOR).

Therefore, make a general struct bt_bap_base_subgroup which can be used by scan delegator and broadcast assistant.

Fixes #68338

include/zephyr/bluetooth/audio/bap.h Outdated Show resolved Hide resolved
include/zephyr/bluetooth/audio/bap.h Outdated Show resolved Hide resolved
include/zephyr/bluetooth/audio/bap.h Outdated Show resolved Hide resolved
@hermabe hermabe removed their request for review February 9, 2024 06:46
include/zephyr/bluetooth/audio/bap.h Show resolved Hide resolved
include/zephyr/bluetooth/audio/bap.h Show resolved Hide resolved
include/zephyr/bluetooth/audio/bap.h Show resolved Hide resolved
include/zephyr/bluetooth/audio/bap.h Outdated Show resolved Hide resolved
include/zephyr/bluetooth/audio/bap.h Outdated Show resolved Hide resolved
samples/bluetooth/broadcast_audio_sink/Kconfig Outdated Show resolved Hide resolved
samples/bluetooth/broadcast_audio_sink/Kconfig Outdated Show resolved Hide resolved
samples/bluetooth/broadcast_audio_source/Kconfig Outdated Show resolved Hide resolved
include/zephyr/bluetooth/audio/bap.h Outdated Show resolved Hide resolved
subsys/bluetooth/audio/Kconfig.bap Outdated Show resolved Hide resolved
subsys/bluetooth/audio/Kconfig.bap Outdated Show resolved Hide resolved
subsys/bluetooth/audio/Kconfig.bap Outdated Show resolved Hide resolved
subsys/bluetooth/audio/Kconfig.bap Outdated Show resolved Hide resolved
subsys/bluetooth/audio/Kconfig.bap Outdated Show resolved Hide resolved
subsys/bluetooth/audio/Kconfig.bap Outdated Show resolved Hide resolved
Copy link
Collaborator

@Thalley Thalley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I think we can remove some unnecessary guards

include/zephyr/bluetooth/audio/bap.h Outdated Show resolved Hide resolved
The Broadcast Assistant API should be fully independent of the scan
delegator. Therefore the new struct bt_bap_bass_subgroup has been
defined to avoid a dependency.

Fixes: zephyrproject-rtos#68338

Signed-off-by: Ping Wang <[email protected]>
@henrikbrixandersen
Copy link
Member

@Thalley Is this bug fix targeting v3.6.0? If so, please add it to the milestone.

@Thalley Thalley added this to the v3.6.0 milestone Feb 14, 2024
@Thalley Thalley added the bug The issue is a bug, or the PR is fixing a bug label Feb 14, 2024
@henrikbrixandersen henrikbrixandersen merged commit 5ccd75b into zephyrproject-rtos:main Feb 14, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth Audio area: Bluetooth area: Samples Samples bug The issue is a bug, or the PR is fixing a bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

LE Audio: Broadcast Assistant API should not use struct bt_bap_scan_delegator_subgroup
5 participants