diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-01-14 12:42:44 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-01-14 11:52:59 +0100 |
commit | 85dfe54a9ebbebd82a67460a35685d8754d5dd6d (patch) | |
tree | 69303c58e5899c3e2738e6cc3f18fecef37f6949 /android/a2dp.c | |
parent | a7e6f9347775292522539522c20a125a82f4dd29 (diff) | |
download | bluez-85dfe54a9ebbebd82a67460a35685d8754d5dd6d.tar.gz |
audio/A2DP: Add implemention of SEP start confirmation
Diffstat (limited to 'android/a2dp.c')
-rw-r--r-- | android/a2dp.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/android/a2dp.c b/android/a2dp.c index 59f8bf565..940cb9cf0 100644 --- a/android/a2dp.c +++ b/android/a2dp.c @@ -881,9 +881,24 @@ static void sep_open_cfm(struct avdtp *session, struct avdtp_local_sep *sep, setup_remove_by_id(endpoint->id); } +static void sep_start_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, }; static uint8_t register_endpoint(const uint8_t *uuid, uint8_t codec, |