Lines Matching refs:pmeta_msg

199 static void handle_rc_metamsg_rsp(tBTA_AV_META_MSG *pmeta_msg);
669 void handle_uid_changed_notification(tBTA_AV_META_MSG *pmeta_msg, tAVRC_COMMAND *pavrc_command) in handle_uid_changed_notification() argument
679 send_metamsg_rsp(pmeta_msg->rc_handle, pmeta_msg->label, AVRC_RSP_INTERIM, &avrc_rsp); in handle_uid_changed_notification()
680 send_metamsg_rsp(pmeta_msg->rc_handle, pmeta_msg->label, AVRC_RSP_CHANGED, &avrc_rsp); in handle_uid_changed_notification()
694 void handle_rc_metamsg_cmd (tBTA_AV_META_MSG *pmeta_msg) in handle_rc_metamsg_cmd() argument
703 if (pmeta_msg->p_msg->hdr.opcode != AVRC_OP_VENDOR) in handle_rc_metamsg_cmd()
705 BTIF_TRACE_WARNING("Invalid opcode: %x", pmeta_msg->p_msg->hdr.opcode); in handle_rc_metamsg_cmd()
708 if (pmeta_msg->len < 3) in handle_rc_metamsg_cmd()
710 BTIF_TRACE_WARNING("Invalid length.Opcode: 0x%x, len: 0x%x", pmeta_msg->p_msg->hdr.opcode, in handle_rc_metamsg_cmd()
711 pmeta_msg->len); in handle_rc_metamsg_cmd()
715 if (pmeta_msg->code >= AVRC_RSP_NOT_IMPL) in handle_rc_metamsg_cmd()
720 transaction=get_transaction_by_lbl(pmeta_msg->label); in handle_rc_metamsg_cmd()
723 handle_rc_metamsg_rsp(pmeta_msg); in handle_rc_metamsg_cmd()
728 __FUNCTION__, pmeta_msg->code, pmeta_msg->label); in handle_rc_metamsg_cmd()
735 __FUNCTION__, pmeta_msg->code, pmeta_msg->len); in handle_rc_metamsg_cmd()
741 status=AVRC_ParsCommand(pmeta_msg->p_msg, &avrc_command, scratch_buf, sizeof(scratch_buf)); in handle_rc_metamsg_cmd()
742 BTIF_TRACE_DEBUG("Received vendor command.code,PDU and label: %d, %d,%d",pmeta_msg->code, in handle_rc_metamsg_cmd()
743 avrc_command.cmd.pdu, pmeta_msg->label); in handle_rc_metamsg_cmd()
750 send_reject_response(pmeta_msg->rc_handle, pmeta_msg->label, avrc_command.pdu, status); in handle_rc_metamsg_cmd()
760 __FUNCTION__,dump_rc_notification_event_id(event_id), pmeta_msg->label,pmeta_msg->code); in handle_rc_metamsg_cmd()
762 btif_rc_cb.rc_notif[event_id-1].label = pmeta_msg->label; in handle_rc_metamsg_cmd()
766 handle_uid_changed_notification(pmeta_msg, &avrc_command); in handle_rc_metamsg_cmd()
778 btif_rc_upstreams_evt((uint16_t)avrc_command.cmd.pdu, &avrc_command, pmeta_msg->code, in handle_rc_metamsg_cmd()
779 pmeta_msg->label); in handle_rc_metamsg_cmd()
1537 static void handle_rc_metamsg_rsp(tBTA_AV_META_MSG *pmeta_msg) in handle_rc_metamsg_rsp() argument
1543 if(AVRC_OP_VENDOR==pmeta_msg->p_msg->hdr.opcode &&(AVRC_RSP_CHANGED==pmeta_msg->code in handle_rc_metamsg_rsp()
1544 || AVRC_RSP_INTERIM==pmeta_msg->code || AVRC_RSP_ACCEPT==pmeta_msg->code in handle_rc_metamsg_rsp()
1545 || AVRC_RSP_REJ==pmeta_msg->code || AVRC_RSP_NOT_IMPL==pmeta_msg->code)) in handle_rc_metamsg_rsp()
1547 … status=AVRC_ParsResponse(pmeta_msg->p_msg, &avrc_response, scratch_buf, sizeof(scratch_buf)); in handle_rc_metamsg_rsp()
1549 __FUNCTION__,pmeta_msg->code,avrc_response.reg_notif.event_id,avrc_response.reg_notif.pdu, in handle_rc_metamsg_rsp()
1550 status, pmeta_msg->label); in handle_rc_metamsg_rsp()
1556 && btif_rc_cb.rc_vol_label==pmeta_msg->label) in handle_rc_metamsg_rsp()
1563 release_transaction(pmeta_msg->label); in handle_rc_metamsg_rsp()
1569 && btif_rc_cb.rc_vol_label!=pmeta_msg->label) in handle_rc_metamsg_rsp()
1573 __FUNCTION__, pmeta_msg->code, pmeta_msg->label); in handle_rc_metamsg_rsp()
1580 __FUNCTION__, pmeta_msg->code, pmeta_msg->len); in handle_rc_metamsg_rsp()
1586 && AVRC_RSP_CHANGED==pmeta_msg->code) in handle_rc_metamsg_rsp()
1595 release_transaction(pmeta_msg->label); in handle_rc_metamsg_rsp()
1600 btif_rc_upstreams_rsp_evt((uint16_t)avrc_response.rsp.pdu, &avrc_response, pmeta_msg->code, in handle_rc_metamsg_rsp()
1601 pmeta_msg->label); in handle_rc_metamsg_rsp()