Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae55731a authored by Chris Elliott's avatar Chris Elliott Committed by Scott James Remnant
Browse files

Switch to osi_getbuf.

Change-Id: I9333236a6ae7f880d45dbb40f68fb639775b49be
(cherry picked from commit dcb140e05cf25d908a4c840b0247fd56860c5911)
parent 8bace522
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -34,6 +34,8 @@
#include "bt_common.h"
#include <string.h>

#include "osi/include/allocator.h"

/*****************************************************************************
**  Constants
*****************************************************************************/
@@ -256,7 +258,7 @@ void BTA_AvStart(void)
void BTA_AvOffloadStart(tBTA_AV_HNDL hndl)
{
    BT_HDR  *p_buf;
    if ((p_buf = (BT_HDR *) GKI_getbuf(sizeof(BT_HDR))) != NULL)
    if ((p_buf = (BT_HDR *) osi_getbuf(sizeof(BT_HDR))) != NULL)
    {
        p_buf->event = BTA_AV_API_OFFLOAD_START_EVT;
        p_buf->layer_specific = hndl;
@@ -276,7 +278,7 @@ void BTA_AvOffloadStart(tBTA_AV_HNDL hndl)
void BTA_AvOffloadStartRsp(tBTA_AV_HNDL hndl, tBTA_AV_STATUS status)
{
    tBTA_AV_API_STATUS_RSP *p_buf;
    if ((p_buf = (tBTA_AV_API_STATUS_RSP *) GKI_getbuf(sizeof(tBTA_AV_API_STATUS_RSP))) != NULL)
    if ((p_buf = (tBTA_AV_API_STATUS_RSP *) osi_getbuf(sizeof(tBTA_AV_API_STATUS_RSP))) != NULL)
    {
        p_buf->hdr.event = BTA_AV_API_OFFLOAD_START_RSP_EVT;
        p_buf->hdr.layer_specific = hndl;