From e84bd27b997e8910fe1293b4c982c8fe21257248 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Tue, 10 Sep 2013 21:09:42 -0300 Subject: [PATCH] handsfree-audio: Set socket parameters In the AG case, the voice setting needs to be set before we can use Transparent SCO mode, which is necessary for Wideband speech support. --- src/handsfree-audio.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/handsfree-audio.c b/src/handsfree-audio.c index 9604191..e1894ef 100644 --- a/src/handsfree-audio.c +++ b/src/handsfree-audio.c @@ -478,6 +478,11 @@ int ofono_handsfree_card_connect_sco(struct ofono_handsfree_card *card) addr.sco_family = AF_BLUETOOTH; bt_str2ba(card->remote, &addr.sco_bdaddr); + if (apply_settings_from_codec(sk, card->selected_codec) == FALSE) { + close(sk); + return -1; + } + ret = connect(sk, (struct sockaddr *) &addr, sizeof(addr)); if (ret < 0 && errno != EINPROGRESS) { close(sk); -- 2.7.4