OSDN Git Service

Stop turning on SCO audio automatically during call
authorHall Liu <hallliu@google.com>
Sat, 20 Feb 2016 01:20:08 +0000 (17:20 -0800)
committerHall Liu <hallliu@google.com>
Thu, 24 Mar 2016 18:05:24 +0000 (18:05 +0000)
Remove some code that turns on SCO audio automatically when a device
connects, since Telecom should be responsible for routing audio to
bluetooth during a call.

Bug: 22507913
Change-Id: Iabf9cb8dd77d47505e87d865f8208268d9b417b7

btif/src/btif_hf.c

index 4987bbe..cb968da 100644 (file)
@@ -1311,7 +1311,7 @@ static bt_status_t phone_state_change(int num_active, int num_held, bthf_call_st
                           __FUNCTION__);
 
         memset(&ag_res, 0, sizeof(tBTA_AG_RES_DATA));
-        ag_res.audio_handle = btif_hf_cb[idx].handle;
+        ag_res.audio_handle = BTA_AG_HANDLE_SCO_NO_CHANGE;
         /* Addition call setup with the Active call
         ** CIND response should have been updated.
         ** just open SCO conenction.