commit | 393de3a0861751727e1144795f186619a64ce835 | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Tue Dec 06 16:33:20 2022 -0800 |
committer | Andy Hung <hunga@google.com> | Wed Dec 28 11:43:20 2022 -0800 |
tree | 873a50392c91862f76f3a2fc3c0257c5309a2cef | |
parent | 6e3a350cd582d88600c3cf14906b5350bc53def7 [diff] [blame] |
audioserver: Ensure minimum binder priority set Prevents binder threads from waiting as runnable and helps priority inversion on mutexes. Those issues can cause sporadic audio glitches. Test: instrumeted logging Bug: 261646227 Merged-In: Ic96f8c2f35fc1096d560b16a702392c807f0504e Change-Id: Ic96f8c2f35fc1096d560b16a702392c807f0504e
diff --git a/services/audioflinger/Effects.cpp b/services/audioflinger/Effects.cpp index fc3c07f..98829d0 100644 --- a/services/audioflinger/Effects.cpp +++ b/services/audioflinger/Effects.cpp
@@ -1756,6 +1756,7 @@ mNotifyFramesProcessed(notifyFramesProcessed) { ALOGV("constructor %p client %p", this, client.get()); + setMinSchedulerPolicy(SCHED_NORMAL, ANDROID_PRIORITY_AUDIO); if (client == 0) { return;