diff options
author | Chen Chen <cncn@google.com> | 2022-02-16 19:38:24 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-02-16 19:38:24 +0000 |
commit | 5cde687f02d46c1a7b2dccd1548579ece9dd573a (patch) | |
tree | b134951ee66ceaccdcfe069e9135b51676238205 /bluetooth/audio/aidl/default/LeAudioSoftwareAudioProvider.cpp | |
parent | 0f7d41913658132823980112d6f704b6489396d2 (diff) | |
parent | c92270e1d65af7fb173da090e8801ae6401f1812 (diff) |
Merge "SpatialAudio: Set low latency allowed signal at startSession The logic is that to send FREE and LOW_LATENCY to audio at startSession, if bt receives setLowLatencyModeAllowed(true) before start session. If the parameter false, or bt doesn't receive the signal at all, then bt sends FREE to audio."
Diffstat (limited to 'bluetooth/audio/aidl/default/LeAudioSoftwareAudioProvider.cpp')
-rw-r--r-- | bluetooth/audio/aidl/default/LeAudioSoftwareAudioProvider.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bluetooth/audio/aidl/default/LeAudioSoftwareAudioProvider.cpp b/bluetooth/audio/aidl/default/LeAudioSoftwareAudioProvider.cpp index 0fe205efe1..1f64b43920 100644 --- a/bluetooth/audio/aidl/default/LeAudioSoftwareAudioProvider.cpp +++ b/bluetooth/audio/aidl/default/LeAudioSoftwareAudioProvider.cpp @@ -69,7 +69,10 @@ bool LeAudioSoftwareAudioProvider::isValid(const SessionType& sessionType) { ndk::ScopedAStatus LeAudioSoftwareAudioProvider::startSession( const std::shared_ptr<IBluetoothAudioPort>& host_if, - const AudioConfiguration& audio_config, DataMQDesc* _aidl_return) { + const AudioConfiguration& audio_config, + const std::vector<LatencyMode>& latency_modes, + DataMQDesc* _aidl_return) { + latency_modes_ = latency_modes; if (audio_config.getTag() != AudioConfiguration::pcmConfig) { LOG(WARNING) << __func__ << " - Invalid Audio Configuration=" << audio_config.toString(); @@ -119,8 +122,8 @@ ndk::ScopedAStatus LeAudioSoftwareAudioProvider::startSession( } data_mq_ = std::move(temp_data_mq); - return BluetoothAudioProvider::startSession(host_if, audio_config, - _aidl_return); + return BluetoothAudioProvider::startSession( + host_if, audio_config, latency_modes, _aidl_return); } ndk::ScopedAStatus LeAudioSoftwareAudioProvider::onSessionReady( |