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:17 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2013-11-14 14:19:02 +0200
commitcfcbbf8f86282bfbf3c4c23aa3ac495b2cb31f48 (patch)
tree136b052bd05d595ea5d7d8642ca9858abc492ecd /android/hal-a2dp.c
parentad5813bcd5fbc724782db9a56c4dfcbc2b19e98e (diff)
downloadbluez-cfcbbf8f86282bfbf3c4c23aa3ac495b2cb31f48.tar.gz
android/hal-a2dp: Add implemention of .cleanup
Diffstat (limited to 'android/hal-a2dp.c')
-rw-r--r--android/hal-a2dp.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/android/hal-a2dp.c b/android/hal-a2dp.c
index 50a36fb98..e9fadb7a5 100644
--- 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 = {