Lines Matching refs:avrc_rsp
81 #define SEND_METAMSG_RSP(index, avrc_rsp) \ argument
89 btif_rc_cb.rc_pdu_info[index].ctype, avrc_rsp); \
654 tAVRC_RESPONSE avrc_rsp = {0}; in handle_uid_changed_notification() local
655 avrc_rsp.rsp.pdu = pavrc_command->pdu; in handle_uid_changed_notification()
656 avrc_rsp.rsp.status = AVRC_STS_NO_ERROR; in handle_uid_changed_notification()
657 avrc_rsp.rsp.opcode = pavrc_command->cmd.opcode; in handle_uid_changed_notification()
659 avrc_rsp.reg_notif.event_id = pavrc_command->reg_notif.event_id; in handle_uid_changed_notification()
660 avrc_rsp.reg_notif.param.uid_counter = 0; in handle_uid_changed_notification()
662 send_metamsg_rsp(pmeta_msg->rc_handle, pmeta_msg->label, AVRC_RSP_INTERIM, &avrc_rsp); in handle_uid_changed_notification()
663 send_metamsg_rsp(pmeta_msg->rc_handle, pmeta_msg->label, AVRC_RSP_CHANGED, &avrc_rsp); in handle_uid_changed_notification()
892 tAVRC_RESPONSE avrc_rsp; in send_reject_response() local
894 memset (&avrc_rsp, 0, sizeof(tAVRC_RESPONSE)); in send_reject_response()
896 avrc_rsp.rsp.opcode = opcode_from_pdu(pdu); in send_reject_response()
897 avrc_rsp.rsp.pdu = pdu; in send_reject_response()
898 avrc_rsp.rsp.status = status; in send_reject_response()
900 if (AVRC_STS_NO_ERROR == (status = AVRC_BldResponse(rc_handle, &avrc_rsp, &p_msg)) ) in send_reject_response()
1147 tAVRC_RESPONSE avrc_rsp; in btif_rc_upstreams_evt() local
1151 memset(&(avrc_rsp.inform_charset), 0, sizeof(tAVRC_RSP)); in btif_rc_upstreams_evt()
1152 avrc_rsp.inform_charset.opcode=opcode_from_pdu(AVRC_PDU_INFORM_DISPLAY_CHARSET); in btif_rc_upstreams_evt()
1153 avrc_rsp.inform_charset.pdu=AVRC_PDU_INFORM_DISPLAY_CHARSET; in btif_rc_upstreams_evt()
1154 avrc_rsp.inform_charset.status=AVRC_STS_NO_ERROR; in btif_rc_upstreams_evt()
1155 send_metamsg_rsp(btif_rc_cb.rc_handle, label, ctype, &avrc_rsp); in btif_rc_upstreams_evt()
1282 tAVRC_RESPONSE avrc_rsp; in get_play_status_rsp() local
1284 memset(&(avrc_rsp.get_play_status), 0, sizeof(tAVRC_GET_PLAY_STATUS_RSP)); in get_play_status_rsp()
1285 avrc_rsp.get_play_status.song_len = song_len; in get_play_status_rsp()
1286 avrc_rsp.get_play_status.song_pos = song_pos; in get_play_status_rsp()
1287 avrc_rsp.get_play_status.play_status = play_status; in get_play_status_rsp()
1289 avrc_rsp.get_play_status.pdu = AVRC_PDU_GET_PLAY_STATUS; in get_play_status_rsp()
1290 avrc_rsp.get_play_status.opcode = opcode_from_pdu(AVRC_PDU_GET_PLAY_STATUS); in get_play_status_rsp()
1291 avrc_rsp.get_play_status.status = AVRC_STS_NO_ERROR; in get_play_status_rsp()
1293 SEND_METAMSG_RSP(IDX_GET_PLAY_STATUS_RSP, &avrc_rsp); in get_play_status_rsp()
1309 tAVRC_RESPONSE avrc_rsp; in get_element_attr_rsp() local
1317 avrc_rsp.get_play_status.status = AVRC_STS_BAD_PARAM; in get_element_attr_rsp()
1331 avrc_rsp.get_play_status.status = AVRC_STS_NO_ERROR; in get_element_attr_rsp()
1333 avrc_rsp.get_elem_attrs.num_attr = num_attr; in get_element_attr_rsp()
1334 avrc_rsp.get_elem_attrs.p_attrs = element_attrs; in get_element_attr_rsp()
1335 avrc_rsp.get_elem_attrs.pdu = AVRC_PDU_GET_ELEMENT_ATTR; in get_element_attr_rsp()
1336 avrc_rsp.get_elem_attrs.opcode = opcode_from_pdu(AVRC_PDU_GET_ELEMENT_ATTR); in get_element_attr_rsp()
1338 SEND_METAMSG_RSP(IDX_GET_ELEMENT_ATTR_RSP, &avrc_rsp); in get_element_attr_rsp()
1355 tAVRC_RESPONSE avrc_rsp; in register_notification_rsp() local
1363 memset(&(avrc_rsp.reg_notif), 0, sizeof(tAVRC_REG_NOTIF_RSP)); in register_notification_rsp()
1364 avrc_rsp.reg_notif.event_id = event_id; in register_notification_rsp()
1369 avrc_rsp.reg_notif.param.play_status = p_param->play_status; in register_notification_rsp()
1370 if (avrc_rsp.reg_notif.param.play_status == PLAY_STATUS_PLAYING) in register_notification_rsp()
1374 memcpy(&(avrc_rsp.reg_notif.param.track), &(p_param->track), sizeof(btrc_uid_t)); in register_notification_rsp()
1377 avrc_rsp.reg_notif.param.play_pos = p_param->song_pos; in register_notification_rsp()
1384 avrc_rsp.reg_notif.pdu = AVRC_PDU_REGISTER_NOTIFICATION; in register_notification_rsp()
1385 avrc_rsp.reg_notif.opcode = opcode_from_pdu(AVRC_PDU_REGISTER_NOTIFICATION); in register_notification_rsp()
1386 avrc_rsp.get_play_status.status = AVRC_STS_NO_ERROR; in register_notification_rsp()
1390 ((type == BTRC_NOTIFICATION_TYPE_INTERIM)?AVRC_CMD_NOTIF:AVRC_RSP_CHANGED), &avrc_rsp); in register_notification_rsp()