Parent: 87b332e34c711ab01e9b573f04ae35ec11263619
Author: Peter Hurley <peter@hurleysoftware.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2011-08-22 10:49:02
Tree: d28c8516e67a6ad996d2fc172d3c9dc106f18810
Increase timeout before initiating AVDTP connection AVDTP_CONNECT_TIMEOUT controls the delay between HSP/HFP connection establishment and AVDTP signal channel establishment. The original value of 1 sec. is too short to avoid racing for AVDTP connection establishment (eg., if the device continues to configure the HFP service level connection with additional AT cmds). Some devices have broken AVDTP implementations that just cannot handle the race conditions that arise if both devices are attempting stream establishment at the same time. However, these conditions arise only when the remote device is the ACL initiator (and in practice, the RFCOMM initiator as well). This fix bumps out the timeout value only when the headset has initiated the link.
Diffstat
| M | audio/device.c | | | 9 | ++++++++- |
| M | audio/headset.c | | | 17 | +++++++++++++++++ |
| M | audio/headset.h | | | 4 | ++++ |
| M | audio/manager.c | | | 1 | + |
4 files changed, 30 insertions(+), 1 deletions(-)