-
Notifications
You must be signed in to change notification settings - Fork 8.2k
LE Audio: Broadcast source subgroup support #49946
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
LE Audio: Broadcast source subgroup support #49946
Conversation
da6a9b4 to
32f3383
Compare
32f3383 to
cb040be
Compare
85962a8 to
207f7fd
Compare
207f7fd to
3fa06a5
Compare
3fa06a5 to
babb733
Compare
babb733 to
b3174fe
Compare
b3174fe to
6d1cc9c
Compare
|
Rebased to solve merge conflicts |
e7f8652 to
17ea5f2
Compare
|
Rebased to solve merge conflicts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SInce this is an internal function, shouldn't the bt_audio prefix be dropped?
If so, there are a few more
17ea5f2 to
058fb17
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not entirely clear to me, but is it here it would be possible to set e.g. language metadata as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The metadata parameters are supplied in the codec parameter on the next line, along with the codec configuration parameters
|
LGTM. Maybe it would be nice to have some different metadata on the subgroups (e.g. lang = english/spanish as the spec example) + a broadcast_audio_sink sample to handle it (e.g. select the one with spanish). Can be another PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is returning an uninitialized err
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
058fb17 to
9becb58
Compare
Updates the broadcast source API to create subgroups and to set BIS specific codec configuration Signed-off-by: Emil Gydesen <[email protected]>
9becb58 to
c9153ee
Compare
larsgk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. In a separate PR, we should consider having some info in the docs besides the sample code on how to do broadcast sources/sinks to avoid confusion when folks want to do real world implementations.
| struct bt_audio_broadcast_source_subgroup_param | ||
| subgroup_param[CONFIG_BT_AUDIO_BROADCAST_SRC_SUBGROUP_COUNT]; | ||
| struct bt_audio_broadcast_source_create_param create_param; | ||
| const size_t streams_per_subgroup = ARRAY_SIZE(stream_params) / ARRAY_SIZE(subgroup_param); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works when the stream count is the same per group. It can stay as is or maybe add a comment or check for clarification for devs picking up the sample.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was added to properly test multiple subsgroups with multiple streams in it.
I think when we work towards #52347 this will be modified again, and this comment will be resolved by that
Updates the BAP broadcast API to support setting multiple subgroups as well as BIS specific codec configuration data.
Depends on #49872
fixes #47243
fixes #47242