Lines Matching refs:avrc_cmd

2594         tAVRC_COMMAND avrc_cmd = {0};  in set_volume()  local
2600 avrc_cmd.volume.opcode = AVRC_OP_VENDOR; in set_volume()
2601 avrc_cmd.volume.pdu = AVRC_PDU_SET_ABSOLUTE_VOLUME; in set_volume()
2602 avrc_cmd.volume.status = AVRC_STS_NO_ERROR; in set_volume()
2603 avrc_cmd.volume.volume = volume; in set_volume()
2605 if (AVRC_BldCommand(&avrc_cmd, &p_msg) == AVRC_STS_NO_ERROR) { in set_volume()
2645 tAVRC_COMMAND avrc_cmd = {0}; in register_volumechange() local
2652 avrc_cmd.cmd.opcode = 0x00; in register_volumechange()
2653 avrc_cmd.pdu = AVRC_PDU_REGISTER_NOTIFICATION; in register_volumechange()
2654 avrc_cmd.reg_notif.event_id = AVRC_EVT_VOLUME_CHANGE; in register_volumechange()
2655 avrc_cmd.reg_notif.status = AVRC_STS_NO_ERROR; in register_volumechange()
2656 avrc_cmd.reg_notif.param = 0; in register_volumechange()
2658 BldResp = AVRC_BldCommand(&avrc_cmd, &p_msg); in register_volumechange()
3132 bt_status_t build_and_send_vendor_cmd(tAVRC_COMMAND* avrc_cmd, in build_and_send_vendor_cmd() argument
3140 tAVRC_STS status = AVRC_BldCommand(avrc_cmd, &p_msg); in build_and_send_vendor_cmd()
3144 dump_rc_pdu(avrc_cmd->pdu), p_transaction->lbl); in build_and_send_vendor_cmd()
3149 start_status_command_timer(avrc_cmd->pdu, p_transaction, p_dev); in build_and_send_vendor_cmd()
3151 start_control_command_timer(avrc_cmd->pdu, p_transaction, p_dev); in build_and_send_vendor_cmd()
4363 tAVRC_COMMAND avrc_cmd = {0}; in handle_avk_rc_metamsg_cmd() local
4369 status = AVRC_Ctrl_ParsCommand(pmeta_msg->p_msg, &avrc_cmd); in handle_avk_rc_metamsg_cmd()
4373 __func__, pmeta_msg->code, avrc_cmd.pdu, pmeta_msg->label); in handle_avk_rc_metamsg_cmd()
4380 send_reject_response(pmeta_msg->rc_handle, pmeta_msg->label, avrc_cmd.pdu, in handle_avk_rc_metamsg_cmd()
4390 if (avrc_cmd.pdu == AVRC_PDU_REGISTER_NOTIFICATION) { in handle_avk_rc_metamsg_cmd()
4391 uint8_t event_id = avrc_cmd.reg_notif.event_id; in handle_avk_rc_metamsg_cmd()
4394 } else if (avrc_cmd.pdu == AVRC_PDU_SET_ABSOLUTE_VOLUME) { in handle_avk_rc_metamsg_cmd()
4398 btif_rc_ctrl_upstreams_rsp_cmd(avrc_cmd.pdu, &avrc_cmd, pmeta_msg->label, in handle_avk_rc_metamsg_cmd()
4473 tAVRC_COMMAND avrc_cmd = {0}; in getcapabilities_cmd() local
4474 avrc_cmd.get_caps.opcode = AVRC_OP_VENDOR; in getcapabilities_cmd()
4475 avrc_cmd.get_caps.capability_id = cap_id; in getcapabilities_cmd()
4476 avrc_cmd.get_caps.pdu = AVRC_PDU_GET_CAPABILITIES; in getcapabilities_cmd()
4477 avrc_cmd.get_caps.status = AVRC_STS_NO_ERROR; in getcapabilities_cmd()
4479 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in getcapabilities_cmd()
4496 tAVRC_COMMAND avrc_cmd = {0}; in list_player_app_setting_attrib_cmd() local
4497 avrc_cmd.list_app_attr.opcode = AVRC_OP_VENDOR; in list_player_app_setting_attrib_cmd()
4498 avrc_cmd.list_app_attr.pdu = AVRC_PDU_LIST_PLAYER_APP_ATTR; in list_player_app_setting_attrib_cmd()
4499 avrc_cmd.list_app_attr.status = AVRC_STS_NO_ERROR; in list_player_app_setting_attrib_cmd()
4501 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in list_player_app_setting_attrib_cmd()
4518 tAVRC_COMMAND avrc_cmd = {0}; in list_player_app_setting_value_cmd() local
4519 avrc_cmd.list_app_values.attr_id = attrib_id; in list_player_app_setting_value_cmd()
4520 avrc_cmd.list_app_values.opcode = AVRC_OP_VENDOR; in list_player_app_setting_value_cmd()
4521 avrc_cmd.list_app_values.pdu = AVRC_PDU_LIST_PLAYER_APP_VALUES; in list_player_app_setting_value_cmd()
4522 avrc_cmd.list_app_values.status = AVRC_STS_NO_ERROR; in list_player_app_setting_value_cmd()
4524 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in list_player_app_setting_value_cmd()
4542 tAVRC_COMMAND avrc_cmd = {0}; in get_player_app_setting_cmd() local
4543 avrc_cmd.get_cur_app_val.opcode = AVRC_OP_VENDOR; in get_player_app_setting_cmd()
4544 avrc_cmd.get_cur_app_val.status = AVRC_STS_NO_ERROR; in get_player_app_setting_cmd()
4545 avrc_cmd.get_cur_app_val.num_attr = num_attrib; in get_player_app_setting_cmd()
4546 avrc_cmd.get_cur_app_val.pdu = AVRC_PDU_GET_CUR_PLAYER_APP_VALUE; in get_player_app_setting_cmd()
4549 avrc_cmd.get_cur_app_val.attrs[count] = attrib_ids[count]; in get_player_app_setting_cmd()
4552 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in get_player_app_setting_cmd()
4654 tAVRC_COMMAND avrc_cmd = {0}; in change_folder_path_cmd() local
4656 avrc_cmd.chg_path.pdu = AVRC_PDU_CHANGE_PATH; in change_folder_path_cmd()
4657 avrc_cmd.chg_path.status = AVRC_STS_NO_ERROR; in change_folder_path_cmd()
4659 avrc_cmd.chg_path.uid_counter = 0; in change_folder_path_cmd()
4660 avrc_cmd.chg_path.direction = direction; in change_folder_path_cmd()
4662 memset(avrc_cmd.chg_path.folder_uid, 0, AVRC_UID_SIZE * sizeof(uint8_t)); in change_folder_path_cmd()
4663 memcpy(avrc_cmd.chg_path.folder_uid, uid, AVRC_UID_SIZE * sizeof(uint8_t)); in change_folder_path_cmd()
4666 tAVRC_STS status = AVRC_BldCommand(&avrc_cmd, &p_msg); in change_folder_path_cmd()
4707 tAVRC_COMMAND avrc_cmd = {0}; in set_browsed_player_cmd() local
4708 avrc_cmd.br_player.pdu = AVRC_PDU_SET_BROWSED_PLAYER; in set_browsed_player_cmd()
4709 avrc_cmd.br_player.status = AVRC_STS_NO_ERROR; in set_browsed_player_cmd()
4711 avrc_cmd.br_player.player_id = id; in set_browsed_player_cmd()
4714 tAVRC_STS status = AVRC_BldCommand(&avrc_cmd, &p_msg); in set_browsed_player_cmd()
4753 tAVRC_COMMAND avrc_cmd = {0}; in set_addressed_player_cmd() local
4756 avrc_cmd.addr_player.pdu = AVRC_PDU_SET_ADDRESSED_PLAYER; in set_addressed_player_cmd()
4757 avrc_cmd.addr_player.status = AVRC_STS_NO_ERROR; in set_addressed_player_cmd()
4759 avrc_cmd.addr_player.player_id = id; in set_addressed_player_cmd()
4761 tAVRC_STS status = AVRC_BldCommand(&avrc_cmd, &p_msg); in set_addressed_player_cmd()
4807 tAVRC_COMMAND avrc_cmd = {0}; in get_folder_items_cmd() local
4812 avrc_cmd.get_items.pdu = AVRC_PDU_GET_FOLDER_ITEMS; in get_folder_items_cmd()
4813 avrc_cmd.get_items.status = AVRC_STS_NO_ERROR; in get_folder_items_cmd()
4814 avrc_cmd.get_items.scope = scope; in get_folder_items_cmd()
4815 avrc_cmd.get_items.start_item = start_item; in get_folder_items_cmd()
4816 avrc_cmd.get_items.end_item = end_item; in get_folder_items_cmd()
4817 avrc_cmd.get_items.attr_count = 0; /* p_attr_list does not matter hence */ in get_folder_items_cmd()
4820 tAVRC_STS status = AVRC_BldCommand(&avrc_cmd, &p_msg); in get_folder_items_cmd()
4858 tAVRC_COMMAND avrc_cmd = {0}; in change_player_app_setting() local
4859 avrc_cmd.set_app_val.opcode = AVRC_OP_VENDOR; in change_player_app_setting()
4860 avrc_cmd.set_app_val.status = AVRC_STS_NO_ERROR; in change_player_app_setting()
4861 avrc_cmd.set_app_val.num_val = num_attrib; in change_player_app_setting()
4862 avrc_cmd.set_app_val.pdu = AVRC_PDU_SET_PLAYER_APP_VALUE; in change_player_app_setting()
4863 avrc_cmd.set_app_val.p_vals = in change_player_app_setting()
4866 avrc_cmd.set_app_val.p_vals[count].attr_id = attrib_ids[count]; in change_player_app_setting()
4867 avrc_cmd.set_app_val.p_vals[count].attr_val = attrib_vals[count]; in change_player_app_setting()
4870 bt_status_t st = build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_CTRL, p_dev); in change_player_app_setting()
4871 osi_free_and_reset((void**)&avrc_cmd.set_app_val.p_vals); in change_player_app_setting()
4891 tAVRC_COMMAND avrc_cmd = {0}; in play_item_cmd() local
4892 avrc_cmd.pdu = AVRC_PDU_PLAY_ITEM; in play_item_cmd()
4893 avrc_cmd.play_item.opcode = AVRC_OP_VENDOR; in play_item_cmd()
4894 avrc_cmd.play_item.status = AVRC_STS_NO_ERROR; in play_item_cmd()
4895 avrc_cmd.play_item.scope = scope; in play_item_cmd()
4896 memcpy(avrc_cmd.play_item.uid, uid, AVRC_UID_SIZE); in play_item_cmd()
4897 avrc_cmd.play_item.uid_counter = uid_counter; in play_item_cmd()
4899 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_CTRL, p_dev); in play_item_cmd()
4916 tAVRC_COMMAND avrc_cmd = {0}; in get_player_app_setting_attr_text_cmd() local
4917 avrc_cmd.pdu = AVRC_PDU_GET_PLAYER_APP_ATTR_TEXT; in get_player_app_setting_attr_text_cmd()
4918 avrc_cmd.get_app_attr_txt.opcode = AVRC_OP_VENDOR; in get_player_app_setting_attr_text_cmd()
4919 avrc_cmd.get_app_attr_txt.num_attr = num_attrs; in get_player_app_setting_attr_text_cmd()
4922 avrc_cmd.get_app_attr_txt.attrs[count] = attrs[count]; in get_player_app_setting_attr_text_cmd()
4925 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in get_player_app_setting_attr_text_cmd()
4942 tAVRC_COMMAND avrc_cmd = {0}; in get_player_app_setting_value_text_cmd() local
4943 avrc_cmd.pdu = AVRC_PDU_GET_PLAYER_APP_VALUE_TEXT; in get_player_app_setting_value_text_cmd()
4944 avrc_cmd.get_app_val_txt.opcode = AVRC_OP_VENDOR; in get_player_app_setting_value_text_cmd()
4945 avrc_cmd.get_app_val_txt.num_val = num_vals; in get_player_app_setting_value_text_cmd()
4948 avrc_cmd.get_app_val_txt.vals[count] = vals[count]; in get_player_app_setting_value_text_cmd()
4951 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in get_player_app_setting_value_text_cmd()
4970 tAVRC_COMMAND avrc_cmd = {0}; in register_notification_cmd() local
4971 avrc_cmd.reg_notif.opcode = AVRC_OP_VENDOR; in register_notification_cmd()
4972 avrc_cmd.reg_notif.status = AVRC_STS_NO_ERROR; in register_notification_cmd()
4973 avrc_cmd.reg_notif.event_id = event_id; in register_notification_cmd()
4974 avrc_cmd.reg_notif.pdu = AVRC_PDU_REGISTER_NOTIFICATION; in register_notification_cmd()
4975 avrc_cmd.reg_notif.param = event_value; in register_notification_cmd()
4978 tAVRC_STS status = AVRC_BldCommand(&avrc_cmd, &p_msg); in register_notification_cmd()
5012 tAVRC_COMMAND avrc_cmd = {0}; in get_element_attribute_cmd() local
5013 avrc_cmd.get_elem_attrs.opcode = AVRC_OP_VENDOR; in get_element_attribute_cmd()
5014 avrc_cmd.get_elem_attrs.status = AVRC_STS_NO_ERROR; in get_element_attribute_cmd()
5015 avrc_cmd.get_elem_attrs.num_attr = num_attribute; in get_element_attribute_cmd()
5016 avrc_cmd.get_elem_attrs.pdu = AVRC_PDU_GET_ELEMENT_ATTR; in get_element_attribute_cmd()
5018 avrc_cmd.get_elem_attrs.attrs[count] = p_attr_ids[count]; in get_element_attribute_cmd()
5021 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in get_element_attribute_cmd()
5037 tAVRC_COMMAND avrc_cmd = {0}; in get_play_status_cmd() local
5038 avrc_cmd.get_play_status.opcode = AVRC_OP_VENDOR; in get_play_status_cmd()
5039 avrc_cmd.get_play_status.pdu = AVRC_PDU_GET_PLAY_STATUS; in get_play_status_cmd()
5040 avrc_cmd.get_play_status.status = AVRC_STS_NO_ERROR; in get_play_status_cmd()
5042 return build_and_send_vendor_cmd(&avrc_cmd, AVRC_CMD_STATUS, p_dev); in get_play_status_cmd()