aboutsummaryrefslogtreecommitdiff
path: root/system/service/bluetooth_interface.cc
diff options
context:
space:
mode:
authorChen Chen <cncn@google.com>2022-01-13 17:57:01 -0800
committerChen Chen <cncn@google.com>2022-01-20 17:59:59 -0800
commit31348f23ddc47bf1d54309d6f0ea0cd41c00e1be (patch)
treeb6d2518d74c36523be54cc009bde0dc05a0b1746 /system/service/bluetooth_interface.cc
parente08c6a59957172be671dc3b499e601e38ce64c17 (diff)
SpatialAudio: Provide API to allow/disallow low latency audio
Bug: 214615268 Test: Manually test signal passing from framework to bluetooth/system Tag: #feature Change-Id: If7e1706c54bc6652698b0f5d5570de13ae54b519
Diffstat (limited to 'system/service/bluetooth_interface.cc')
-rw-r--r--system/service/bluetooth_interface.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/system/service/bluetooth_interface.cc b/system/service/bluetooth_interface.cc
index ee58ef3103..155b13dc3d 100644
--- a/system/service/bluetooth_interface.cc
+++ b/system/service/bluetooth_interface.cc
@@ -584,6 +584,12 @@ static int set_dynamic_audio_buffer_size(int codec, int size) {
return btif_set_dynamic_audio_buffer_size(codec, size);
}
+static bool allow_low_latency_audio(bool allowed, const RawAddress& address) {
+ LOG_INFO("%s %s", __func__, allowed ? "true" : "false");
+ // Call HAL here
+ return true;
+}
+
EXPORT_SYMBOL bt_interface_t bluetoothInterface = {
sizeof(bluetoothInterface),
init,
@@ -622,7 +628,8 @@ EXPORT_SYMBOL bt_interface_t bluetoothInterface = {
obfuscate_address,
get_metric_id,
set_dynamic_audio_buffer_size,
- generate_local_oob_data};
+ generate_local_oob_data,
+ allow_low_latency_audio};
// callback reporting helpers