From 5e0dfa680e015cbbf97c98ed3450b6a2fe787ef6 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Mon, 27 Oct 2014 20:33:11 +0900 Subject: [PATCH] Fix sound lagging issue on IME [model] Kiran [binary_type] PDA [customer] OPEN [issue#] P141014-01590, P141023-01622 [problem] Touch sound is not proper for options for keyboard settings delay [cause] The priority of IME process is higher than pulseaudio [solution] The priority of IME process has been adjusted. [team] Input Framework [request] N/A [horizontal_expansion] N/A Change-Id: I22882ba9092fb58783bd08c1cbe3edaa06138f7c --- ism/src/scim.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ism/src/scim.cpp b/ism/src/scim.cpp index 09b61055..cd53a9f1 100644 --- a/ism/src/scim.cpp +++ b/ism/src/scim.cpp @@ -43,6 +43,8 @@ #include #include #include +#include +#include #define WAIT_WM #define ISF_SYSTEM_WM_READY_FILE "/tmp/.wm_ready" @@ -349,6 +351,12 @@ int main (int argc, char *argv []) std::vector::iterator it; + struct sched_param param; + param.sched_priority = 0; + + sched_setscheduler(0, SCHED_OTHER, ¶m); + setpriority (PRIO_PROCESS, getpid (), -11); + String def_frontend ("socket"); String def_config ("simple"); -- 2.34.1