Home | History | Annotate | Download | only in av

Lines Matching refs:rc_msg

873     tAVRC_MSG_VENDOR    *p_vendor = &p_data->rc_msg.msg.vendor;
874 BOOLEAN is_inquiry = ((p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_SPEC_INQ) || p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_GEN_INQ);
882 if (p_data->rc_msg.opcode == AVRC_OP_PASS_THRU)
885 if ((p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_CTRL) ||
886 (p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_SPEC_INQ) ||
887 (p_data->rc_msg.msg.hdr.ctype == AVRC_CMD_GEN_INQ)
891 if (p_data->rc_msg.msg.pass.op_id == AVRC_ID_VENDOR)
893 p_data->rc_msg.msg.hdr.ctype = BTA_AV_RSP_NOT_IMPL;
896 p_data->rc_msg.msg.hdr.ctype =
897 bta_av_group_navi_supported(p_data->rc_msg.msg.pass.pass_len,
898 p_data->rc_msg.msg.pass.p_pass_data, is_inquiry);
903 p_data->rc_msg.msg.hdr.ctype = bta_av_op_supported(p_data->rc_msg.msg.pass.op_id, is_inquiry);
906 APPL_TRACE_DEBUG("ctype %d",p_data->rc_msg.msg.hdr.ctype)
909 if (p_data->rc_msg.msg.hdr.ctype != BTA_AV_RSP_INTERIM)
910 AVRC_PassRsp(p_data->rc_msg.handle, p_data->rc_msg.label, &p_data->rc_msg.msg.pass);
913 if (p_data->rc_msg.msg.hdr.ctype == BTA_AV_RSP_ACCEPT || p_data->rc_msg.msg.hdr.ctype == BTA_AV_RSP_INTERIM)
916 av.remote_cmd.rc_id = p_data->rc_msg.msg.pass.op_id;
917 av.remote_cmd.key_state = p_data->rc_msg.msg.pass.state;
918 av.remote_cmd.p_data = p_data->rc_msg.msg.pass.p_pass_data;
919 av.remote_cmd.len = p_data->rc_msg.msg.pass.pass_len;
920 memcpy(&av.remote_cmd.hdr, &p_data->rc_msg.msg.hdr, sizeof (tAVRC_HDR));
921 av.remote_cmd.label = p_data->rc_msg.label;
925 else if (p_data->rc_msg.msg.hdr.ctype >= AVRC_RSP_ACCEPT)
929 av.remote_rsp.rc_id = p_data->rc_msg.msg.pass.op_id;
930 av.remote_rsp.key_state = p_data->rc_msg.msg.pass.state;
931 av.remote_rsp.rsp_code = p_data->rc_msg.msg.hdr.ctype;
932 av.remote_rsp.label = p_data->rc_msg.label;
937 p_data->rc_msg.msg.hdr.ctype = BTA_AV_RSP_REJ;
938 AVRC_PassRsp(p_data->rc_msg.handle, p_data->rc_msg.label, &p_data->rc_msg.msg.pass);
942 else if (p_data->rc_msg.opcode == AVRC_OP_VENDOR)
945 av.vendor_cmd.code = p_data->rc_msg.msg.hdr.ctype;
947 av.vendor_cmd.label = p_data->rc_msg.label;
953 p_data->rc_msg.msg.hdr.ctype <= AVRC_CMD_GEN_INQ)
959 av.meta_msg.p_msg = &p_data->rc_msg.msg;
960 evt = bta_av_proc_meta_cmd (&rc_rsp, &p_data->rc_msg, &ctype);
968 p_data->rc_msg.msg.hdr.ctype >= AVRC_RSP_ACCEPT)
974 av.meta_msg.p_msg = &p_data->rc_msg.msg;
984 p_data->rc_msg.msg.hdr.ctype <= AVRC_CMD_GEN_INQ)
986 if(p_data->rc_msg.msg.vendor.p_vendor_data[0] == AVRC_PDU_INVALID)
989 p_data->rc_msg.msg.hdr.ctype = BTA_AV_RSP_REJ;
990 p_data->rc_msg.msg.vendor.p_vendor_data[4] = AVRC_STS_BAD_CMD;
993 p_data->rc_msg.msg.hdr.ctype = BTA_AV_RSP_NOT_IMPL;
994 AVRC_VendorRsp(p_data->rc_msg.handle, p_data->rc_msg.label, &p_data->rc_msg.msg.vendor);
1002 rc_rsp.rsp.opcode = p_data->rc_msg.opcode;
1006 AVRC_MsgReq (p_data->rc_msg.handle, p_data->rc_msg.label, ctype, p_pkt);
1013 av.remote_cmd.rc_handle = p_data->rc_msg.handle;