Commit: e2d49cfa89ed397cd37eaf68e84a5832c9926263
Parent: 9d656c7a1d60b5d8f2ceeb9734f453677259fb9a
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2012-06-29 14:08:35
Tree: dd03d857da86679665a3977684946c867d961667

AVDTP: Fix disconnecting when acting as sink Usually after pairing the source will attempt to connect and create a stream, but it may never send AVDTP_START command as it is not playing anything. In the meantime the local endpoint may attempt to acquire the transport, but since it was the remote side that opened the stream instead of sending AVDTP_START the code now wait and eventually timeout. To fix this now instead of just waiting the remote to send AVDTP_START the code will attempt to send the command if nothing is received after a small timeout (1s).

Diffstat

M audio/avdtp.c | 42 +++++++++++++++++++++++++++++++- - - - - - - - - - -

1 files changed, 31 insertions(+), 11 deletions(-)

View Full Diff | Patch