commit | efb45bc7925d6eefa2a376c75dbcefe96d395f94 | [log] [tgz] |
---|---|---|
author | Mikhail Naganov <mnaganov@google.com> | Wed Mar 27 16:20:33 2024 +0000 |
committer | Android Build Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Wed Mar 27 16:20:33 2024 +0000 |
tree | 7acf6aa46934968e5ef7a43bdd46ddcdb9261048 | |
parent | c8b02ff6e7419d409c7ee0220d666508499f11f3 [diff] [blame] |
audio: Allow to inherit Binder RT priority in AIDL This option is on by default for HIDL interfaces, however in AIDL it needs to be enabled explicitly. Bug: 331469541 Test: m (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:d975a9e6ec0b6f0eeac99673b9b06e11146874ba) Merged-In: I971185a46da4222160fb04b8b77f805ef0396562 Change-Id: I971185a46da4222160fb04b8b77f805ef0396562
diff --git a/audio/aidl/default/EffectFactory.cpp b/audio/aidl/default/EffectFactory.cpp index ba5b141..e3894f9 100644 --- a/audio/aidl/default/EffectFactory.cpp +++ b/audio/aidl/default/EffectFactory.cpp
@@ -145,6 +145,7 @@ *_aidl_return = effectSp; ndk::SpAIBinder effectBinder = effectSp->asBinder(); AIBinder_setMinSchedulerPolicy(effectBinder.get(), SCHED_NORMAL, ANDROID_PRIORITY_AUDIO); + AIBinder_setInheritRt(effectBinder.get(), true); mEffectMap[std::weak_ptr<IEffect>(effectSp)] = std::make_pair(in_impl_uuid, std::move(effectBinder)); return ndk::ScopedAStatus::ok();