summaryrefslogtreecommitdiff
path: root/android/hal-a2dp.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-11-14 12:18:16 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2013-11-14 14:18:59 +0200
commitad5813bcd5fbc724782db9a56c4dfcbc2b19e98e (patch)
tree30d63e0922330b463828407b094c5041645a1d56 /android/hal-a2dp.c
parentf10e740f215d5ce667db0948db9754f42092b7c4 (diff)
downloadbluez-ad5813bcd5fbc724782db9a56c4dfcbc2b19e98e.tar.gz
android/hal-a2dp: Add implemention of .init
Diffstat (limited to 'android/hal-a2dp.c')
-rw-r--r--android/hal-a2dp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/android/hal-a2dp.c b/android/hal-a2dp.c
index cdb52290e..50a36fb98 100644
--- a/android/hal-a2dp.c
+++ b/android/hal-a2dp.c
@@ -99,13 +99,16 @@ static bt_status_t disconnect(bt_bdaddr_t *bd_addr)
static bt_status_t init(btav_callbacks_t *callbacks)
{
+ struct hal_cmd_register_module cmd;
+
DBG("");
cbs = callbacks;
- /* TODO: enable service */
+ cmd.service_id = HAL_SERVICE_ID_A2DP;
- return BT_STATUS_SUCCESS;
+ return hal_ipc_cmd(HAL_SERVICE_ID_CORE, HAL_OP_REGISTER_MODULE,
+ sizeof(cmd), &cmd, 0, NULL, NULL);
}
static void cleanup()