Disconnect audio state shall be set just after bt_sco_disconnect has been called. --- android/handsfree-client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/handsfree-client.c b/android/handsfree-client.c index 9818a47..b84ad79 100644 --- a/android/handsfree-client.c +++ b/android/handsfree-client.c @@ -387,6 +387,8 @@ static void handle_disconnect_audio(const void *buf, uint16_t len) } bt_sco_disconnect(sco); + set_audio_state(dev, HAL_HF_CLIENT_AUDIO_STATE_DISCONNECTED); + status = HAL_STATUS_SUCCESS; done: -- 1.8.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html