commit | f2b4a1864462c2e4c7f64c71b70aeb2d99f83df3 | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Tue Mar 26 18:04:29 2024 -0700 |
committer | Andy Hung <hunga@google.com> | Thu Jun 13 14:59:21 2024 -0700 |
tree | 6a2e2e6ac64c40789bf66172b97b1fc3439af817 | |
parent | bfbb157f3f1d4cc680431b034b204f31f64df8a0 [diff] [blame] |
audio: Enable RT priority inheritance for service clients Useful for game, XR, spatialization clients. Test: compiles Bug: 331498867 Merged-In: I48d2120338d2d9bdf3c01dc1546937c3dc7aaba9 Change-Id: I48d2120338d2d9bdf3c01dc1546937c3dc7aaba9
diff --git a/services/audioflinger/Effects.cpp b/services/audioflinger/Effects.cpp index ae55329..b407092 100644 --- a/services/audioflinger/Effects.cpp +++ b/services/audioflinger/Effects.cpp
@@ -1699,6 +1699,7 @@ { ALOGV("constructor %p client %p", this, client.get()); setMinSchedulerPolicy(SCHED_NORMAL, ANDROID_PRIORITY_AUDIO); + setInheritRt(true); if (client == 0) { return;