Lines Matching refs:avrc_rsp
90 #define SEND_METAMSG_RSP(index, avrc_rsp) \ argument
98 btif_rc_cb.rc_pdu_info[index].ctype, avrc_rsp); \
876 tAVRC_RESPONSE avrc_rsp = {0}; in handle_uid_changed_notification() local
877 avrc_rsp.rsp.pdu = pavrc_command->pdu; in handle_uid_changed_notification()
878 avrc_rsp.rsp.status = AVRC_STS_NO_ERROR; in handle_uid_changed_notification()
879 avrc_rsp.rsp.opcode = pavrc_command->cmd.opcode; in handle_uid_changed_notification()
881 avrc_rsp.reg_notif.event_id = pavrc_command->reg_notif.event_id; in handle_uid_changed_notification()
882 avrc_rsp.reg_notif.param.uid_counter = 0; in handle_uid_changed_notification()
884 send_metamsg_rsp(pmeta_msg->rc_handle, pmeta_msg->label, AVRC_RSP_INTERIM, &avrc_rsp); in handle_uid_changed_notification()
885 send_metamsg_rsp(pmeta_msg->rc_handle, pmeta_msg->label, AVRC_RSP_CHANGED, &avrc_rsp); in handle_uid_changed_notification()
1201 tAVRC_RESPONSE avrc_rsp; in send_reject_response() local
1203 memset (&avrc_rsp, 0, sizeof(tAVRC_RESPONSE)); in send_reject_response()
1205 avrc_rsp.rsp.opcode = opcode_from_pdu(pdu); in send_reject_response()
1206 avrc_rsp.rsp.pdu = pdu; in send_reject_response()
1207 avrc_rsp.rsp.status = status; in send_reject_response()
1209 if (AVRC_STS_NO_ERROR == (status = AVRC_BldResponse(rc_handle, &avrc_rsp, &p_msg)) ) in send_reject_response()
1456 tAVRC_RESPONSE avrc_rsp; in btif_rc_upstreams_evt() local
1460 memset(&(avrc_rsp.inform_charset), 0, sizeof(tAVRC_RSP)); in btif_rc_upstreams_evt()
1461 avrc_rsp.inform_charset.opcode=opcode_from_pdu(AVRC_PDU_INFORM_DISPLAY_CHARSET); in btif_rc_upstreams_evt()
1462 avrc_rsp.inform_charset.pdu=AVRC_PDU_INFORM_DISPLAY_CHARSET; in btif_rc_upstreams_evt()
1463 avrc_rsp.inform_charset.status=AVRC_STS_NO_ERROR; in btif_rc_upstreams_evt()
1464 send_metamsg_rsp(btif_rc_cb.rc_handle, label, ctype, &avrc_rsp); in btif_rc_upstreams_evt()
1644 tAVRC_RESPONSE avrc_rsp; in get_play_status_rsp() local
1646 memset(&(avrc_rsp.get_play_status), 0, sizeof(tAVRC_GET_PLAY_STATUS_RSP)); in get_play_status_rsp()
1647 avrc_rsp.get_play_status.song_len = song_len; in get_play_status_rsp()
1648 avrc_rsp.get_play_status.song_pos = song_pos; in get_play_status_rsp()
1649 avrc_rsp.get_play_status.play_status = play_status; in get_play_status_rsp()
1651 avrc_rsp.get_play_status.pdu = AVRC_PDU_GET_PLAY_STATUS; in get_play_status_rsp()
1652 avrc_rsp.get_play_status.opcode = opcode_from_pdu(AVRC_PDU_GET_PLAY_STATUS); in get_play_status_rsp()
1653 avrc_rsp.get_play_status.status = AVRC_STS_NO_ERROR; in get_play_status_rsp()
1655 SEND_METAMSG_RSP(IDX_GET_PLAY_STATUS_RSP, &avrc_rsp); in get_play_status_rsp()
1671 tAVRC_RESPONSE avrc_rsp; in get_element_attr_rsp() local
1679 avrc_rsp.get_play_status.status = AVRC_STS_BAD_PARAM; in get_element_attr_rsp()
1693 avrc_rsp.get_play_status.status = AVRC_STS_NO_ERROR; in get_element_attr_rsp()
1695 avrc_rsp.get_elem_attrs.num_attr = num_attr; in get_element_attr_rsp()
1696 avrc_rsp.get_elem_attrs.p_attrs = element_attrs; in get_element_attr_rsp()
1697 avrc_rsp.get_elem_attrs.pdu = AVRC_PDU_GET_ELEMENT_ATTR; in get_element_attr_rsp()
1698 avrc_rsp.get_elem_attrs.opcode = opcode_from_pdu(AVRC_PDU_GET_ELEMENT_ATTR); in get_element_attr_rsp()
1700 SEND_METAMSG_RSP(IDX_GET_ELEMENT_ATTR_RSP, &avrc_rsp); in get_element_attr_rsp()
1717 tAVRC_RESPONSE avrc_rsp; in register_notification_rsp() local
1725 memset(&(avrc_rsp.reg_notif), 0, sizeof(tAVRC_REG_NOTIF_RSP)); in register_notification_rsp()
1726 avrc_rsp.reg_notif.event_id = event_id; in register_notification_rsp()
1731 avrc_rsp.reg_notif.param.play_status = p_param->play_status; in register_notification_rsp()
1732 if (avrc_rsp.reg_notif.param.play_status == PLAY_STATUS_PLAYING) in register_notification_rsp()
1736 memcpy(&(avrc_rsp.reg_notif.param.track), &(p_param->track), sizeof(btrc_uid_t)); in register_notification_rsp()
1739 avrc_rsp.reg_notif.param.play_pos = p_param->song_pos; in register_notification_rsp()
1746 avrc_rsp.reg_notif.pdu = AVRC_PDU_REGISTER_NOTIFICATION; in register_notification_rsp()
1747 avrc_rsp.reg_notif.opcode = opcode_from_pdu(AVRC_PDU_REGISTER_NOTIFICATION); in register_notification_rsp()
1748 avrc_rsp.get_play_status.status = AVRC_STS_NO_ERROR; in register_notification_rsp()
1752 ((type == BTRC_NOTIFICATION_TYPE_INTERIM)?AVRC_CMD_NOTIF:AVRC_RSP_CHANGED), &avrc_rsp); in register_notification_rsp()
3840 tAVRC_RESPONSE avrc_rsp; in set_volume_rsp() local
3846 avrc_rsp.volume.opcode = AVRC_OP_VENDOR; in set_volume_rsp()
3847 avrc_rsp.volume.pdu = AVRC_PDU_SET_ABSOLUTE_VOLUME; in set_volume_rsp()
3848 avrc_rsp.volume.status = AVRC_STS_NO_ERROR; in set_volume_rsp()
3849 avrc_rsp.volume.volume = abs_vol; in set_volume_rsp()
3850 status = AVRC_BldResponse(btif_rc_cb.rc_handle, &avrc_rsp, &p_msg); in set_volume_rsp()
3888 tAVRC_RESPONSE avrc_rsp; in volume_change_notification_rsp() local
3894 avrc_rsp.reg_notif.opcode = AVRC_OP_VENDOR; in volume_change_notification_rsp()
3895 avrc_rsp.reg_notif.pdu = AVRC_PDU_REGISTER_NOTIFICATION; in volume_change_notification_rsp()
3896 avrc_rsp.reg_notif.status = AVRC_STS_NO_ERROR; in volume_change_notification_rsp()
3897 avrc_rsp.reg_notif.param.volume = abs_vol; in volume_change_notification_rsp()
3898 avrc_rsp.reg_notif.event_id = AVRC_EVT_VOLUME_CHANGE; in volume_change_notification_rsp()
3900 status = AVRC_BldResponse(btif_rc_cb.rc_handle, &avrc_rsp, &p_msg); in volume_change_notification_rsp()