[PATCH 1/3] android/handsfree-client: Fix for correct audio state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux