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

Commit 75313b0a authored by Jeremy Wu's avatar Jeremy Wu
Browse files

HfpClientInterface: fix decoder client suspend

|Decode::CancelStreamingRequest| should propagate the event to the
decoder interface, rather than to the encoder interface.

Bug: 349290628
Bug: 315234036
Flag: com::android::bluetooth::flags::is_sco_managed_by_audio and HFP
Test: atest --host bluetooth-test-audio-hal-hfp-client-interface
Change-Id: Ib644c143ca88437519371e9a7cb3a03685b64d7b
parent db95abe4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -206,7 +206,7 @@ void HfpClientInterface::Decode::CancelStreamingRequest() {
      return;
    case aidl::hfp::HFP_CTRL_CMD_SUSPEND:
      log::info("suspends");
      aidl::hfp::HfpEncodingTransport::software_hal_interface->StreamSuspended(
      aidl::hfp::HfpDecodingTransport::software_hal_interface->StreamSuspended(
              aidl::BluetoothAudioCtrlAck::SUCCESS_FINISHED);
      instance->ResetPendingCmd();
      return;