Make BT HAL audio threads RT
Bluetooth threads that are used in audio have deadline
requirements for glitchless playback. Those threads need to be
scheduled as RT tasks to ensure that they can meet the deadline even if
there is high system load. Use schedulerservice to request RT
scheduling.
Bug 37518404
Test: play Bluetooth audio, check for RT with systrace
Change-Id: I043a97df3d2801922b54dcbf7c700ae11a48c217
diff --git a/bluetooth/1.0/default/Android.bp b/bluetooth/1.0/default/Android.bp
index fec2264..46a4987 100644
--- a/bluetooth/1.0/default/Android.bp
+++ b/bluetooth/1.0/default/Android.bp
@@ -24,6 +24,7 @@
"vendor_interface.cc",
],
shared_libs: [
+ "android.frameworks.schedulerservice@1.0",
"android.hardware.bluetooth@1.0",
"libbase",
"libcutils",
@@ -48,6 +49,7 @@
],
export_include_dirs: ["."],
shared_libs: [
+ "android.frameworks.schedulerservice@1.0",
"liblog",
],
}
@@ -84,9 +86,11 @@
"test",
],
shared_libs: [
+ "android.frameworks.schedulerservice@1.0",
"libbase",
"libhidlbase",
"liblog",
+ "libutils",
],
static_libs: [
"android.hardware.bluetooth-async",