From: Luiz Augusto von Dentz Date: Tue, 14 Jan 2014 10:42:47 +0000 (+0200) Subject: audio/A2DP: Add implemention of SEP abort confirmation X-Git-Tag: android-x86-4.4-r3~5985 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d2ba4c96acc520ffbd5b97c0ef32a0c9045e6959;p=android-x86%2Fexternal-bluetooth-bluez.git audio/A2DP: Add implemention of SEP abort confirmation --- diff --git a/android/a2dp.c b/android/a2dp.c index 146abd391..9f3164ac1 100644 --- a/android/a2dp.c +++ b/android/a2dp.c @@ -923,12 +923,27 @@ static void sep_close_cfm(struct avdtp *session, struct avdtp_local_sep *sep, setup_remove_by_id(endpoint->id); } +static void sep_abort_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, + .abort = sep_abort_cfm, }; static uint8_t register_endpoint(const uint8_t *uuid, uint8_t codec,