Lines Matching full:stream

44 		.codec_cap = _capability, .stream = NULL,                                          \
326 /** @brief Stream End Point */
332 /** AVDTP Stream End Point Identifier */
334 /* Internally used stream object pointer */
335 struct bt_a2dp_stream *stream; member
343 /** Stream End Point Information */
357 * @brief Called when a stream endpoint is discovered.
360 * object. It'll be called on each valid stream endpoint discovery completion.
392 /** The max count of seps (stream endpoint) that can be got in this call route */
426 * @param[out] stream Pointer to stream that will be configured for the endpoint.
433 struct bt_a2dp_codec_cfg *codec_cfg, struct bt_a2dp_stream **stream,
441 * @param[in] stream Pointer to stream object.
447 int (*reconfig_req)(struct bt_a2dp_stream *stream, struct bt_a2dp_codec_cfg *codec_cfg,
453 * @param[in] stream Pointer to stream object.
457 void (*config_rsp)(struct bt_a2dp_stream *stream, uint8_t rsp_err_code);
459 * @brief Stream establishment request callback
461 * The callback is called whenever an stream is requested to be
462 * established (open cmd and create the stream l2cap channel).
464 * @param[in] stream Pointer to stream object.
470 int (*establish_req)(struct bt_a2dp_stream *stream, uint8_t *rsp_err_code);
474 * (open cmd and create the stream l2cap channel).
476 * @param[in] stream Pointer to stream object.
480 void (*establish_rsp)(struct bt_a2dp_stream *stream, uint8_t rsp_err_code);
482 * @brief Stream release request callback
484 * The callback is called whenever an stream is requested to be
487 * @param[in] stream Pointer to stream object.
493 int (*release_req)(struct bt_a2dp_stream *stream, uint8_t *rsp_err_code);
499 * @param[in] stream Pointer to stream object.
503 void (*release_rsp)(struct bt_a2dp_stream *stream, uint8_t rsp_err_code);
505 * @brief Stream start request callback
507 * The callback is called whenever an stream is requested to be
510 * @param[in] stream Pointer to stream object.
516 int (*start_req)(struct bt_a2dp_stream *stream, uint8_t *rsp_err_code);
521 * @param[in] stream Pointer to stream object.
525 void (*start_rsp)(struct bt_a2dp_stream *stream, uint8_t rsp_err_code);
527 * @brief Stream suspend request callback
529 * The callback is called whenever an stream is requested to be
532 * @param[in] stream Pointer to stream object.
538 int (*suspend_req)(struct bt_a2dp_stream *stream, uint8_t *rsp_err_code);
543 * @param[in] stream Pointer to stream object.
547 void (*suspend_rsp)(struct bt_a2dp_stream *stream, uint8_t rsp_err_code);
549 * @brief Stream abort request callback
551 * The callback is called whenever an stream is requested to be
554 * @param[in] stream Pointer to stream object.
560 int (*abort_req)(struct bt_a2dp_stream *stream, uint8_t *rsp_err_code);
565 * @param[in] stream Pointer to stream object.
569 void (*abort_rsp)(struct bt_a2dp_stream *stream, uint8_t rsp_err_code);
603 * @param sep_type Stream endpoint type, #bt_avdtp_sep_type.
628 /** @brief A2DP Stream */
634 /** remote endpoint's Stream End Point ID */
636 /** Audio stream operations */
640 /** the stream current configuration */
644 /** @brief The stream endpoint related operations */
647 * @brief Stream configured callback
649 * The callback is called whenever an Audio Stream has been configured or reconfigured.
651 * @param stream Stream object that has been configured.
653 void (*configured)(struct bt_a2dp_stream *stream);
655 * @brief Stream establishment callback
657 * The callback is called whenever an Audio Stream has been established.
659 * @param stream Stream object that has been established.
661 void (*established)(struct bt_a2dp_stream *stream);
663 * @brief Stream release callback
665 * The callback is called whenever an Audio Stream has been released.
666 * After released, the stream becomes invalid.
668 * @param stream Stream object that has been released.
670 void (*released)(struct bt_a2dp_stream *stream);
672 * @brief Stream start callback
674 * The callback is called whenever an Audio Stream has been started.
676 * @param stream Stream object that has been started.
678 void (*started)(struct bt_a2dp_stream *stream);
680 * @brief Stream suspend callback
682 * The callback is called whenever an Audio Stream has been suspended.
684 * @param stream Stream object that has been suspended.
686 void (*suspended)(struct bt_a2dp_stream *stream);
688 * @brief Stream abort callback
690 * The callback is called whenever an Audio Stream has been aborted.
691 * After aborted, the stream becomes invalid.
693 * @param stream Stream object that has been aborted.
695 void (*aborted)(struct bt_a2dp_stream *stream);
703 void (*recv)(struct bt_a2dp_stream *stream, struct net_buf *buf, uint16_t seq_num,
708 * @brief Stream audio HCI sent callback
717 * @param stream Stream object.
719 void (*sent)(struct bt_a2dp_stream *stream);
724 * @brief Register Audio callbacks for a stream.
726 * Register Audio callbacks for a stream.
728 * @param stream Stream object.
729 * @param ops Stream operations structure.
731 void bt_a2dp_stream_cb_register(struct bt_a2dp_stream *stream, struct bt_a2dp_stream_ops *ops);
741 * @param stream Stream object.
748 int bt_a2dp_stream_config(struct bt_a2dp *a2dp, struct bt_a2dp_stream *stream,
756 * @param stream The stream object.
760 int bt_a2dp_stream_establish(struct bt_a2dp_stream *stream);
765 * After release, the stream becomes invalid.
767 * @param stream The stream object.
771 int bt_a2dp_stream_release(struct bt_a2dp_stream *stream);
777 * @param stream The stream object.
781 int bt_a2dp_stream_start(struct bt_a2dp_stream *stream);
787 * @param stream The stream object.
791 int bt_a2dp_stream_suspend(struct bt_a2dp_stream *stream);
797 * @param stream The stream object.
798 * @param config The config to configure the stream.
802 int bt_a2dp_stream_reconfig(struct bt_a2dp_stream *stream, struct bt_a2dp_codec_cfg *config);
807 * After abort, the stream becomes invalid.
809 * @param stream The stream object.
813 int bt_a2dp_stream_abort(struct bt_a2dp_stream *stream);
815 /** @brief get the stream l2cap mtu
817 * @param stream The stream object.
821 uint32_t bt_a2dp_get_mtu(struct bt_a2dp_stream *stream);
828 * @param stream The stream object.
835 int bt_a2dp_stream_send(struct bt_a2dp_stream *stream, struct net_buf *buf, uint16_t seq_num,