Skip to content

Conversation

@Thalley
Copy link
Contributor

@Thalley Thalley commented Sep 29, 2022

If the CIS was connected before the sink endpoint was in the enabling state, it never autonousmly went into the streaming state.

Signed-off-by: Emil Gydesen [email protected]

@Thalley Thalley added bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug labels Sep 29, 2022
@Thalley Thalley force-pushed the ascs_sink_ep_streaming_state branch 3 times, most recently from 054668f to 024cf6a Compare September 29, 2022 15:21
Comment on lines 902 to 903
Copy link
Contributor

@MariuszSkamra MariuszSkamra Oct 3, 2022

Choose a reason for hiding this comment

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

I'd suggest to assert if stream is non-null as well otherwise
__ASSERT_NO_MSG(ep_state == BT_AUDIO_EP_STATE_IDLE ? stream == NULL : stream != NULL)

@Thalley Thalley force-pushed the ascs_sink_ep_streaming_state branch from 024cf6a to 9e71375 Compare October 4, 2022 07:55
MariuszSkamra
MariuszSkamra previously approved these changes Oct 6, 2022
Copy link
Contributor

Choose a reason for hiding this comment

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

Have a local variable conn for ase->ascs->conn as it is dereferenced multiple times.

Suggested change
bt_gatt_notify(ase->ascs->conn, ep->server.attr,
bt_gatt_notify(conn, ep->server.attr,

If the CIS was connected before the sink endpoint was
in the enabling state, it never autonousmly went into
the streaming state.

Signed-off-by: Emil Gydesen <[email protected]>
@fabiobaltieri fabiobaltieri merged commit 384f346 into zephyrproject-rtos:main Oct 7, 2022
@Thalley Thalley deleted the ascs_sink_ep_streaming_state branch December 1, 2022 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Bluetooth Audio area: Bluetooth bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants