Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d91616bd authored by William Escande's avatar William Escande
Browse files

A2DP switch device refactor

Bluetooth stack is no longer abled to re-enable the Session.
This will be done by a re-open of the Audio data path.

Test: Manual
Tag: #refactor
Bug: 190422401
Merged-In: Ie9e9b1b0c0ed392458401995eea8d8cdd9d7401a
Change-Id: Ie9e9b1b0c0ed392458401995eea8d8cdd9d7401a
parent a31dda4e
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -271,11 +271,7 @@ void BluetoothAudioPort::SessionChangedHandler() {
  BluetoothStreamState previous_state = state_;
  LOG(INFO) << "session_changed_cb: session_type=" << toString(session_type_)
            << ", cookie=" << StringPrintf("%#hx", cookie_) << ", previous_state=" << previous_state;
  if (previous_state != BluetoothStreamState::DISABLED) {
  state_ = BluetoothStreamState::DISABLED;
  } else {
    state_ = BluetoothStreamState::STANDBY;
  }
  port_lock.unlock();
  internal_cv_.notify_all();
}