Home | History | Annotate | Download | only in avdt

Lines Matching defs:sig

1126 static UINT8 avdt_msg_prs_rej(tAVDT_MSG *p_msg, UINT8 *p, UINT8 sig)
1128 if ((sig == AVDT_SIG_SETCONFIG) || (sig == AVDT_SIG_RECONFIG))
1133 else if ((sig == AVDT_SIG_START) || (sig == AVDT_SIG_SUSPEND))
1206 UINT8 sig;
1288 /* label, sig id, msg type are in hdr of p_curr_msg */
1291 sig = (UINT8) p_ccb->p_curr_msg->event;
1292 AVDT_TRACE_DEBUG("avdt_msg_send label:%d, msg:%d, sig:%d", label, msg, sig);
1304 /* if retransmit timeout set to zero, sig doesn't use retransmit */
1305 if ((sig == AVDT_SIG_DISCOVER) || (sig == AVDT_SIG_GETCAP) ||
1306 (sig == AVDT_SIG_SECURITY) || (avdt_cb.rcb.ret_tout == 0))
1310 else if (sig != AVDT_SIG_DELAY_RPT)
1336 AVDT_MSG_BLD_SIG(p, sig);
1518 /* stash sig, label, and message type in buf */
1566 /* stash sig, label, and message type in buf */
1605 /* if sig id included, build into message */
1608 /* if this sig has a parameter, add the parameter */
1628 /* stash sig, label, and message type in buf */
1669 /* stash sig, label, and message type in buf */
1702 UINT8 sig = 0;
1722 AVDT_TRACE_DEBUG("msg_type=%d, sig=%d", msg_type, sig);
1739 msg.hdr.sig_id = sig = (UINT8) p_ccb->p_curr_cmd->event;
1740 evt = avdt_msg_rej_2_evt[sig - 1];
1748 AVDT_MSG_PRS_SIG(p, sig);
1749 msg.hdr.sig_id = sig;
1750 if ((sig == 0) || (sig > AVDT_SIG_MAX))
1752 AVDT_TRACE_WARNING("Dropping msg sig=%d msg_type:%d", sig, msg_type);
1758 avdt_msg_send_grej(p_ccb, sig, &msg);
1769 if ((msg_type == AVDT_MSG_TYPE_RSP) && (sig == AVDT_SIG_DISCOVER))
1776 ((sig == AVDT_SIG_GETCAP) || (sig == AVDT_SIG_GET_ALLCAP)))
1781 else if ((msg_type == AVDT_MSG_TYPE_RSP) && (sig == AVDT_SIG_GETCONFIG))
1786 else if ((msg_type == AVDT_MSG_TYPE_CMD) && (sig == AVDT_SIG_SETCONFIG))
1791 else if ((msg_type == AVDT_MSG_TYPE_CMD) && (sig == AVDT_SIG_RECONFIG))
1797 /* parse message; while we're at it map message sig to event */
1800 msg.hdr.err_code = err = (*avdt_msg_prs_cmd[sig - 1])(&msg, p, p_buf->len);
1801 evt = avdt_msg_cmd_2_evt[sig - 1];
1805 msg.hdr.err_code = err = (*avdt_msg_prs_rsp[sig - 1])(&msg, p, p_buf->len);
1806 evt = avdt_msg_rsp_2_evt[sig - 1];
1810 err = avdt_msg_prs_rej(&msg, p, sig);
1811 evt = avdt_msg_rej_2_evt[sig - 1];
1817 AVDT_TRACE_WARNING("Parsing failed sig=%d err=0x%x", sig, err);
1823 if ((msg_type == AVDT_MSG_TYPE_CMD) && (sig != AVDT_SIG_ABORT))
1825 avdt_msg_send_rej(p_ccb, sig, &msg);
1839 (p_ccb->p_curr_cmd->event == sig) &&
1854 AVDT_TRACE_WARNING("Cmd not found for rsp sig=%d label=%d", sig, label);