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

Commit 25cb90a7 authored by Mike J. Chen's avatar Mike J. Chen
Browse files

Fix compiler/linker errors when A2D_SC_INCLUDED is FALSE



Change-Id: I716927939c0f3090f16be4b2329ef22d9a6ca734
Signed-off-by: default avatarMike J. Chen <mjchen@google.com>
parent a8222dde
Loading
Loading
Loading
Loading
+56 −2
Original line number Diff line number Diff line
@@ -24,12 +24,13 @@
 ******************************************************************************/

#include "bt_target.h"

#if (A2D_SBC_INCLUDED == TRUE)
#include <string.h>
#include "a2d_api.h"
#include "a2d_int.h"
#include "a2d_sbc.h"
#include "bt_utils.h"

#if (A2D_SBC_INCLUDED == TRUE)

/*************************************************************************************************
 * SBC descramble code
@@ -398,4 +399,57 @@ void A2D_ParsSbcMplHdr(UINT8 *p_src, BOOLEAN *p_frag, BOOLEAN *p_start, BOOLEAN
    }
}

#else /* A2D_SBC_INCLUDED == TRUE */

void A2D_SbcChkFrInit(UINT8 *p_pkt)
{
    UNUSED(p_pkt);
}

void A2D_SbcDescramble(UINT8 *p_pkt, UINT16 len)
{
    UNUSED(p_pkt);
    UNUSED(len);
}

tA2D_STATUS A2D_BldSbcInfo(UINT8 media_type, tA2D_SBC_CIE *p_ie,
                           UINT8 *p_result)
{
    UNUSED(media_type);
    UNUSED(p_ie);
    UNUSED(p_result);
    return A2D_FAIL;
}

tA2D_STATUS A2D_ParsSbcInfo(tA2D_SBC_CIE *p_ie, UINT8 *p_info,
                            BOOLEAN for_caps)
{
    UNUSED(p_ie);
    UNUSED(p_info);
    UNUSED(for_caps);
    return A2D_FAIL;
}

void A2D_BldSbcMplHdr(UINT8 *p_dst, BOOLEAN frag, BOOLEAN start,
                      BOOLEAN last, UINT8 num)
{
    UNUSED(p_dst);
    UNUSED(frag);
    UNUSED(start);
    UNUSED(last);
    UNUSED(num);
}

void A2D_ParsSbcMplHdr(UINT8 *p_src, BOOLEAN *p_frag,
                       BOOLEAN *p_start, BOOLEAN *p_last,
                       UINT8 *p_num)
{
    UNUSED(p_src);
    UNUSED(p_frag);
    UNUSED(p_start);
    UNUSED(p_last);
    UNUSED(p_num);
}


#endif /* A2D_SBC_INCLUDED == TRUE */