Home | History | Annotate | Download | only in avdt

Lines Matching defs:sig

1128 static UINT8 avdt_msg_prs_rej(tAVDT_MSG *p_msg, UINT8 *p, UINT8 sig)
1130 if ((sig == AVDT_SIG_SETCONFIG) || (sig == AVDT_SIG_RECONFIG))
1135 else if ((sig == AVDT_SIG_START) || (sig == AVDT_SIG_SUSPEND))
1208 UINT8 sig;
1280 /* label, sig id, msg type are in hdr of p_curr_msg */
1283 sig = (UINT8) p_ccb->p_curr_msg->event;
1284 AVDT_TRACE_DEBUG("avdt_msg_send label:%d, msg:%d, sig:%d", label, msg, sig);
1296 /* if retransmit timeout set to zero, sig doesn't use retransmit */
1297 if ((sig == AVDT_SIG_DISCOVER) || (sig == AVDT_SIG_GETCAP) ||
1298 (sig == AVDT_SIG_SECURITY) || (avdt_cb.rcb.ret_tout == 0))
1307 else if (sig != AVDT_SIG_DELAY_RPT)
1338 AVDT_MSG_BLD_SIG(p, sig);
1524 /* stash sig, label, and message type in buf */
1568 /* stash sig, label, and message type in buf */
1603 /* if sig id included, build into message */
1606 /* if this sig has a parameter, add the parameter */
1626 /* stash sig, label, and message type in buf */
1663 /* stash sig, label, and message type in buf */
1696 UINT8 sig = 0;
1716 AVDT_TRACE_DEBUG("msg_type=%d, sig=%d", msg_type, sig);
1733 msg.hdr.sig_id = sig = (UINT8) p_ccb->p_curr_cmd->event;
1734 evt = avdt_msg_rej_2_evt[sig - 1];
1742 AVDT_MSG_PRS_SIG(p, sig);
1743 msg.hdr.sig_id = sig;
1744 if ((sig == 0) || (sig > AVDT_SIG_MAX))
1746 AVDT_TRACE_WARNING("Dropping msg sig=%d msg_type:%d", sig, msg_type);
1752 avdt_msg_send_grej(p_ccb, sig, &msg);
1763 if ((msg_type == AVDT_MSG_TYPE_RSP) && (sig == AVDT_SIG_DISCOVER))
1770 ((sig == AVDT_SIG_GETCAP) || (sig == AVDT_SIG_GET_ALLCAP)))
1775 else if ((msg_type == AVDT_MSG_TYPE_RSP) && (sig == AVDT_SIG_GETCONFIG))
1780 else if ((msg_type == AVDT_MSG_TYPE_CMD) && (sig == AVDT_SIG_SETCONFIG))
1785 else if ((msg_type == AVDT_MSG_TYPE_CMD) && (sig == AVDT_SIG_RECONFIG))
1791 /* parse message; while we're at it map message sig to event */
1794 msg.hdr.err_code = err = (*avdt_msg_prs_cmd[sig - 1])(&msg, p, p_buf->len);
1795 evt = avdt_msg_cmd_2_evt[sig - 1];
1799 msg.hdr.err_code = err = (*avdt_msg_prs_rsp[sig - 1])(&msg, p, p_buf->len);
1800 evt = avdt_msg_rsp_2_evt[sig - 1];
1804 err = avdt_msg_prs_rej(&msg, p, sig);
1805 evt = avdt_msg_rej_2_evt[sig - 1];
1811 AVDT_TRACE_WARNING("Parsing failed sig=%d err=0x%x", sig, err);
1817 if ((msg_type == AVDT_MSG_TYPE_CMD) && (sig != AVDT_SIG_ABORT))
1819 avdt_msg_send_rej(p_ccb, sig, &msg);
1833 (p_ccb->p_curr_cmd->event == sig) &&
1850 AVDT_TRACE_WARNING("Cmd not found for rsp sig=%d label=%d", sig, label);