From 50f5a577e9b9559440c4ac08ace1cb2589af18ae Mon Sep 17 00:00:00 2001 From: Himanshu Rawat Date: Mon, 13 Feb 2023 21:04:07 +0000 Subject: [PATCH] Interface change for setting path for head tracking data Added two new latency modes for Audio HAL to enable Dynamic Spatial audio with LE audio, and the path through which the head tracking data has to be routed. Bug: 268568163 Test: m android.hardware.bluetooth.audio-update-api Tag: #feature Change-Id: I92b529e4eee3c862934d46164117450975e017ef --- .../android/hardware/bluetooth/audio/LatencyMode.aidl | 8 +++++--- .../android/hardware/bluetooth/audio/LatencyMode.aidl | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bluetooth/audio/aidl/aidl_api/android.hardware.bluetooth.audio/current/android/hardware/bluetooth/audio/LatencyMode.aidl b/bluetooth/audio/aidl/aidl_api/android.hardware.bluetooth.audio/current/android/hardware/bluetooth/audio/LatencyMode.aidl index 5583679412..1140f9e90b 100644 --- a/bluetooth/audio/aidl/aidl_api/android.hardware.bluetooth.audio/current/android/hardware/bluetooth/audio/LatencyMode.aidl +++ b/bluetooth/audio/aidl/aidl_api/android.hardware.bluetooth.audio/current/android/hardware/bluetooth/audio/LatencyMode.aidl @@ -34,7 +34,9 @@ package android.hardware.bluetooth.audio; @Backing(type="int") @VintfStability enum LatencyMode { - UNKNOWN = 0, - LOW_LATENCY = 1, - FREE = 2, + UNKNOWN, + LOW_LATENCY, + FREE, + DYNAMIC_SPATIAL_AUDIO_SOFTWARE, + DYNAMIC_SPATIAL_AUDIO_HARDWARE, } diff --git a/bluetooth/audio/aidl/android/hardware/bluetooth/audio/LatencyMode.aidl b/bluetooth/audio/aidl/android/hardware/bluetooth/audio/LatencyMode.aidl index 0c354f73d5..ec181c1e95 100644 --- a/bluetooth/audio/aidl/android/hardware/bluetooth/audio/LatencyMode.aidl +++ b/bluetooth/audio/aidl/android/hardware/bluetooth/audio/LatencyMode.aidl @@ -22,4 +22,6 @@ enum LatencyMode { UNKNOWN, LOW_LATENCY, FREE, + DYNAMIC_SPATIAL_AUDIO_SOFTWARE, + DYNAMIC_SPATIAL_AUDIO_HARDWARE }