OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f10e740
)
android/hal-a2dp: Add implemention of .init
author
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Thu, 14 Nov 2013 10:18:16 +0000
(12:18 +0200)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Thu, 14 Nov 2013 12:18:59 +0000
(14:18 +0200)
android/hal-a2dp.c
patch
|
blob
|
history
diff --git
a/android/hal-a2dp.c
b/android/hal-a2dp.c
index
cdb5229
..
50a36fb
100644
(file)
--- 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()