avdt_ad_write_req() function
* Function avdt_ad_write_req * Description This function is called by a CCB or SCB to send data to a * transport channel. It looks up the LCID of the channel * based on the type, CCB, and SCB (if present). Then it * passes the data to L2CA_DataWrite(). * Returns AVDT_AD_SUCCESS, if data accepted, else FALSE * AVDT_AD_CONGESTED, if data accepted and the channel is congested * AVDT_AD_FAILED, if error
![]()
UINT8 avdt_ad_write_req(UINT8 type, tAVDT_CCB *p_ccb, tAVDT_SCB *p_scb, BT_HDR *p_buf)![]()
extern UINT8 avdt_ad_write_req(UINT8 type, tAVDT_CCB *p_ccb, tAVDT_SCB *p_scb, BT_HDR *p_buf);![]()
if (L2CAP_DW_FAILED != avdt_ad_write_req(AVDT_CHAN_REPORT, p_scb->p_ccb, p_scb, p_pkt)) {![]()
avdt_ad_write_req(AVDT_CHAN_SIG, p_ccb, NULL, p_buf);![]()
avdt_ad_write_req(AVDT_CHAN_MEDIA, p_scb->p_ccb, p_scb, p_pkt);![]()
res = avdt_ad_write_req(AVDT_CHAN_MEDIA, p_scb->p_ccb, p_scb, p_pkt);
avdt_ad_write_req() is called by 3 functions and calls 3 functions:
![]()
avdt_ad_write_req()
avdt_ad_write_req() reads 4 variables:
![]()
avdt_ad_write_req()