From: Claudio Takahasi <[email protected]>

This patch updates the handsfree audio card codec when the AG notifies
the codec for the succeeding incoming SCO connection.
---
 plugins/hfp_hf_bluez5.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plugins/hfp_hf_bluez5.c b/plugins/hfp_hf_bluez5.c
index efbb209..2279041 100644
--- a/plugins/hfp_hf_bluez5.c
+++ b/plugins/hfp_hf_bluez5.c
@@ -343,6 +343,8 @@ static void bcs_notify(GAtResult *result, gpointer 
user_data)
                /* fall through */
 
        case HFP_CODEC_CVSD:
+               ofono_handsfree_card_select_codec(hfp->card, value);
+
                /* Confirm the codec */
                sprintf(str, "AT+BCS=%d", value);
                break;
-- 
1.8.2

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to