Lines Matching refs:label
72 #define FILL_PDU_QUEUE(index, ctype, label, pending) \
75 btif_rc_cb.rc_pdu_info[index].label = label; \
86 send_metamsg_rsp(btif_rc_cb.rc_handle, btif_rc_cb.rc_pdu_info[index].label, \
89 btif_rc_cb.rc_pdu_info[index].label = 0; \
98 UINT8 label;
103 UINT8 label;
186 static void send_reject_response (UINT8 rc_handle, UINT8 label,
189 static void send_metamsg_rsp (UINT8 rc_handle, UINT8 label,
191 static void register_volumechange(UINT8 label);
196 static void release_transaction(UINT8 label);
197 static rc_transaction_t* get_transaction_by_lbl(UINT8 label);
199 static void btif_rc_upstreams_evt(UINT16 event, tAVRC_COMMAND* p_param, UINT8 ctype, UINT8 label);
200 static void btif_rc_upstreams_rsp_evt(UINT16 event, tAVRC_RESPONSE *pavrc_resp, UINT8 ctype, UINT8 label);
372 BTIF_TRACE_DEBUG1("Checking for feature flags in btif_rc_handler with label %d",
389 BTIF_TRACE_DEBUG1("register_volumechange already in progress for label %d",
582 send_metamsg_rsp(pmeta_msg->rc_handle, pmeta_msg->label, AVRC_RSP_INTERIM, &avrc_rsp);
583 send_metamsg_rsp(pmeta_msg->rc_handle, pmeta_msg->label, AVRC_RSP_CHANGED, &avrc_rsp);
624 transaction=get_transaction_by_lbl(pmeta_msg->label);
631 BTIF_TRACE_DEBUG3("%s:Discard vendor dependent rsp. code: %d label:%d.",
632 __FUNCTION__, pmeta_msg->code, pmeta_msg->label);
646 BTIF_TRACE_DEBUG3("Received vendor command.code,PDU and label: %d, %d,%d",pmeta_msg->code,
647 avrc_command.cmd.pdu, pmeta_msg->label);
654 send_reject_response(pmeta_msg->rc_handle, pmeta_msg->label, avrc_command.pdu, status);
664 BTIF_TRACE_EVENT4("%s:New register notification received.event_id:%s,label:0x%x,code:%x",
665 __FUNCTION__,dump_rc_notification_event_id(event_id), pmeta_msg->label,pmeta_msg->code);
667 btif_rc_cb.rc_notif[event_id-1].label = pmeta_msg->label;
684 pmeta_msg->label);
727 BTIF_TRACE_DEBUG2("BTA_AV_META_MSG_EVT code:%d label:%d", p_data->meta_msg.code,
728 p_data->meta_msg.label);
800 static void send_reject_response (UINT8 rc_handle, UINT8 label, UINT8 pdu, UINT8 status)
815 BTA_AvMetaRsp(rc_handle, label, ctype, p_msg);
824 * label Label of the RC response
831 static void send_metamsg_rsp (UINT8 rc_handle, UINT8 label, tBTA_AV_CODE code,
843 BTIF_TRACE_EVENT5("+%s: rc_handle: %d, label: %d, code: 0x%02x, pdu: %s", __FUNCTION__,
844 rc_handle, label, code, dump_rc_pdu(pmetamsg_resp->rsp.pdu));
895 BTA_AvMetaRsp(btif_rc_cb.rc_handle, btif_rc_cb.rc_notif[event_id-1].label,
923 BTA_AvMetaRsp(rc_handle, label, ctype, p_msg);
961 static void btif_rc_upstreams_evt(UINT16 event, tAVRC_COMMAND *pavrc_cmd, UINT8 ctype, UINT8 label)
963 BTIF_TRACE_EVENT5("%s pdu: %s handle: 0x%x ctype:%x label:%x", __FUNCTION__,
964 dump_rc_pdu(pavrc_cmd->pdu), btif_rc_cb.rc_handle, ctype, label);
970 FILL_PDU_QUEUE(IDX_GET_PLAY_STATUS_RSP, ctype, label, TRUE)
982 send_reject_response (btif_rc_cb.rc_handle, label, pavrc_cmd->pdu, AVRC_STS_BAD_CMD);
1003 send_reject_response (btif_rc_cb.rc_handle, label, pavrc_cmd->pdu,
1013 FILL_PDU_QUEUE(IDX_GET_ELEMENT_ATTR_RSP, ctype, label, TRUE);
1024 send_reject_response (btif_rc_cb.rc_handle, label, pavrc_cmd->pdu, AVRC_STS_BAD_PARAM);
1043 send_metamsg_rsp(btif_rc_cb.rc_handle, label, ctype, &avrc_rsp);
1049 send_reject_response (btif_rc_cb.rc_handle, label, pavrc_cmd->pdu,
1068 static void btif_rc_upstreams_rsp_evt(UINT16 event, tAVRC_RESPONSE *pavrc_resp, UINT8 ctype, UINT8 label)
1070 BTIF_TRACE_EVENT5("%s pdu: %s handle: 0x%x ctype:%x label:%x", __FUNCTION__,
1071 dump_rc_pdu(pavrc_resp->pdu), btif_rc_cb.rc_handle, ctype, label);
1246 send_metamsg_rsp(btif_rc_cb.rc_handle, btif_rc_cb.rc_notif[event_id-1].label,
1296 BTIF_TRACE_DEBUG2("%s msgreq being sent out with label %d",
1342 BTIF_TRACE_DEBUG2("%s called with label:%d",__FUNCTION__,lbl);
1362 BTIF_TRACE_ERROR2("%s transaction not obtained with label: %d",__FUNCTION__,lbl);
1390 BTIF_TRACE_DEBUG6("%s: code %d,event ID %d,PDU %x,parsing status %d, label:%d",
1392 status, pmeta_msg->label);
1398 && btif_rc_cb.rc_vol_label==pmeta_msg->label)
1405 release_transaction(pmeta_msg->label);
1411 && btif_rc_cb.rc_vol_label!=pmeta_msg->label)
1413 // Just discard the message, if the device sends back with an incorrect label
1414 BTIF_TRACE_DEBUG3("%s:Discarding register notfn in rsp.code: %d and label %d",
1415 __FUNCTION__, pmeta_msg->code, pmeta_msg->label);
1436 /* free up the label here */
1437 release_transaction(pmeta_msg->label);
1443 pmeta_msg->label);
1522 ** Description Initializes label structures and mutexes.
1557 ** Description Will return a transaction based on the label. If not inuse
1567 /* Determine if this is a valid label */
1577 BTIF_TRACE_DEBUG2("%s: Got transaction.label: %d",__FUNCTION__,lbl);
1605 BTIF_TRACE_DEBUG2("%s:Got transaction.label: %d",__FUNCTION__,device.transaction[i].lbl);