summaryrefslogtreecommitdiff
path: root/bluetooth/audio/aidl/default/A2dpSoftwareAudioProvider.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2022-03-08 18:50:44 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-03-08 18:50:44 +0000
commitacebb3ccd41ce737ff69a9c18d87315a38a22280 (patch)
treee2484a6526ab06a4b4938bf9b80ec252b00e6997 /bluetooth/audio/aidl/default/A2dpSoftwareAudioProvider.cpp
parentb96f3a4099fa5efb1e96c715fb706dbb7c6df8f3 (diff)
parent57d941c6635301214dbe5a05aef251aa3f5e9e50 (diff)
Merge "SpatialAudio: Export LatencyMode functions to BluetoothAudioSession" am: 26423c74aa am: 57d941c663
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2014835 Change-Id: I16ba154591d405d4865b5a1d00ae1080cb606d0c
Diffstat (limited to 'bluetooth/audio/aidl/default/A2dpSoftwareAudioProvider.cpp')
-rw-r--r--bluetooth/audio/aidl/default/A2dpSoftwareAudioProvider.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/bluetooth/audio/aidl/default/A2dpSoftwareAudioProvider.cpp b/bluetooth/audio/aidl/default/A2dpSoftwareAudioProvider.cpp
index d2f58f345b..59df3a9901 100644
--- a/bluetooth/audio/aidl/default/A2dpSoftwareAudioProvider.cpp
+++ b/bluetooth/audio/aidl/default/A2dpSoftwareAudioProvider.cpp
@@ -62,9 +62,7 @@ bool A2dpSoftwareAudioProvider::isValid(const SessionType& sessionType) {
ndk::ScopedAStatus A2dpSoftwareAudioProvider::startSession(
const std::shared_ptr<IBluetoothAudioPort>& host_if,
const AudioConfiguration& audio_config,
- const std::vector<LatencyMode>& latency_modes,
- DataMQDesc* _aidl_return) {
- latency_modes_ = latency_modes;
+ const std::vector<LatencyMode>& latency_modes, DataMQDesc* _aidl_return) {
if (audio_config.getTag() != AudioConfiguration::pcmConfig) {
LOG(WARNING) << __func__ << " - Invalid Audio Configuration="
<< audio_config.toString();
@@ -92,8 +90,8 @@ ndk::ScopedAStatus A2dpSoftwareAudioProvider::onSessionReady(
}
*_aidl_return = data_mq_->dupeDesc();
auto desc = data_mq_->dupeDesc();
- BluetoothAudioSessionReport::OnSessionStarted(session_type_, stack_iface_,
- &desc, *audio_config_);
+ BluetoothAudioSessionReport::OnSessionStarted(
+ session_type_, stack_iface_, &desc, *audio_config_, latency_modes_);
return ndk::ScopedAStatus::ok();
}
@@ -101,4 +99,4 @@ ndk::ScopedAStatus A2dpSoftwareAudioProvider::onSessionReady(
} // namespace bluetooth
} // namespace hardware
} // namespace android
-} // namespace aidl \ No newline at end of file
+} // namespace aidl