audio/avdtp: Report failure in disconnected state
authorArchie Pusaka <apusaka@chromium.org>
Thu, 5 Nov 2020 06:40:34 +0000 (14:40 +0800)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:33 +0000 (19:08 +0530)
commita508ccd2889384d076b1a2028f6a9d88dbee735f
tree9ef64d32675bb6fd75f7c80154a518a6c15025e8
parenta9ebba6823daffbc706701a7127b9411c3f2224a
audio/avdtp: Report failure in disconnected state

A2DP are relying on the disconnected state callback to do cleanup.
If failure occurs when AVDTP are already in the disconnected state,
we didn't make any transition state, therefore A2DP would miss this
event.

This patch allows the transition to disconnected state, even though
we are previously already in the disconnected state.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
profiles/audio/avdtp.c