If the device doesn't support codec negotiation, the selected codec is
not being initialized. For this case set CVSD as default.
---
src/handsfree-audio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/handsfree-audio.c b/src/handsfree-audio.c
index 0d31712..0eb5c70 100644
--- a/src/handsfree-audio.c
+++ b/src/handsfree-audio.c
@@ -348,6 +348,7 @@ struct ofono_handsfree_card
*ofono_handsfree_card_create(const char *remote,
card->remote = g_strdup(remote);
card->local = g_strdup(local);
card->data = data;
+ card->selected_codec = HFP_CODEC_CVSD;
card_list = g_slist_prepend(card_list, card);
--
1.7.11.7
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono