OSDN Git Service

android/handsfree: Start codec selection if HF send AT+BAC while codec connection
authorMarcin Kraglak <marcin.kraglak@tieto.com>
Fri, 21 Mar 2014 14:30:20 +0000 (15:30 +0100)
committerSzymon Janc <szymon.janc@tieto.com>
Fri, 21 Mar 2014 15:10:33 +0000 (16:10 +0100)
If AG receives AT+BAC in response to +BCS, refresh list of codecs
and start new codec connection. It is required in TC_AG_ACC_BV_11_I
PTS test case.

android/handsfree.c

index 4651b0d..e1bf563 100644 (file)
@@ -1278,6 +1278,9 @@ static void at_cmd_bac(struct hfp_gw_result *result, enum hfp_gw_cmd_type type,
                }
 
                hfp_gw_send_result(device.gw, HFP_RESULT_OK);
+
+               if (device.proposed_codec)
+                       select_codec(0);
                return;
        case HFP_GW_CMD_TYPE_TEST:
        case HFP_GW_CMD_TYPE_READ: