summaryrefslogtreecommitdiff
path: root/android/a2dp.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-01-14 12:42:46 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-01-14 11:53:00 +0100
commitb0b5ef76f81fdc66bd68cb68c6e95529b1a088e2 (patch)
treece5fba993ecfd3f6fbcccd2af2d21e6071302120 /android/a2dp.c
parentf0552102b40943681d42bfa3d3adac33d214488c (diff)
downloadbluez-b0b5ef76f81fdc66bd68cb68c6e95529b1a088e2.tar.gz
audio/A2DP: Add implemention of SEP close confirmation
Diffstat (limited to 'android/a2dp.c')
-rw-r--r--android/a2dp.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/android/a2dp.c b/android/a2dp.c
index 17f7a9fa7..146abd391 100644
--- a/android/a2dp.c
+++ b/android/a2dp.c
@@ -909,11 +909,26 @@ static void sep_suspend_cfm(struct avdtp *session, struct avdtp_local_sep *sep,
setup_remove_by_id(endpoint->id);
}
+static void sep_close_cfm(struct avdtp *session, struct avdtp_local_sep *sep,
+ struct avdtp_stream *stream, struct avdtp_error *err,
+ void *user_data)
+{
+ struct a2dp_endpoint *endpoint = user_data;
+
+ DBG("");
+
+ if (err)
+ return;
+
+ setup_remove_by_id(endpoint->id);
+}
+
static struct avdtp_sep_cfm sep_cfm = {
.set_configuration = sep_setconf_cfm,
.open = sep_open_cfm,
.start = sep_start_cfm,
.suspend = sep_suspend_cfm,
+ .close = sep_close_cfm,
};
static uint8_t register_endpoint(const uint8_t *uuid, uint8_t codec,