diff options
author | Chen Chen <cncn@google.com> | 2022-02-24 20:17:53 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-02-24 20:17:53 +0000 |
commit | 973e5eb5582e5469341557042d40ff8754f92c11 (patch) | |
tree | d66bc89034ae3ad824a46486ad8f77e90c117772 /bluetooth | |
parent | 140062e6fb4784596acb79f729c816a82a22d2c6 (diff) | |
parent | 92fbebc89fb46ed19e705d8bc05196d8e7203dd9 (diff) |
Merge "SpatialAudio: Init codec and buffer size from startStream()" am: 3b04e113e6 am: 92fbebc89f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1989506
Change-Id: I1e686443d67be139c10733dba26e910bbc859734
Diffstat (limited to 'bluetooth')
4 files changed, 7 insertions, 4 deletions
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 0033fee41e..d364371707 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 @@ package android.hardware.bluetooth.audio; @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 9f8007beaa..4ddf645670 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 @@ interface IBluetoothAudioPort { * 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 0407751914..18352a08bd 100644 --- a/bluetooth/audio/aidl/vts/VtsHalBluetoothAudioTargetTest.cpp +++ b/bluetooth/audio/aidl/vts/VtsHalBluetoothAudioTargetTest.cpp @@ -138,7 +138,7 @@ class BluetoothAudioPort : public BnBluetoothAudioPort { 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 71878286a1..e700e7e4ef 100644 --- a/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp +++ b/bluetooth/audio/utils/aidl_session/BluetoothAudioSession.cpp @@ -198,7 +198,7 @@ bool BluetoothAudioSession::StartStream() { << " 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"; |