diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-07-18 12:48:15 +0300 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-07-18 13:41:22 +0200 |
commit | d7f381df6fbf697510c094fc4f435a07e2676c63 (patch) | |
tree | 3e8aba2a9c79692248d39e2dd843d6258a929271 /android/hal-sco.c | |
parent | 946d78cd078db1a4c32dbb25108fbe8dd30f079c (diff) | |
download | bluez-d7f381df6fbf697510c094fc4f435a07e2676c63.tar.gz |
android/hal-sco: Defer SCO connection to write()
Do not return error when opening output stream if SCO is not connected
yet, we will check it later with actual out_write().
Diffstat (limited to 'android/hal-sco.c')
-rw-r--r-- | android/hal-sco.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/android/hal-sco.c b/android/hal-sco.c index 1627b833d..472c7e8e3 100644 --- a/android/hal-sco.c +++ b/android/hal-sco.c @@ -632,10 +632,8 @@ static int sco_open_output_stream(struct audio_hw_device *dev, return -EIO; } - if (ipc_connect_sco() != SCO_STATUS_SUCCESS) { - error("sco: cannot get fd"); - return -EIO; - } + if (ipc_connect_sco() != SCO_STATUS_SUCCESS) + DBG("SCO is not connected yet; get fd on write()"); out = calloc(1, sizeof(struct sco_stream_out)); if (!out) |