From: jungsup lee Date: Tue, 21 Nov 2023 09:56:24 +0000 (+0900) Subject: daemon: Using mm-boosting api if FACTORY_PRODCUTION flag is enabled. X-Git-Tag: accepted/tizen/unified/20231122.072849^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=959cb51073377a14e531d7bb22be6f0f3e3d1424;p=platform%2Fupstream%2Fpulseaudio.git daemon: Using mm-boosting api if FACTORY_PRODCUTION flag is enabled. [Version] 15.0-27 [Issue Type] Performance Change-Id: Idb3f16abd0641280244b34226dedbdbb1c7454ca --- diff --git a/packaging/pulseaudio.spec b/packaging/pulseaudio.spec index 00fd524..dafbe64 100644 --- a/packaging/pulseaudio.spec +++ b/packaging/pulseaudio.spec @@ -4,7 +4,7 @@ Name: pulseaudio Summary: Improved Linux sound server Version: 15.0 -Release: 26 +Release: 27 Group: Multimedia/Audio License: LGPL-2.1 URL: http://pulseaudio.org diff --git a/src/pulse/util.c b/src/pulse/util.c index 73cbfc1..ad1c2df 100755 --- a/src/pulse/util.c +++ b/src/pulse/util.c @@ -387,7 +387,12 @@ static int set_cpu_boosting(const char* feature_type) { if (system_info_get_custom_bool(feature_type, &is_supported)) pa_log_error("Get %s failed", feature_type); - pa_log_info("%s is %s", feature_type, is_supported ? "supported" : "not supported"); + if (access("/tmp/FACTORY_PRODCUTION", F_OK) == 0) { + pa_log_info("FACTORY_PRODUCTION is exist, apply mm boosting"); + is_supported = true; + } + + pa_log_info("%s feature is %s", feature_type, is_supported ? "supported" : "not supported"); if (!is_supported) return -1;