summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSridhar Vashist <svashist@motorola.com>2016-09-14 10:39:59 -0500
committerZach Johnson <zachoverflow@google.com>2017-04-28 18:12:56 -0700
commit274c653dc54df2667783b4b675add2cff2fb35fa (patch)
treef6d0ea7e7a193abb478f4100391fd45dcda51d91
parent9e6fd6c4c3f9731d12868523a1961538725f03c4 (diff)
downloadlibbt-274c653dc54df2667783b4b675add2cff2fb35fa.tar.gz
DO NOT MERGE ANYWHERE Revert "Fix build breakage by removing ad2p impl."
This reverts commit 3e1fc82009b434a496f920a29023426e4d16fd4f. Change-Id: Ibba51bb85b43f645a4c6826b9504d9fc90a1abe4
-rwxr-xr-xsrc/bt_vendor_brcm.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/bt_vendor_brcm.c b/src/bt_vendor_brcm.c
index 05a5bcb..12dc80b 100755
--- a/src/bt_vendor_brcm.c
+++ b/src/bt_vendor_brcm.c
@@ -123,6 +123,10 @@ static int init(const bt_vendor_callbacks_t* p_cb, unsigned char *local_bdaddr)
/* This is handed over from the stack */
memcpy(vnd_local_bd_addr, local_bdaddr, 6);
+#if (BRCM_A2DP_OFFLOAD == TRUE)
+ brcm_vnd_a2dp_init();
+#endif
+
return 0;
}
@@ -130,7 +134,7 @@ static int init(const bt_vendor_callbacks_t* p_cb, unsigned char *local_bdaddr)
/** Requested operations */
static int op(bt_vendor_opcode_t opcode, void *param)
{
- int retval = 0;
+ int retval = BT_VND_OP_RESULT_SUCCESS;
BTVNDDBG("op for %d", opcode);
@@ -225,6 +229,10 @@ static int op(bt_vendor_opcode_t opcode, void *param)
hw_epilog_process();
#endif
}
+
+ case BT_VND_OP_A2DP_OFFLOAD_START:
+ case BT_VND_OP_A2DP_OFFLOAD_STOP:
+ retval = brcm_vnd_a2dp_execute(opcode, param);
break;
}