Lines Matching refs:cap_stream

470 static bool iso_is_in_state(const struct bt_cap_stream *cap_stream, enum bt_iso_state state)  in iso_is_in_state()  argument
472 const struct bt_bap_stream *bap_stream = &cap_stream->bap_stream; in iso_is_in_state()
477 static void set_cap_stream_in_progress(struct bt_cap_stream *cap_stream, bool value) in set_cap_stream_in_progress() argument
482 if (cap_stream == active_proc->proc_param.initiator[i].stream) { in set_cap_stream_in_progress()
488 __ASSERT(false, "CAP stream %p not in active_proc", cap_stream); in set_cap_stream_in_progress()
498 const struct bt_cap_stream *cap_stream) in get_proc_param_by_cap_stream() argument
501 if (active_proc->proc_param.initiator[i].stream == cap_stream) { in get_proc_param_by_cap_stream()
522 struct bt_cap_stream *cap_stream; in update_proc_done_cnt() local
527 cap_stream = proc_param->stream; in update_proc_done_cnt()
528 bap_stream = &cap_stream->bap_stream; in update_proc_done_cnt()
566 !iso_is_in_state(cap_stream, BT_ISO_STATE_CONNECTED)) { in update_proc_done_cnt()
583 struct bt_cap_stream *cap_stream; in update_proc_done_cnt() local
588 cap_stream = proc_param->stream; in update_proc_done_cnt()
589 bap_stream = &cap_stream->bap_stream; in update_proc_done_cnt()
621 struct bt_cap_stream *cap_stream; in update_proc_done_cnt() local
626 cap_stream = proc_param->stream; in update_proc_done_cnt()
627 bap_stream = &cap_stream->bap_stream; in update_proc_done_cnt()
664 struct bt_cap_stream *cap_stream; in get_next_proc_param() local
674 cap_stream = proc_param->stream; in get_next_proc_param()
675 bap_stream = &cap_stream->bap_stream; in get_next_proc_param()
787 const struct bt_cap_stream *cap_stream = stream_param->stream; in valid_unicast_audio_start_param() local
823 CHECKIF(cap_stream == NULL) { in valid_unicast_audio_start_param()
828 bap_stream = &cap_stream->bap_stream; in valid_unicast_audio_start_param()
847 if (param->stream_params[j].stream == cap_stream) { in valid_unicast_audio_start_param()
852 i, cap_stream); in valid_unicast_audio_start_param()
899 void bt_cap_initiator_cp_cb(struct bt_cap_stream *cap_stream, enum bt_bap_ascs_rsp_code rsp_code, in bt_cap_initiator_cp_cb() argument
902 if (!bt_cap_common_stream_in_active_proc(cap_stream)) { in bt_cap_initiator_cp_cb()
907 LOG_DBG("cap_stream %p", cap_stream); in bt_cap_initiator_cp_cb()
909 set_cap_stream_in_progress(cap_stream, false); in bt_cap_initiator_cp_cb()
921 cap_stream, rsp_code, reason); in bt_cap_initiator_cp_cb()
924 bt_cap_common_abort_proc(cap_stream->bap_stream.conn, -EBADMSG); in bt_cap_initiator_cp_cb()
955 struct bt_cap_stream *cap_stream = stream_param->stream; in cap_initiator_unicast_audio_configure() local
960 bt_cap_stream_ops_register_bap(cap_stream); in cap_initiator_unicast_audio_configure()
965 active_proc->proc_param.initiator[i].stream = cap_stream; in cap_initiator_unicast_audio_configure()
1039 void bt_cap_initiator_codec_configured(struct bt_cap_stream *cap_stream) in bt_cap_initiator_codec_configured() argument
1047 if (!bt_cap_common_stream_in_active_proc(cap_stream)) { in bt_cap_initiator_codec_configured()
1052 LOG_DBG("cap_stream %p", cap_stream); in bt_cap_initiator_codec_configured()
1058 bt_cap_initiator_released(cap_stream); in bt_cap_initiator_codec_configured()
1062 bt_cap_common_abort_proc(cap_stream->bap_stream.conn, -EBADMSG); in bt_cap_initiator_codec_configured()
1066 LOG_DBG("Stream %p configured (%zu/%zu streams done)", cap_stream, in bt_cap_initiator_codec_configured()
1192 void bt_cap_initiator_qos_configured(struct bt_cap_stream *cap_stream) in bt_cap_initiator_qos_configured() argument
1196 if (!bt_cap_common_stream_in_active_proc(cap_stream)) { in bt_cap_initiator_qos_configured()
1201 LOG_DBG("cap_stream %p", cap_stream); in bt_cap_initiator_qos_configured()
1207 bt_cap_common_abort_proc(cap_stream->bap_stream.conn, -EBADMSG); in bt_cap_initiator_qos_configured()
1211 LOG_DBG("Stream %p QoS configured (%zu/%zu streams done)", cap_stream, in bt_cap_initiator_qos_configured()
1282 void bt_cap_initiator_enabled(struct bt_cap_stream *cap_stream) in bt_cap_initiator_enabled() argument
1289 if (!bt_cap_common_stream_in_active_proc(cap_stream)) { in bt_cap_initiator_enabled()
1294 LOG_DBG("cap_stream %p", cap_stream); in bt_cap_initiator_enabled()
1298 bt_cap_common_abort_proc(cap_stream->bap_stream.conn, -EBADMSG); in bt_cap_initiator_enabled()
1302 LOG_DBG("Stream %p enabled (%zu/%zu streams done)", cap_stream, in bt_cap_initiator_enabled()
1371 void bt_cap_initiator_connected(struct bt_cap_stream *cap_stream) in bt_cap_initiator_connected() argument
1378 if (!bt_cap_common_stream_in_active_proc(cap_stream)) { in bt_cap_initiator_connected()
1383 LOG_DBG("cap_stream %p", cap_stream); in bt_cap_initiator_connected()
1385 set_cap_stream_in_progress(cap_stream, false); in bt_cap_initiator_connected()
1389 bt_cap_common_abort_proc(cap_stream->bap_stream.conn, -EBADMSG); in bt_cap_initiator_connected()
1391 proc_param = get_proc_param_by_cap_stream(active_proc, cap_stream); in bt_cap_initiator_connected()
1400 LOG_DBG("Stream %p connected (%zu/%zu streams done)", cap_stream, in bt_cap_initiator_connected()
1471 void bt_cap_initiator_started(struct bt_cap_stream *cap_stream) in bt_cap_initiator_started() argument
1475 LOG_DBG("cap_stream %p", cap_stream); in bt_cap_initiator_started()
1477 if (!bt_cap_common_stream_in_active_proc(cap_stream)) { in bt_cap_initiator_started()
1490 bt_cap_common_abort_proc(cap_stream->bap_stream.conn, -EBADMSG); in bt_cap_initiator_started()
1494 LOG_DBG("Stream %p started (%zu/%zu streams done)", cap_stream, in bt_cap_initiator_started()
1572 const struct bt_cap_stream *cap_stream = stream_param->stream; in valid_unicast_audio_update_param() local
1576 CHECKIF(cap_stream == NULL) { in valid_unicast_audio_update_param()
1581 bap_stream = &cap_stream->bap_stream; in valid_unicast_audio_update_param()
1620 if (param->stream_params[j].stream == cap_stream) { in valid_unicast_audio_update_param()
1624 j, param->stream_params[j].stream, i, cap_stream); in valid_unicast_audio_update_param()
1655 struct bt_cap_stream *cap_stream = stream_param->stream; in bt_cap_initiator_unicast_audio_update() local
1658 bt_cap_stream_ops_register_bap(cap_stream); in bt_cap_initiator_unicast_audio_update()
1660 active_proc->proc_param.initiator[i].stream = cap_stream; in bt_cap_initiator_unicast_audio_update()
1702 void bt_cap_initiator_metadata_updated(struct bt_cap_stream *cap_stream) in bt_cap_initiator_metadata_updated() argument
1706 if (!bt_cap_common_stream_in_active_proc(cap_stream)) { in bt_cap_initiator_metadata_updated()
1713 bt_cap_common_abort_proc(cap_stream->bap_stream.conn, -EBADMSG); in bt_cap_initiator_metadata_updated()
1717 LOG_DBG("Stream %p QoS metadata updated (%zu/%zu streams done)", cap_stream, in bt_cap_initiator_metadata_updated()
1838 const struct bt_cap_stream *cap_stream = param->streams[i]; in valid_unicast_audio_stop_param() local
1842 CHECKIF(cap_stream == NULL) { in valid_unicast_audio_stop_param()
1847 bap_stream = &cap_stream->bap_stream; in valid_unicast_audio_stop_param()
1884 if (param->streams[j] == cap_stream) { in valid_unicast_audio_stop_param()
1888 j, param->streams[j], i, cap_stream); in valid_unicast_audio_stop_param()
1916 struct bt_cap_stream *cap_stream = param->streams[i]; in bt_cap_initiator_unicast_audio_stop() local
1917 struct bt_bap_stream *bap_stream = &cap_stream->bap_stream; in bt_cap_initiator_unicast_audio_stop()
1920 bt_cap_stream_ops_register_bap(cap_stream); in bt_cap_initiator_unicast_audio_stop()
1922 active_proc->proc_param.initiator[i].stream = cap_stream; in bt_cap_initiator_unicast_audio_stop()
2013 void bt_cap_initiator_disabled(struct bt_cap_stream *cap_stream) in bt_cap_initiator_disabled() argument
2017 if (!bt_cap_common_stream_in_active_proc(cap_stream)) { in bt_cap_initiator_disabled()
2024 bt_cap_common_abort_proc(cap_stream->bap_stream.conn, -EBADMSG); in bt_cap_initiator_disabled()
2028 LOG_DBG("Stream %p disabled (%zu/%zu streams done)", cap_stream, in bt_cap_initiator_disabled()
2095 void bt_cap_initiator_stopped(struct bt_cap_stream *cap_stream) in bt_cap_initiator_stopped() argument
2099 if (!bt_cap_common_stream_in_active_proc(cap_stream)) { in bt_cap_initiator_stopped()
2106 bt_cap_common_abort_proc(cap_stream->bap_stream.conn, -EBADMSG); in bt_cap_initiator_stopped()
2111 LOG_DBG("Stream %p stopped (%zu/%zu streams done)", cap_stream, in bt_cap_initiator_stopped()
2181 void bt_cap_initiator_released(struct bt_cap_stream *cap_stream) in bt_cap_initiator_released() argument
2185 if (!bt_cap_common_stream_in_active_proc(cap_stream)) { in bt_cap_initiator_released()
2192 bt_cap_common_abort_proc(cap_stream->bap_stream.conn, -EBADMSG); in bt_cap_initiator_released()
2196 LOG_DBG("Stream %p released (%zu/%zu streams done)", cap_stream, in bt_cap_initiator_released()