audio: Fix cancelling disconnect timeout
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 11 Oct 2019 12:40:04 +0000 (15:40 +0300)
committerhimanshu <h.himanshu@samsung.com>
Tue, 11 Feb 2020 08:57:59 +0000 (14:27 +0530)
commit616d2d63ceebb3e081b26a4b7f13c4c4d82c95af
tree2cc5d28a5240239c1dc696ebedc28b469b2b199a
parent9f088866ccb96ef0cb60d6f3cf39729e539f9117
audio: Fix cancelling disconnect timeout

If AVDTP session has been connected but no stream has been setup calls
to service->connect would return -EBUSY to avoid stream setup collision
but it also takes a reference to the session cancelling the disconnect
timeout and disabling the stream_setup logic that would attempt to
estabilish a stream.

Change-Id: I47a87aeb77429441b7470ff26ef9a9a2d0c54b43
Signed-off-by: himanshu <h.himanshu@samsung.com>
profiles/audio/sink.c
profiles/audio/source.c