Lines Matching refs:avrc_cmd

2619     tAVRC_COMMAND avrc_cmd = {.volume = {.pdu = AVRC_PDU_SET_ABSOLUTE_VOLUME,  in set_volume()  local
2625 if (AVRC_BldCommand(&avrc_cmd, &p_msg) != AVRC_STS_NO_ERROR) { in set_volume()
2665 tAVRC_COMMAND avrc_cmd = {0}; in register_volumechange() local
2672 avrc_cmd.cmd.opcode = 0x00; in register_volumechange()
2673 avrc_cmd.pdu = AVRC_PDU_REGISTER_NOTIFICATION; in register_volumechange()
2674 avrc_cmd.reg_notif.event_id = AVRC_EVT_VOLUME_CHANGE; in register_volumechange()
2675 avrc_cmd.reg_notif.status = AVRC_STS_NO_ERROR; in register_volumechange()
2676 avrc_cmd.reg_notif.param = 0; in register_volumechange()
2678 BldResp = AVRC_BldCommand(&avrc_cmd, &p_msg); in register_volumechange()
3075 bt_status_t build_and_send_vendor_cmd(tAVRC_COMMAND* avrc_cmd, in build_and_send_vendor_cmd() argument
3083 tAVRC_STS status = AVRC_BldCommand(avrc_cmd, &p_msg); in build_and_send_vendor_cmd()
3087 dump_rc_pdu(avrc_cmd->pdu), p_transaction->lbl); in build_and_send_vendor_cmd()
3092 start_status_command_timer(avrc_cmd->pdu, p_transaction, p_dev); in build_and_send_vendor_cmd()
3094 start_control_command_timer(avrc_cmd->pdu, p_transaction, p_dev); in build_and_send_vendor_cmd()
3117 static bt_status_t build_and_send_browsing_cmd(tAVRC_COMMAND* avrc_cmd, in build_and_send_browsing_cmd() argument
3120 tAVRC_STS status = AVRC_BldCommand(avrc_cmd, &p_msg); in build_and_send_browsing_cmd()
4440 tAVRC_COMMAND avrc_cmd = {0}; in handle_avk_rc_metamsg_cmd() local
4446 status = AVRC_Ctrl_ParsCommand(pmeta_msg->p_msg, &avrc_cmd); in handle_avk_rc_metamsg_cmd()
4450 __func__, pmeta_msg->code, avrc_cmd.pdu, pmeta_msg->label); in handle_avk_rc_metamsg_cmd()
4457 send_reject_response(pmeta_msg->rc_handle, pmeta_msg->label, avrc_cmd.pdu, in handle_avk_rc_metamsg_cmd()
4467 if (avrc_cmd.pdu == AVRC_PDU_REGISTER_NOTIFICATION) { in handle_avk_rc_metamsg_cmd()
4468 uint8_t event_id = avrc_cmd.reg_notif.event_id; in handle_avk_rc_metamsg_cmd()
4471 } else if (avrc_cmd.pdu == AVRC_PDU_SET_ABSOLUTE_VOLUME) { in handle_avk_rc_metamsg_cmd()
4475 btif_rc_ctrl_upstreams_rsp_cmd(avrc_cmd.pdu, &avrc_cmd, pmeta_msg->label, in handle_avk_rc_metamsg_cmd()
4550 tAVRC_COMMAND avrc_cmd = {0}; in getcapabilities_cmd() local
4551 avrc_cmd.get_caps.opcode = AVRC_OP_VENDOR; in getcapabilities_cmd()
4552 avrc_cmd.get_caps.capability_id = cap_id; in getcapabilities_cmd()
4553 avrc_cmd.get_caps.pdu = AVRC_PDU_GET_CAPABILITIES; in getcapabilities_cmd()
4554 avrc_cmd.get_caps.status = AVRC_STS_NO_ERROR; in getcapabilities_cmd()
4556 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in getcapabilities_cmd()
4573 tAVRC_COMMAND avrc_cmd = {0}; in list_player_app_setting_attrib_cmd() local
4574 avrc_cmd.list_app_attr.opcode = AVRC_OP_VENDOR; in list_player_app_setting_attrib_cmd()
4575 avrc_cmd.list_app_attr.pdu = AVRC_PDU_LIST_PLAYER_APP_ATTR; in list_player_app_setting_attrib_cmd()
4576 avrc_cmd.list_app_attr.status = AVRC_STS_NO_ERROR; in list_player_app_setting_attrib_cmd()
4578 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in list_player_app_setting_attrib_cmd()
4595 tAVRC_COMMAND avrc_cmd = {0}; in list_player_app_setting_value_cmd() local
4596 avrc_cmd.list_app_values.attr_id = attrib_id; in list_player_app_setting_value_cmd()
4597 avrc_cmd.list_app_values.opcode = AVRC_OP_VENDOR; in list_player_app_setting_value_cmd()
4598 avrc_cmd.list_app_values.pdu = AVRC_PDU_LIST_PLAYER_APP_VALUES; in list_player_app_setting_value_cmd()
4599 avrc_cmd.list_app_values.status = AVRC_STS_NO_ERROR; in list_player_app_setting_value_cmd()
4601 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in list_player_app_setting_value_cmd()
4619 tAVRC_COMMAND avrc_cmd = {0}; in get_player_app_setting_cmd() local
4620 avrc_cmd.get_cur_app_val.opcode = AVRC_OP_VENDOR; in get_player_app_setting_cmd()
4621 avrc_cmd.get_cur_app_val.status = AVRC_STS_NO_ERROR; in get_player_app_setting_cmd()
4622 avrc_cmd.get_cur_app_val.num_attr = num_attrib; in get_player_app_setting_cmd()
4623 avrc_cmd.get_cur_app_val.pdu = AVRC_PDU_GET_CUR_PLAYER_APP_VALUE; in get_player_app_setting_cmd()
4626 avrc_cmd.get_cur_app_val.attrs[count] = attrib_ids[count]; in get_player_app_setting_cmd()
4629 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in get_player_app_setting_cmd()
4710 tAVRC_COMMAND avrc_cmd = {0}; in get_item_attribute_cmd() local
4711 avrc_cmd.pdu = AVRC_PDU_GET_ITEM_ATTRIBUTES; in get_item_attribute_cmd()
4712 avrc_cmd.get_attrs.scope = scope; in get_item_attribute_cmd()
4713 memcpy(avrc_cmd.get_attrs.uid, &uid, 8); in get_item_attribute_cmd()
4714 avrc_cmd.get_attrs.uid_counter = 0; in get_item_attribute_cmd()
4715 avrc_cmd.get_attrs.attr_count = 0; in get_item_attribute_cmd()
4717 return build_and_send_browsing_cmd(&avrc_cmd, p_dev); in get_item_attribute_cmd()
4782 tAVRC_COMMAND avrc_cmd = {0}; in change_folder_path_cmd() local
4784 avrc_cmd.chg_path.pdu = AVRC_PDU_CHANGE_PATH; in change_folder_path_cmd()
4785 avrc_cmd.chg_path.status = AVRC_STS_NO_ERROR; in change_folder_path_cmd()
4787 avrc_cmd.chg_path.uid_counter = 0; in change_folder_path_cmd()
4788 avrc_cmd.chg_path.direction = direction; in change_folder_path_cmd()
4790 memset(avrc_cmd.chg_path.folder_uid, 0, AVRC_UID_SIZE * sizeof(uint8_t)); in change_folder_path_cmd()
4791 memcpy(avrc_cmd.chg_path.folder_uid, uid, AVRC_UID_SIZE * sizeof(uint8_t)); in change_folder_path_cmd()
4793 return build_and_send_browsing_cmd(&avrc_cmd, p_dev); in change_folder_path_cmd()
4815 tAVRC_COMMAND avrc_cmd = {0}; in set_browsed_player_cmd() local
4816 avrc_cmd.br_player.pdu = AVRC_PDU_SET_BROWSED_PLAYER; in set_browsed_player_cmd()
4817 avrc_cmd.br_player.status = AVRC_STS_NO_ERROR; in set_browsed_player_cmd()
4819 avrc_cmd.br_player.player_id = id; in set_browsed_player_cmd()
4821 return build_and_send_browsing_cmd(&avrc_cmd, p_dev); in set_browsed_player_cmd()
4844 tAVRC_COMMAND avrc_cmd = {0}; in set_addressed_player_cmd() local
4845 avrc_cmd.addr_player.pdu = AVRC_PDU_SET_ADDRESSED_PLAYER; in set_addressed_player_cmd()
4846 avrc_cmd.addr_player.status = AVRC_STS_NO_ERROR; in set_addressed_player_cmd()
4848 avrc_cmd.addr_player.player_id = id; in set_addressed_player_cmd()
4850 return build_and_send_browsing_cmd(&avrc_cmd, p_dev); in set_addressed_player_cmd()
4878 tAVRC_COMMAND avrc_cmd = {0}; in get_folder_items_cmd() local
4883 avrc_cmd.get_items.pdu = AVRC_PDU_GET_FOLDER_ITEMS; in get_folder_items_cmd()
4884 avrc_cmd.get_items.status = AVRC_STS_NO_ERROR; in get_folder_items_cmd()
4885 avrc_cmd.get_items.scope = scope; in get_folder_items_cmd()
4886 avrc_cmd.get_items.start_item = start_item; in get_folder_items_cmd()
4887 avrc_cmd.get_items.end_item = end_item; in get_folder_items_cmd()
4888 avrc_cmd.get_items.attr_count = 0; /* p_attr_list does not matter hence */ in get_folder_items_cmd()
4890 return build_and_send_browsing_cmd(&avrc_cmd, p_dev); in get_folder_items_cmd()
4910 tAVRC_COMMAND avrc_cmd = {0}; in change_player_app_setting() local
4911 avrc_cmd.set_app_val.opcode = AVRC_OP_VENDOR; in change_player_app_setting()
4912 avrc_cmd.set_app_val.status = AVRC_STS_NO_ERROR; in change_player_app_setting()
4913 avrc_cmd.set_app_val.num_val = num_attrib; in change_player_app_setting()
4914 avrc_cmd.set_app_val.pdu = AVRC_PDU_SET_PLAYER_APP_VALUE; in change_player_app_setting()
4915 avrc_cmd.set_app_val.p_vals = in change_player_app_setting()
4918 avrc_cmd.set_app_val.p_vals[count].attr_id = attrib_ids[count]; in change_player_app_setting()
4919 avrc_cmd.set_app_val.p_vals[count].attr_val = attrib_vals[count]; in change_player_app_setting()
4922 bt_status_t st = build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_CTRL, p_dev); in change_player_app_setting()
4923 osi_free_and_reset((void**)&avrc_cmd.set_app_val.p_vals); in change_player_app_setting()
4943 tAVRC_COMMAND avrc_cmd = {0}; in play_item_cmd() local
4944 avrc_cmd.pdu = AVRC_PDU_PLAY_ITEM; in play_item_cmd()
4945 avrc_cmd.play_item.opcode = AVRC_OP_VENDOR; in play_item_cmd()
4946 avrc_cmd.play_item.status = AVRC_STS_NO_ERROR; in play_item_cmd()
4947 avrc_cmd.play_item.scope = scope; in play_item_cmd()
4948 memcpy(avrc_cmd.play_item.uid, uid, AVRC_UID_SIZE); in play_item_cmd()
4949 avrc_cmd.play_item.uid_counter = uid_counter; in play_item_cmd()
4951 return build_and_send_browsing_cmd(&avrc_cmd, p_dev); in play_item_cmd()
4969 tAVRC_COMMAND avrc_cmd = {0}; in get_player_app_setting_attr_text_cmd() local
4970 avrc_cmd.pdu = AVRC_PDU_GET_PLAYER_APP_ATTR_TEXT; in get_player_app_setting_attr_text_cmd()
4971 avrc_cmd.get_app_attr_txt.opcode = AVRC_OP_VENDOR; in get_player_app_setting_attr_text_cmd()
4972 avrc_cmd.get_app_attr_txt.num_attr = num_attrs; in get_player_app_setting_attr_text_cmd()
4975 avrc_cmd.get_app_attr_txt.attrs[count] = attrs[count]; in get_player_app_setting_attr_text_cmd()
4978 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in get_player_app_setting_attr_text_cmd()
4995 tAVRC_COMMAND avrc_cmd = {0}; in get_player_app_setting_value_text_cmd() local
4996 avrc_cmd.pdu = AVRC_PDU_GET_PLAYER_APP_VALUE_TEXT; in get_player_app_setting_value_text_cmd()
4997 avrc_cmd.get_app_val_txt.opcode = AVRC_OP_VENDOR; in get_player_app_setting_value_text_cmd()
4998 avrc_cmd.get_app_val_txt.num_val = num_vals; in get_player_app_setting_value_text_cmd()
5001 avrc_cmd.get_app_val_txt.vals[count] = vals[count]; in get_player_app_setting_value_text_cmd()
5004 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in get_player_app_setting_value_text_cmd()
5023 tAVRC_COMMAND avrc_cmd = {0}; in register_notification_cmd() local
5024 avrc_cmd.reg_notif.opcode = AVRC_OP_VENDOR; in register_notification_cmd()
5025 avrc_cmd.reg_notif.status = AVRC_STS_NO_ERROR; in register_notification_cmd()
5026 avrc_cmd.reg_notif.event_id = event_id; in register_notification_cmd()
5027 avrc_cmd.reg_notif.pdu = AVRC_PDU_REGISTER_NOTIFICATION; in register_notification_cmd()
5028 avrc_cmd.reg_notif.param = event_value; in register_notification_cmd()
5031 tAVRC_STS status = AVRC_BldCommand(&avrc_cmd, &p_msg); in register_notification_cmd()
5093 tAVRC_COMMAND avrc_cmd = {0}; in get_element_attribute_cmd() local
5094 avrc_cmd.get_elem_attrs.opcode = AVRC_OP_VENDOR; in get_element_attribute_cmd()
5095 avrc_cmd.get_elem_attrs.status = AVRC_STS_NO_ERROR; in get_element_attribute_cmd()
5096 avrc_cmd.get_elem_attrs.num_attr = num_attribute; in get_element_attribute_cmd()
5097 avrc_cmd.get_elem_attrs.pdu = AVRC_PDU_GET_ELEMENT_ATTR; in get_element_attribute_cmd()
5099 avrc_cmd.get_elem_attrs.attrs[count] = p_attr_ids[count]; in get_element_attribute_cmd()
5102 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in get_element_attribute_cmd()
5118 tAVRC_COMMAND avrc_cmd = {0}; in get_play_status_cmd() local
5119 avrc_cmd.get_play_status.opcode = AVRC_OP_VENDOR; in get_play_status_cmd()
5120 avrc_cmd.get_play_status.pdu = AVRC_PDU_GET_PLAY_STATUS; in get_play_status_cmd()
5121 avrc_cmd.get_play_status.status = AVRC_STS_NO_ERROR; in get_play_status_cmd()
5123 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in get_play_status_cmd()