Loading system/audio_hal_interface/client_interface.cc +21 −23 Original line number Diff line number Diff line Loading @@ -922,11 +922,6 @@ int BluetoothAudioClientInterface::StartSession_2_2() { void BluetoothAudioClientInterface::StreamStarted( const BluetoothAudioCtrlAck& ack) { if (provider_ == nullptr && provider_2_1_ == nullptr && provider_2_2_ == nullptr) { LOG(ERROR) << __func__ << ": BluetoothAudioHal nullptr"; return; } if (ack == BluetoothAudioCtrlAck::PENDING) { LOG(INFO) << __func__ << ": " << ack << " ignored"; return; Loading @@ -934,12 +929,16 @@ void BluetoothAudioClientInterface::StreamStarted( BluetoothAudioStatus status = BluetoothAudioCtrlAckToHalStatus(ack); ::android::hardware::Return<void> hidl_retval; if (provider_2_2_ != nullptr) if (provider_2_2_ != nullptr) { hidl_retval = provider_2_2_->streamStarted(status); else if (provider_2_1_ != nullptr) } else if (provider_2_1_ != nullptr) { hidl_retval = provider_2_1_->streamStarted(status); else } else if (provider_ != nullptr) { hidl_retval = provider_->streamStarted(status); } else { LOG(ERROR) << __func__ << ": BluetoothAudioHal nullptr"; return; } if (!hidl_retval.isOk()) { LOG(ERROR) << __func__ Loading @@ -949,10 +948,6 @@ void BluetoothAudioClientInterface::StreamStarted( void BluetoothAudioClientInterface::StreamSuspended( const BluetoothAudioCtrlAck& ack) { if (provider_ == nullptr) { LOG(ERROR) << __func__ << ": BluetoothAudioHal nullptr"; return; } if (ack == BluetoothAudioCtrlAck::PENDING) { LOG(INFO) << __func__ << ": " << ack << " ignored"; return; Loading @@ -960,12 +955,16 @@ void BluetoothAudioClientInterface::StreamSuspended( BluetoothAudioStatus status = BluetoothAudioCtrlAckToHalStatus(ack); ::android::hardware::Return<void> hidl_retval; if (provider_2_2_ != nullptr) if (provider_2_2_ != nullptr) { hidl_retval = provider_2_2_->streamSuspended(status); else if (provider_2_1_ != nullptr) } else if (provider_2_1_ != nullptr) { hidl_retval = provider_2_1_->streamSuspended(status); else } else if (provider_ != nullptr) { hidl_retval = provider_->streamSuspended(status); } else { LOG(ERROR) << __func__ << ": BluetoothAudioHal nullptr"; return; } if (!hidl_retval.isOk()) { LOG(ERROR) << __func__ Loading @@ -981,20 +980,19 @@ int BluetoothAudioClientInterface::EndSession() { } session_started_ = false; if (provider_2_2_ == nullptr && provider_2_1_ == nullptr && provider_ == nullptr) { LOG(ERROR) << __func__ << ": BluetoothAudioHal nullptr"; return -EINVAL; } mDataMQ = nullptr; ::android::hardware::Return<void> hidl_retval; if (provider_2_2_ != nullptr) if (provider_2_2_ != nullptr) { hidl_retval = provider_2_2_->endSession(); else if (provider_2_1_ != nullptr) } else if (provider_2_1_ != nullptr) { hidl_retval = provider_2_1_->endSession(); else } else if (provider_ != nullptr) { hidl_retval = provider_->endSession(); } else { LOG(ERROR) << __func__ << ": BluetoothAudioHal nullptr"; return -EINVAL; } if (!hidl_retval.isOk()) { LOG(ERROR) << __func__ Loading Loading
system/audio_hal_interface/client_interface.cc +21 −23 Original line number Diff line number Diff line Loading @@ -922,11 +922,6 @@ int BluetoothAudioClientInterface::StartSession_2_2() { void BluetoothAudioClientInterface::StreamStarted( const BluetoothAudioCtrlAck& ack) { if (provider_ == nullptr && provider_2_1_ == nullptr && provider_2_2_ == nullptr) { LOG(ERROR) << __func__ << ": BluetoothAudioHal nullptr"; return; } if (ack == BluetoothAudioCtrlAck::PENDING) { LOG(INFO) << __func__ << ": " << ack << " ignored"; return; Loading @@ -934,12 +929,16 @@ void BluetoothAudioClientInterface::StreamStarted( BluetoothAudioStatus status = BluetoothAudioCtrlAckToHalStatus(ack); ::android::hardware::Return<void> hidl_retval; if (provider_2_2_ != nullptr) if (provider_2_2_ != nullptr) { hidl_retval = provider_2_2_->streamStarted(status); else if (provider_2_1_ != nullptr) } else if (provider_2_1_ != nullptr) { hidl_retval = provider_2_1_->streamStarted(status); else } else if (provider_ != nullptr) { hidl_retval = provider_->streamStarted(status); } else { LOG(ERROR) << __func__ << ": BluetoothAudioHal nullptr"; return; } if (!hidl_retval.isOk()) { LOG(ERROR) << __func__ Loading @@ -949,10 +948,6 @@ void BluetoothAudioClientInterface::StreamStarted( void BluetoothAudioClientInterface::StreamSuspended( const BluetoothAudioCtrlAck& ack) { if (provider_ == nullptr) { LOG(ERROR) << __func__ << ": BluetoothAudioHal nullptr"; return; } if (ack == BluetoothAudioCtrlAck::PENDING) { LOG(INFO) << __func__ << ": " << ack << " ignored"; return; Loading @@ -960,12 +955,16 @@ void BluetoothAudioClientInterface::StreamSuspended( BluetoothAudioStatus status = BluetoothAudioCtrlAckToHalStatus(ack); ::android::hardware::Return<void> hidl_retval; if (provider_2_2_ != nullptr) if (provider_2_2_ != nullptr) { hidl_retval = provider_2_2_->streamSuspended(status); else if (provider_2_1_ != nullptr) } else if (provider_2_1_ != nullptr) { hidl_retval = provider_2_1_->streamSuspended(status); else } else if (provider_ != nullptr) { hidl_retval = provider_->streamSuspended(status); } else { LOG(ERROR) << __func__ << ": BluetoothAudioHal nullptr"; return; } if (!hidl_retval.isOk()) { LOG(ERROR) << __func__ Loading @@ -981,20 +980,19 @@ int BluetoothAudioClientInterface::EndSession() { } session_started_ = false; if (provider_2_2_ == nullptr && provider_2_1_ == nullptr && provider_ == nullptr) { LOG(ERROR) << __func__ << ": BluetoothAudioHal nullptr"; return -EINVAL; } mDataMQ = nullptr; ::android::hardware::Return<void> hidl_retval; if (provider_2_2_ != nullptr) if (provider_2_2_ != nullptr) { hidl_retval = provider_2_2_->endSession(); else if (provider_2_1_ != nullptr) } else if (provider_2_1_ != nullptr) { hidl_retval = provider_2_1_->endSession(); else } else if (provider_ != nullptr) { hidl_retval = provider_->endSession(); } else { LOG(ERROR) << __func__ << ": BluetoothAudioHal nullptr"; return -EINVAL; } if (!hidl_retval.isOk()) { LOG(ERROR) << __func__ Loading