| From 064696ede90fa13e2d84b8a79460bb8c0630487e Mon Sep 17 00:00:00 2001 |
| From: Joseph Hwang <josephsih@chromium.org> |
| Date: Tue, 19 May 2020 19:16:22 +0800 |
| Subject: [PATCH 3/3] module-bluez5-device: sleep to wait for SCO socket to be |
| ready |
| |
| --- |
| src/modules/bluetooth/module-bluez5-device.c | 3 +++ |
| 1 file changed, 3 insertions(+) |
| |
| diff --git a/src/modules/bluetooth/module-bluez5-device.c b/src/modules/bluetooth/module-bluez5-device.c |
| index b48f04273..ac83a0008 100644 |
| --- a/src/modules/bluetooth/module-bluez5-device.c |
| +++ b/src/modules/bluetooth/module-bluez5-device.c |
| @@ -1826,6 +1826,9 @@ static void thread_func(void *userdata) { |
| if (u->transport_acquired) |
| setup_stream(u); |
| |
| + // Sleep a little bit for controller to get ready. |
| + pa_msleep(1000); |
| + |
| for (;;) { |
| struct pollfd *pollfd; |
| int ret; |
| -- |
| 2.20.1 |
| |