Hi Vinicius,

On 04/10/2013 02:37 PM, Vinicius Costa Gomes wrote:
From: Claudio Takahasi<[email protected]>

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 | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/src/handsfree-audio.c b/src/handsfree-audio.c
index 8fc6f93..a332f68 100644
--- a/src/handsfree-audio.c
+++ b/src/handsfree-audio.c
@@ -342,6 +342,8 @@ struct ofono_handsfree_card 
*ofono_handsfree_card_create(unsigned int vendor,

        card = g_new0(struct ofono_handsfree_card, 1);

+       card->selected_codec = HFP_CODEC_CVSD;
+
        card_list = g_slist_prepend(card_list, card);

        for (l = drivers; l; l = l->next) {

Please merge this patch with 'set_codec' implementation.

Regards,
-Denis
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to