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:
ad5813b
)
android/hal-a2dp: Add implemention of .cleanup
author
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Thu, 14 Nov 2013 10:18:17 +0000
(12:18 +0200)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Thu, 14 Nov 2013 12:19:02 +0000
(14:19 +0200)
android/hal-a2dp.c
patch
|
blob
|
history
diff --git
a/android/hal-a2dp.c
b/android/hal-a2dp.c
index
50a36fb
..
e9fadb7
100644
(file)
--- a/
android/hal-a2dp.c
+++ b/
android/hal-a2dp.c
@@
-113,14
+113,19
@@
static bt_status_t init(btav_callbacks_t *callbacks)
static void cleanup()
{
+ struct hal_cmd_unregister_module cmd;
+
DBG("");
if (!interface_ready())
return;
- /* TODO: disable service */
-
cbs = NULL;
+
+ cmd.service_id = HAL_SERVICE_ID_A2DP;
+
+ hal_ipc_cmd(HAL_SERVICE_ID_CORE, HAL_OP_UNREGISTER_MODULE,
+ sizeof(cmd), &cmd, 0, NULL, NULL);
}
static btav_interface_t iface = {