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>2023-02-22 18:36:54 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-02-22 18:36:54 +0000
commitc79e56f9faf756d4b0b034df7d2bf83897c4b715 (patch)
tree1d89d996f386a5e538d216b355210d13c36cf886 /audio/effect/all-versions/default/EffectsFactory.cpp
parent6a9c2aa7032c75a47258e0f6bd2b9be57e91991c (diff)
parent9f3a2e40bf3ca1e866f5c6ec774620b05a06439b (diff)
Snap for 9635940 from 9f3a2e40bf3ca1e866f5c6ec774620b05a06439b to tm-platform-release
Change-Id: I20e9bb36636437507a79f7b3dcc4bd00d8337f32
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",