Lines Matching refs:avrc_rsp

80 #define SEND_METAMSG_RSP(index, avrc_rsp)                                                      \  argument
88 btif_rc_cb.rc_pdu_info[index].ctype, avrc_rsp); \
671 tAVRC_RESPONSE avrc_rsp = {0}; in handle_uid_changed_notification() local
672 avrc_rsp.rsp.pdu = pavrc_command->pdu; in handle_uid_changed_notification()
673 avrc_rsp.rsp.status = AVRC_STS_NO_ERROR; in handle_uid_changed_notification()
674 avrc_rsp.rsp.opcode = pavrc_command->cmd.opcode; in handle_uid_changed_notification()
676 avrc_rsp.reg_notif.event_id = pavrc_command->reg_notif.event_id; in handle_uid_changed_notification()
677 avrc_rsp.reg_notif.param.uid_counter = 0; in handle_uid_changed_notification()
679 send_metamsg_rsp(pmeta_msg->rc_handle, pmeta_msg->label, AVRC_RSP_INTERIM, &avrc_rsp); in handle_uid_changed_notification()
680 send_metamsg_rsp(pmeta_msg->rc_handle, pmeta_msg->label, AVRC_RSP_CHANGED, &avrc_rsp); in handle_uid_changed_notification()
909 tAVRC_RESPONSE avrc_rsp; in send_reject_response() local
911 memset (&avrc_rsp, 0, sizeof(tAVRC_RESPONSE)); in send_reject_response()
913 avrc_rsp.rsp.opcode = opcode_from_pdu(pdu); in send_reject_response()
914 avrc_rsp.rsp.pdu = pdu; in send_reject_response()
915 avrc_rsp.rsp.status = status; in send_reject_response()
917 if (AVRC_STS_NO_ERROR == (status = AVRC_BldResponse(rc_handle, &avrc_rsp, &p_msg)) ) in send_reject_response()
1164 tAVRC_RESPONSE avrc_rsp; in btif_rc_upstreams_evt() local
1168 memset(&(avrc_rsp.inform_charset), 0, sizeof(tAVRC_RSP)); in btif_rc_upstreams_evt()
1169 avrc_rsp.inform_charset.opcode=opcode_from_pdu(AVRC_PDU_INFORM_DISPLAY_CHARSET); in btif_rc_upstreams_evt()
1170 avrc_rsp.inform_charset.pdu=AVRC_PDU_INFORM_DISPLAY_CHARSET; in btif_rc_upstreams_evt()
1171 avrc_rsp.inform_charset.status=AVRC_STS_NO_ERROR; in btif_rc_upstreams_evt()
1172 send_metamsg_rsp(btif_rc_cb.rc_handle, label, ctype, &avrc_rsp); in btif_rc_upstreams_evt()
1299 tAVRC_RESPONSE avrc_rsp; in get_play_status_rsp() local
1301 memset(&(avrc_rsp.get_play_status), 0, sizeof(tAVRC_GET_PLAY_STATUS_RSP)); in get_play_status_rsp()
1302 avrc_rsp.get_play_status.song_len = song_len; in get_play_status_rsp()
1303 avrc_rsp.get_play_status.song_pos = song_pos; in get_play_status_rsp()
1304 avrc_rsp.get_play_status.play_status = play_status; in get_play_status_rsp()
1306 avrc_rsp.get_play_status.pdu = AVRC_PDU_GET_PLAY_STATUS; in get_play_status_rsp()
1307 avrc_rsp.get_play_status.opcode = opcode_from_pdu(AVRC_PDU_GET_PLAY_STATUS); in get_play_status_rsp()
1308 avrc_rsp.get_play_status.status = AVRC_STS_NO_ERROR; in get_play_status_rsp()
1310 SEND_METAMSG_RSP(IDX_GET_PLAY_STATUS_RSP, &avrc_rsp); in get_play_status_rsp()
1326 tAVRC_RESPONSE avrc_rsp; in get_element_attr_rsp() local
1334 avrc_rsp.get_play_status.status = AVRC_STS_BAD_PARAM; in get_element_attr_rsp()
1348 avrc_rsp.get_play_status.status = AVRC_STS_NO_ERROR; in get_element_attr_rsp()
1350 avrc_rsp.get_elem_attrs.num_attr = num_attr; in get_element_attr_rsp()
1351 avrc_rsp.get_elem_attrs.p_attrs = element_attrs; in get_element_attr_rsp()
1352 avrc_rsp.get_elem_attrs.pdu = AVRC_PDU_GET_ELEMENT_ATTR; in get_element_attr_rsp()
1353 avrc_rsp.get_elem_attrs.opcode = opcode_from_pdu(AVRC_PDU_GET_ELEMENT_ATTR); in get_element_attr_rsp()
1355 SEND_METAMSG_RSP(IDX_GET_ELEMENT_ATTR_RSP, &avrc_rsp); in get_element_attr_rsp()
1372 tAVRC_RESPONSE avrc_rsp; in register_notification_rsp() local
1380 memset(&(avrc_rsp.reg_notif), 0, sizeof(tAVRC_REG_NOTIF_RSP)); in register_notification_rsp()
1381 avrc_rsp.reg_notif.event_id = event_id; in register_notification_rsp()
1386 avrc_rsp.reg_notif.param.play_status = p_param->play_status; in register_notification_rsp()
1387 if (avrc_rsp.reg_notif.param.play_status == PLAY_STATUS_PLAYING) in register_notification_rsp()
1391 memcpy(&(avrc_rsp.reg_notif.param.track), &(p_param->track), sizeof(btrc_uid_t)); in register_notification_rsp()
1394 avrc_rsp.reg_notif.param.play_pos = p_param->song_pos; in register_notification_rsp()
1401 avrc_rsp.reg_notif.pdu = AVRC_PDU_REGISTER_NOTIFICATION; in register_notification_rsp()
1402 avrc_rsp.reg_notif.opcode = opcode_from_pdu(AVRC_PDU_REGISTER_NOTIFICATION); in register_notification_rsp()
1403 avrc_rsp.get_play_status.status = AVRC_STS_NO_ERROR; in register_notification_rsp()
1407 ((type == BTRC_NOTIFICATION_TYPE_INTERIM)?AVRC_CMD_NOTIF:AVRC_RSP_CHANGED), &avrc_rsp); in register_notification_rsp()