zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.67k stars 6.52k forks source link

LE Audio: BAP broadcast source does not store level 3 information in codec configuration #71125

Closed Thalley closed 4 months ago

Thalley commented 6 months ago

Describe the bug When creating a BAP broadcast source with bt_bap_broadcast_source_create, only the subgroup information is stored in the streams when calling broadcast_source_setup_stream, and the remaining BIS specific information (where location is typically stored), is not stored in the stream->codec_cfg, which it should.

To Reproduce N/A

Expected behavior Expect the stream->codec_cfg to contain the information for the specific stream, which is a union of the Level 2 (subgroup) and Level 3 (BIS) data in the BASE.

Impact Annoyance as it's harder to use the existing codec configuration helper functions.

Logs and console output N/A

Environment (please complete the following information):

Additional context This is a similar issue as was fixed for the broadcast sink in https://github.com/zephyrproject-rtos/zephyr/pull/69342

niym-ot commented 5 months ago

@Thalley Will start looking into the issue