Skip to content

Conversation

Thalley
Copy link
Contributor

@Thalley Thalley commented May 14, 2025

Changed the generic global flag_audio_received flag to exist for each stream. This will help verify that each stream, if configured for RX, receives the expected data.

@Thalley Thalley force-pushed the bap_bsim_rx_each_stream branch 2 times, most recently from ad516c3 to e01eaf4 Compare May 14, 2025 22:27
@Thalley Thalley marked this pull request as ready for review May 14, 2025 23:03
@github-actions github-actions bot added area: Bluetooth Audio platform: nRF BSIM Nordic Semiconductors, nRF BabbleSim labels May 14, 2025
@aescolar aescolar assigned Thalley and unassigned aescolar May 15, 2025
@Thalley Thalley force-pushed the bap_bsim_rx_each_stream branch from e01eaf4 to 05c84de Compare May 19, 2025 08:58
@Thalley Thalley force-pushed the bap_bsim_rx_each_stream branch from 05c84de to d1a2d50 Compare May 27, 2025 13:23
@Thalley Thalley force-pushed the bap_bsim_rx_each_stream branch from d1a2d50 to 9d06da1 Compare June 16, 2025 11:39
@Thalley Thalley force-pushed the bap_bsim_rx_each_stream branch from 9d06da1 to 7a5dd2f Compare July 1, 2025 12:21
@Thalley Thalley force-pushed the bap_bsim_rx_each_stream branch from 7a5dd2f to 48b86e5 Compare July 29, 2025 09:16
larsgk
larsgk previously approved these changes Aug 14, 2025
@Thalley Thalley force-pushed the bap_bsim_rx_each_stream branch from 48b86e5 to d01e717 Compare August 15, 2025 08:30
@Thalley Thalley force-pushed the bap_bsim_rx_each_stream branch 2 times, most recently from 4df0389 to d533d2b Compare August 17, 2025 10:20
@Thalley Thalley requested review from Copilot and larsgk and removed request for pin-zephyr August 17, 2025 10:21
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the audio test framework to improve stream validation by changing from a global audio received flag to per-stream flags. This enables verification that each individual stream receives expected data rather than just confirming that any stream has received data.

  • Move flag_audio_received from global scope to per-stream within audio_test_stream struct
  • Update all test files to use per-stream flags and implement wait_for_data() functions that check each streaming stream
  • Extract common streaming check logic into shared utility functions in bap_common.c

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
common.h/common.c Remove global flag_audio_received and add per-stream flag to audio_test_stream struct
bap_common.h/bap_common.c Add utility functions for checking if streams are in streaming state
bap_stream_rx.c Update receive callback to set per-stream flag instead of global flag
bap_stream_tx.c Replace local streaming check with shared utility function
Multiple test files Replace global flag usage with per-stream flags and add wait_for_data() functions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Thalley Thalley force-pushed the bap_bsim_rx_each_stream branch from d533d2b to f144ecf Compare August 17, 2025 10:36
larsgk
larsgk previously approved these changes Sep 1, 2025
@Thalley Thalley force-pushed the bap_bsim_rx_each_stream branch 2 times, most recently from 0d890c1 to 7b94108 Compare September 8, 2025 08:23
@Thalley
Copy link
Contributor Author

Thalley commented Sep 8, 2025

Fixed build issue after #85642 was merged

@Thalley Thalley requested a review from larsgk September 8, 2025 08:23
@Thalley Thalley force-pushed the bap_bsim_rx_each_stream branch from 7b94108 to 4f8dc06 Compare September 9, 2025 10:39
@Thalley Thalley force-pushed the bap_bsim_rx_each_stream branch from 4f8dc06 to 60423ea Compare September 17, 2025 09:22
@Thalley Thalley force-pushed the bap_bsim_rx_each_stream branch from 60423ea to 98bb021 Compare October 7, 2025 08:47
@zephyrbot zephyrbot added the area: Tests Issues related to a particular existing or missing test label Oct 7, 2025
@zephyrbot zephyrbot requested a review from nashif October 7, 2025 08:48
@Thalley
Copy link
Contributor Author

Thalley commented Oct 7, 2025

Test fails due to known assertion (#82399)

Changed the generic global flag_audio_received flag to
exist for each stream. This will help verify that each
stream, if configured for RX, receives the expected
data.

One test started failing due to this, so that was disabled
until a fix is in place in the controller.

Signed-off-by: Emil Gydesen <[email protected]>
@Thalley Thalley force-pushed the bap_bsim_rx_each_stream branch from 98bb021 to 6f8417b Compare October 13, 2025 12:07
Copy link

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: Tests Issues related to a particular existing or missing test platform: nRF BSIM Nordic Semiconductors, nRF BabbleSim

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

4 participants