commit | 0a68a920ccbf94ff86ed509aedcf29b92fdce51e | [log] [tgz] |
---|---|---|
author | Chen Chen <cncn@google.com> | Tue Feb 15 18:43:26 2022 -0800 |
committer | Chen Chen <cncn@google.com> | Thu Feb 24 18:40:27 2022 +0000 |
tree | 91f1f1c18fa29a3d9b493285c534cc7363f45a61 | |
parent | 07011d9e09869b625171183c72c740cf7965a3c4 [diff] |
SpatialAudio: Init codec and buffer size from startStream() Bug: 214615268 Test: build Tag: #feature Change-Id: I26d82da0dfc82fcb6cab6b879bced8e892e8cf44
diff --git a/bluetooth/audio/aidl/aidl_api/android.hardware.bluetooth.audio/current/android/hardware/bluetooth/audio/IBluetoothAudioPort.aidl b/bluetooth/audio/aidl/aidl_api/android.hardware.bluetooth.audio/current/android/hardware/bluetooth/audio/IBluetoothAudioPort.aidl index 0033fee..d364371 100644 --- a/bluetooth/audio/aidl/aidl_api/android.hardware.bluetooth.audio/current/android/hardware/bluetooth/audio/IBluetoothAudioPort.aidl +++ b/bluetooth/audio/aidl/aidl_api/android.hardware.bluetooth.audio/current/android/hardware/bluetooth/audio/IBluetoothAudioPort.aidl
@@ -35,7 +35,7 @@ @VintfStability interface IBluetoothAudioPort { android.hardware.bluetooth.audio.PresentationPosition getPresentationPosition(); - void startStream(); + void startStream(boolean isLowLatency); void stopStream(); void suspendStream(); void updateSourceMetadata(in android.hardware.audio.common.SourceMetadata sourceMetadata);
diff --git a/bluetooth/audio/aidl/android/hardware/bluetooth/audio/IBluetoothAudioPort.aidl b/bluetooth/audio/aidl/android/hardware/bluetooth/audio/IBluetoothAudioPort.aidl index 9f8007b..4ddf645 100644 --- a/bluetooth/audio/aidl/android/hardware/bluetooth/audio/IBluetoothAudioPort.aidl +++ b/bluetooth/audio/aidl/android/hardware/bluetooth/audio/IBluetoothAudioPort.aidl
@@ -47,8 +47,11 @@ * This indicates that the caller of this method has opened the data path * and wants to start an audio stream. The caller must wait for a * IBluetoothAudioProvider.streamStarted(Status) call. + * + * @param isLowLatency true if the stream being started with the latency + * control mechanism. */ - void startStream(); + void startStream(boolean isLowLatency); /** * This indicates that the caller of this method wants to stop the audio
diff --git a/bluetooth/audio/aidl/vts/VtsHalBluetoothAudioTargetTest.cpp b/bluetooth/audio/aidl/vts/VtsHalBluetoothAudioTargetTest.cpp index 0407751..18352a0 100644 --- a/bluetooth/audio/aidl/vts/VtsHalBluetoothAudioTargetTest.cpp +++ b/bluetooth/audio/aidl/vts/VtsHalBluetoothAudioTargetTest.cpp
@@ -138,7 +138,7 @@ public: BluetoothAudioPort() {} - ndk::ScopedAStatus startStream() { return ScopedAStatus::ok(); } + ndk::ScopedAStatus startStream(bool) { return ScopedAStatus::ok(); } ndk::ScopedAStatus suspendStream() { return ScopedAStatus::ok(); }
diff --git a/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp b/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp index 7187828..e700e7e 100644 --- a/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp +++ b/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp
@@ -198,7 +198,7 @@ << " has NO session"; return false; } - auto hal_retval = stack_iface_->startStream(); + auto hal_retval = stack_iface_->startStream(false); if (!hal_retval.isOk()) { LOG(WARNING) << __func__ << " - IBluetoothAudioPort SessionType=" << toString(session_type_) << " failed";