diff options
author | 2025-03-06 23:02:54 +0000 | |
---|---|---|
committer | 2025-03-10 21:16:44 +0000 | |
commit | 8fa80c8b9528f8cf802e30ef63e763b33fc8c315 (patch) | |
tree | 5e8f94dfefb198fb8ea2bda573e72852850c5281 | |
parent | adf5df243791a7a51298851b226b0d68a17524ce (diff) |
25Q1: Remove a2dp_clear_pending_start_on_session_restart
Bug: 378524655
Test: m com.google.android.bt
Flag: com::android::bluetooth::flags::a2dp_clear_pending_start_on_session_restart
Change-Id: I6a93cba622d2b9aa4ddf92bf4e936b237a9cc57a
-rw-r--r-- | flags/a2dp.aconfig | 10 | ||||
-rw-r--r-- | system/btif/src/btif_av.cc | 10 |
2 files changed, 4 insertions, 16 deletions
diff --git a/flags/a2dp.aconfig b/flags/a2dp.aconfig index 53c056ab86..e7b9aa21b0 100644 --- a/flags/a2dp.aconfig +++ b/flags/a2dp.aconfig @@ -49,16 +49,6 @@ flag { } flag { - name: "a2dp_clear_pending_start_on_session_restart" - namespace: "bluetooth" - description: "Clear the kPendingStart flag when the audio session is restarted for codec reconfiguration" - bug: "378524655" - metadata { - purpose: PURPOSE_BUGFIX - } -} - -flag { name: "avdt_handle_suspend_cfm_bad_state" namespace: "bluetooth" description: "Close connection on AVDTP Suspend Confirmation with BAD STATE error" diff --git a/system/btif/src/btif_av.cc b/system/btif/src/btif_av.cc index e4f784a39c..101ebcc4a0 100644 --- a/system/btif/src/btif_av.cc +++ b/system/btif/src/btif_av.cc @@ -2400,12 +2400,10 @@ bool BtifAvStateMachine::StateOpened::ProcessEvent(uint32_t event, void* p_data) std::promise<void> peer_ready_promise; std::future<void> peer_ready_future = peer_ready_promise.get_future(); - if (com::android::bluetooth::flags::a2dp_clear_pending_start_on_session_restart()) { - // The stream may not be restarted without an explicit request from the - // Bluetooth Audio HAL. Any start request that was pending before the - // reconfiguration is invalidated when the session is ended. - peer_.ClearFlags(BtifAvPeer::kFlagPendingStart); - } + // The stream may not be restarted without an explicit request from the + // Bluetooth Audio HAL. Any start request that was pending before the + // reconfiguration is invalidated when the session is ended. + peer_.ClearFlags(BtifAvPeer::kFlagPendingStart); btif_a2dp_source_start_session(peer_.PeerAddress(), std::move(peer_ready_promise)); } |