summaryrefslogtreecommitdiff
path: root/audio/effect/all-versions/default/EffectsFactory.cpp
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-12-07 00:22:17 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-12-07 00:22:17 +0000
commitc416bfa91350b6b93202bb28947117b3cbb7ff2e (patch)
tree770a65fa1c2bda2e84ea7c9339cfda7994f3ea53 /audio/effect/all-versions/default/EffectsFactory.cpp
parentc94c35e088f700af3c3a4580595a93e4e74a3505 (diff)
parent43966208b7ef50c51a58e82c6d7c10ee9e115860 (diff)
Snap for 9376496 from 43966208b7ef50c51a58e82c6d7c10ee9e115860 to tm-qpr2-release
Change-Id: I3ca51e71bc22f8c190db58515cf17494bcb89d84
Diffstat (limited to 'audio/effect/all-versions/default/EffectsFactory.cpp')
-rw-r--r--audio/effect/all-versions/default/EffectsFactory.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/effect/all-versions/default/EffectsFactory.cpp b/audio/effect/all-versions/default/EffectsFactory.cpp
index e93ad893a8..9bf309c224 100644
--- a/audio/effect/all-versions/default/EffectsFactory.cpp
+++ b/audio/effect/all-versions/default/EffectsFactory.cpp
@@ -32,6 +32,7 @@
#include <UuidUtils.h>
#include <android/log.h>
+#include <hidl/HidlTransportSupport.h>
#include <media/EffectsFactoryApi.h>
#include <system/audio_effects/effect_aec.h>
#include <system/audio_effects/effect_agc.h>
@@ -44,6 +45,7 @@
#include <system/audio_effects/effect_presetreverb.h>
#include <system/audio_effects/effect_virtualizer.h>
#include <system/audio_effects/effect_visualizer.h>
+#include <system/thread_defs.h>
#include <util/EffectUtils.h>
namespace android {
@@ -189,6 +191,7 @@ Return<void> EffectsFactory::createEffectImpl(const Uuid& uuid, int32_t session,
status = (*handle)->get_descriptor(handle, &halDescriptor);
if (status == OK) {
effect = dispatchEffectInstanceCreation(halDescriptor, handle);
+ android::hardware::setMinSchedulerPolicy(effect, SCHED_NORMAL, ANDROID_PRIORITY_AUDIO);
effectId = EffectMap::getInstance().add(handle);
} else {
ALOGE("Error querying effect descriptor for %s: %s",