diff --git a/android/avrcp-lib.c b/android/avrcp-lib.c index 5e9bb1afb..c7b8b6ab6 100644 --- a/android/avrcp-lib.c +++ b/android/avrcp-lib.c @@ -713,7 +713,7 @@ int avrcp_register_notification(struct avrcp *session, uint8_t event, uint8_t params[5]; params[0] = event; - bt_put_be32(interval, ¶ms[1]); + put_be32(interval, ¶ms[1]); return avrcp_send_req(session, AVC_CTYPE_NOTIFY, AVC_SUBUNIT_PANEL, AVRCP_REGISTER_NOTIFICATION, @@ -915,8 +915,8 @@ int avrcp_get_play_status_rsp(struct avrcp *session, uint8_t transaction, { uint8_t pdu[9]; - bt_put_be32(position, &pdu[0]); - bt_put_be32(duration, &pdu[4]); + put_be32(position, &pdu[0]); + put_be32(duration, &pdu[4]); pdu[8] = status; return avrcp_send(session, transaction, AVC_CTYPE_STABLE, diff --git a/android/avrcp.c b/android/avrcp.c index 4f7163d84..ec981394e 100644 --- a/android/avrcp.c +++ b/android/avrcp.c @@ -180,7 +180,7 @@ static size_t write_element_text(uint8_t id, uint8_t text_len, uint8_t *text, uint16_t charset = 106; size_t len = 0; - bt_put_be32(id, pdu); + put_be32(id, pdu); pdu += 4; len += 4; diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c index 913d2be9d..1d439ecd5 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -2283,8 +2283,8 @@ static void avrcp_list_items(struct avrcp *session, uint32_t start, pdu->params[0] = player->scope; - bt_put_be32(start, &pdu->params[1]); - bt_put_be32(end, &pdu->params[5]); + put_be32(start, &pdu->params[1]); + put_be32(end, &pdu->params[5]); pdu->params[9] = 1; diff --git a/src/sdpd-request.c b/src/sdpd-request.c index 600237aa4..3e58c2206 100644 --- a/src/sdpd-request.c +++ b/src/sdpd-request.c @@ -212,7 +212,7 @@ static int extract_des(uint8_t *buf, int len, sdp_list_t **svcReqSeq, uint8_t *p memcpy(&tmp, p, sizeof(tmp)); pElem = malloc(sizeof(uint32_t)); - bt_put_be32(tmp, pElem); + put_be32(tmp, pElem); } p += sizeof(uint32_t); seqlen += sizeof(uint32_t); @@ -442,7 +442,7 @@ static int service_search_req(sdp_req_t *req, sdp_buf_t *buf) if (sdp_match_uuid(pattern, rec->pattern) > 0 && sdp_check_access(rec->handle, &req->device)) { rsp_count++; - bt_put_be32(rec->handle, pdata); + put_be32(rec->handle, pdata); pdata += sizeof(uint32_t); handleSize += sizeof(uint32_t); } diff --git a/src/sdpd-service.c b/src/sdpd-service.c index e001c3048..a90b299d1 100644 --- a/src/sdpd-service.c +++ b/src/sdpd-service.c @@ -457,7 +457,7 @@ success: update_db_timestamp(); /* Build a rsp buffer */ - bt_put_be32(rec->handle, rsp->data); + put_be32(rec->handle, rsp->data); rsp->data_size = sizeof(uint32_t); return 0;