diff options
author | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2013-04-25 16:05:17 -0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2013-04-25 17:51:59 -0500 |
commit | 856a8840520b24187b3195979803328ad20cfbd4 (patch) | |
tree | 4290df747a5fd1f780f00e914bc519a02f6a38fc /plugins | |
parent | 4b067e6ffa8adbd8468213aec7e4da804a592f50 (diff) | |
download | ofono-856a8840520b24187b3195979803328ad20cfbd4.tar.bz2 |
hfp_hf_bluez5: Enable WB only with defer_setup
When setting the SDP features, only enable wideband speech support if
the kernel has defer setup for SCO.
It is possible that even if defer setup is supported the kernel is
not able to use Transparent Mode for SCO.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/hfp_hf_bluez5.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c index 92385c5e..7c663b5c 100644 --- a/plugins/hfp_hf_bluez5.c +++ b/plugins/hfp_hf_bluez5.c @@ -638,8 +638,14 @@ static void connect_handler(DBusConnection *conn, void *user_data) { uint16_t features = HFP_SDP_HF_FEATURE_3WAY | HFP_SDP_HF_FEATURE_CLIP | - HFP_SDP_HF_FEATURE_REMOTE_VOLUME_CONTROL | - HFP_SDP_HF_FEATURE_WIDEBAND_SPEECH; + HFP_SDP_HF_FEATURE_REMOTE_VOLUME_CONTROL; + + /* + * Assuming that if defer_setup is supported, then SCO transparent + * mode is also supported + */ + if (ofono_handsfree_audio_has_defer_setup()) + features |= HFP_SDP_HF_FEATURE_WIDEBAND_SPEECH; DBG("Registering External Profile handler ..."); |