daemon: Using mm-boosting api if FACTORY_PRODCUTION flag is enabled. 70/301670/1 accepted/tizen/8.0/unified/20231122.173301
authorjungsup lee <jungsup4.lee@samsung.com>
Tue, 21 Nov 2023 09:56:24 +0000 (18:56 +0900)
committerjungsup lee <jungsup4.lee@samsung.com>
Tue, 21 Nov 2023 10:16:19 +0000 (19:16 +0900)
[Version] 15.0-25
[Issue Type] Performance

Change-Id: Idb3f16abd0641280244b34226dedbdbb1c7454ca

packaging/pulseaudio.spec
src/pulse/util.c

index aad2aec..324acde 100644 (file)
@@ -4,7 +4,7 @@
 Name:             pulseaudio
 Summary:          Improved Linux sound server
 Version:          15.0
-Release:          24
+Release:          25
 Group:            Multimedia/Audio
 License:          LGPL-2.1
 URL:              http://pulseaudio.org
index 73cbfc1..ad1c2df 100755 (executable)
@@ -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;