Lines Matching refs:p_result
41 static tAVRC_STS avrc_pars_vendor_cmd(tAVRC_MSG_VENDOR *p_msg, tAVRC_COMMAND *p_result,
54 p_result->pdu = *p++;
55 AVRC_TRACE_DEBUG1("avrc_pars_vendor_cmd() pdu:0x%x", p_result->pdu);
56 if (!AVRC_IsValidAvcType (p_result->pdu, p_msg->hdr.ctype))
72 switch (p_result->pdu)
75 p_result->get_caps.capability_id = *p++;
76 if (!AVRC_IS_VALID_CAP_ID(p_result->get_caps.capability_id))
89 p_result->list_app_values.attr_id = *p++;
90 if (!AVRC_IS_VALID_ATTRIBUTE(p_result->list_app_values.attr_id))
98 BE_STREAM_TO_UINT8 (p_result->get_cur_app_val.num_attr, p);
99 if (len != (p_result->get_cur_app_val.num_attr+1))
104 p_u8 = p_result->get_cur_app_val.attrs;
105 for (xx=0, yy=0; xx< p_result->get_cur_app_val.num_attr; xx++)
112 p_result->get_cur_app_val.num_attr = yy;
120 BE_STREAM_TO_UINT8 (p_result->set_app_val.num_val, p);
122 if (p_buf && (len == ((p_result->set_app_val.num_val<<1) + 1)))
124 p_result->set_app_val.p_vals = (tAVRC_APP_SETTING *)p_buf;
125 p_app_set = p_result->set_app_val.p_vals;
126 for (xx=0; ((xx< p_result->set_app_val.num_val) && (buf_len > size_needed)); xx++)
133 if (xx != p_result->set_app_val.num_val)
136 xx, p_result->set_app_val.num_val);
137 p_result->set_app_val.num_val = xx;
152 BE_STREAM_TO_UINT8 (p_result->get_app_val_txt.attr_id, p);
153 if (!AVRC_IS_VALID_ATTRIBUTE(p_result->get_app_val_txt.attr_id))
157 BE_STREAM_TO_UINT8 (p_result->get_app_val_txt.num_val, p);
158 if ( (len - 2/* attr_id & num_val */) != p_result->get_app_val_txt.num_val)
162 p_u8 = p_result->get_app_val_txt.vals;
163 for (xx=0; xx< p_result->get_app_val_txt.num_val; xx++)
166 if (!avrc_is_valid_player_attrib_value(p_result->get_app_val_txt.attr_id,
183 BE_STREAM_TO_UINT8 (p_result->inform_charset.num_id, p);
184 if ( (len - 1/* num_id */) != p_result->inform_charset.num_id * 2)
188 p_u16 = p_result->inform_charset.charsets;
189 if (p_result->inform_charset.num_id > AVRC_MAX_CHARSET_SIZE)
190 p_result->inform_charset.num_id = AVRC_MAX_CHARSET_SIZE;
191 for (xx=0; xx< p_result->inform_charset.num_id; xx++)
204 p_result->inform_battery_status.battery_status = *p++;
205 if (!AVRC_IS_VALID_BATTERY_STATUS(p_result->inform_battery_status.battery_status))
219 BE_STREAM_TO_UINT8 (p_result->get_elem_attrs.num_attr, p);
220 if ( (len - 9/* UID/8 and num_attr/1 */) != (p_result->get_elem_attrs.num_attr * 4))
224 p_u32 = p_result->get_elem_attrs.attrs;
225 if (p_result->get_elem_attrs.num_attr > AVRC_MAX_ELEM_ATTR_SIZE)
226 p_result->get_elem_attrs.num_attr = AVRC_MAX_ELEM_ATTR_SIZE;
227 for (xx=0; xx< p_result->get_elem_attrs.num_attr; xx++)
247 BE_STREAM_TO_UINT8 (p_result->reg_notif.event_id, p);
248 BE_STREAM_TO_UINT32 (p_result->reg_notif.param, p);
272 tAVRC_STS AVRC_ParsCommand (tAVRC_MSG *p_msg, tAVRC_COMMAND *p_result, UINT8 *p_buf, UINT16 buf_len)
277 if (p_msg && p_result)
282 status = avrc_pars_vendor_cmd(&p_msg->vendor, p_result, p_buf, buf_len);
289 p_result->pdu = (UINT8)id;
297 p_result->cmd.opcode = p_msg->hdr.opcode;
298 p_result->cmd.status = status;