Lines Matching refs:p_cmd
39 static tAVRC_STS avrc_bld_next_cmd(tAVRC_NEXT_CMD* p_cmd, BT_HDR* p_pkt) { in avrc_bld_next_cmd() argument
50 UINT8_TO_BE_STREAM(p_data, p_cmd->target_pdu); in avrc_bld_next_cmd()
71 static tAVRC_STS avrc_bld_set_abs_volume_cmd(tAVRC_SET_VOLUME_CMD* p_cmd, in avrc_bld_set_abs_volume_cmd() argument
81 UINT8_TO_BE_STREAM(p_data, (AVRC_MAX_VOLUME & p_cmd->volume)); in avrc_bld_set_abs_volume_cmd()
248 BT_HDR* p_pkt, tAVRC_GET_APP_ATTR_TXT_CMD* p_cmd) { in avrc_bld_get_player_app_setting_attr_text_cmd() argument
254 uint8_t param_len = p_cmd->num_attr + 1; in avrc_bld_get_player_app_setting_attr_text_cmd()
257 UINT8_TO_BE_STREAM(p_data, p_cmd->num_attr); in avrc_bld_get_player_app_setting_attr_text_cmd()
258 for (int count = 0; count < p_cmd->num_attr; count++) { in avrc_bld_get_player_app_setting_attr_text_cmd()
259 UINT8_TO_BE_STREAM(p_data, p_cmd->attrs[count]); in avrc_bld_get_player_app_setting_attr_text_cmd()
277 BT_HDR* p_pkt, tAVRC_GET_APP_VAL_TXT_CMD* p_cmd) { in avrc_bld_get_player_app_setting_value_text_cmd() argument
283 uint8_t param_len = p_cmd->num_val + 1; in avrc_bld_get_player_app_setting_value_text_cmd()
286 UINT8_TO_BE_STREAM(p_data, p_cmd->num_val); in avrc_bld_get_player_app_setting_value_text_cmd()
287 for (int count = 0; count < p_cmd->num_val; count++) { in avrc_bld_get_player_app_setting_value_text_cmd()
288 UINT8_TO_BE_STREAM(p_data, p_cmd->vals[count]); in avrc_bld_get_player_app_setting_value_text_cmd()
499 static BT_HDR* avrc_bld_init_cmd_buffer(tAVRC_COMMAND* p_cmd) { in avrc_bld_init_cmd_buffer() argument
501 uint8_t opcode = avrc_opcode_from_pdu(p_cmd->pdu); in avrc_bld_init_cmd_buffer()
502 AVRC_TRACE_API("avrc_bld_init_cmd_buffer: pdu=%x, opcode=%x", p_cmd->pdu, in avrc_bld_init_cmd_buffer()
532 if (opcode != AVRC_OP_PASS_THRU) *p_data++ = p_cmd->pdu; in avrc_bld_init_cmd_buffer()
545 p_cmd->cmd.opcode = opcode; in avrc_bld_init_cmd_buffer()
561 tAVRC_STS AVRC_BldCommand(tAVRC_COMMAND* p_cmd, BT_HDR** pp_pkt) { in AVRC_BldCommand() argument
564 AVRC_TRACE_API("AVRC_BldCommand: pdu=%x status=%x", p_cmd->cmd.pdu, in AVRC_BldCommand()
565 p_cmd->cmd.status); in AVRC_BldCommand()
566 if (!p_cmd || !pp_pkt) { in AVRC_BldCommand()
569 p_cmd, pp_pkt); in AVRC_BldCommand()
574 *pp_pkt = avrc_bld_init_cmd_buffer(p_cmd); in AVRC_BldCommand()
584 switch (p_cmd->pdu) { in AVRC_BldCommand()
586 status = avrc_bld_next_cmd(&p_cmd->continu, p_pkt); in AVRC_BldCommand()
590 status = avrc_bld_next_cmd(&p_cmd->abort, p_pkt); in AVRC_BldCommand()
594 status = avrc_bld_set_abs_volume_cmd(&p_cmd->volume, p_pkt); in AVRC_BldCommand()
599 status = avrc_bld_register_notifn(p_pkt, p_cmd->reg_notif.event_id, in AVRC_BldCommand()
600 p_cmd->reg_notif.param); in AVRC_BldCommand()
605 avrc_bld_get_capability_cmd(p_pkt, p_cmd->get_caps.capability_id); in AVRC_BldCommand()
612 p_pkt, p_cmd->list_app_values.attr_id); in AVRC_BldCommand()
616 p_pkt, p_cmd->get_cur_app_val.num_attr, p_cmd->get_cur_app_val.attrs); in AVRC_BldCommand()
620 p_pkt, p_cmd->set_app_val.num_val, p_cmd->set_app_val.p_vals); in AVRC_BldCommand()
624 &p_cmd->get_app_attr_txt); in AVRC_BldCommand()
628 &p_cmd->get_app_val_txt); in AVRC_BldCommand()
632 p_pkt, p_cmd->get_elem_attrs.num_attr, p_cmd->get_elem_attrs.attrs); in AVRC_BldCommand()
635 status = avrc_bld_play_item_cmd(p_pkt, p_cmd->play_item.scope, in AVRC_BldCommand()
636 p_cmd->play_item.uid, in AVRC_BldCommand()
637 p_cmd->play_item.uid_counter); in AVRC_BldCommand()
643 status = avrc_bld_get_folder_items_cmd(p_pkt, &(p_cmd->get_items)); in AVRC_BldCommand()
646 status = avrc_bld_change_folder_cmd(p_pkt, &(p_cmd->chg_path)); in AVRC_BldCommand()
649 status = avrc_bld_set_browsed_player_cmd(p_pkt, &(p_cmd->br_player)); in AVRC_BldCommand()
652 status = avrc_bld_set_addressed_player_cmd(p_pkt, &(p_cmd->addr_player)); in AVRC_BldCommand()