From d53fe60449cc601cb7feac390a26635292e3028a Mon Sep 17 00:00:00 2001 From: Pointer Kung Date: Fri, 19 Jan 2024 08:47:01 +0000 Subject: [PATCH] Camera: Adjust to improve camera launch and capture performance Because F10 enabled PMU and EM for 30fps, it also needs to sync ag/19286153 and ag/20084677 to enable CDPreferIdle for CAMERA_STREAMING_STANDARD and disable PMU and EM during the capture time (also increase the boost duration from 1000ms to 2500ms) to avoid performance impact. Bug: 321164832 Test: Build pass, gca_smoke_test, CTS Change-Id: I5e40662f7e49bd381891f705621209a41ddc96d7 --- powerhint.json | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/powerhint.json b/powerhint.json index fbcc819..c89bfd5 100644 --- a/powerhint.json +++ b/powerhint.json @@ -984,21 +984,33 @@ { "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", "Node": "CPUBigClusterMaxFreq", - "Duration": 1000, + "Duration": 2500, "Value": "1826000" }, { "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", "Node": "CPUMidClusterMaxFreq", - "Duration": 1000, + "Duration": 2500, "Value": "1491000" }, { "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", "Node": "CPULittleClusterMaxFreq", - "Duration": 1000, + "Duration": 2500, "Value": "1401000" }, + { + "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", + "Node": "PMU_POLL", + "Duration": 2500, + "Value": "0" + }, + { + "PowerHint": "CAMERA_CAPTURE_CPU_THROTTLE", + "Node": "EM_Profile", + "Duration": 2500, + "Value": "default" + }, { "PowerHint": "CAMERA_SHOT", "Node": "MemFreq", @@ -1467,12 +1479,6 @@ "Duration": 0, "Value": "1" }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "CDPreferIdle", - "Duration": 0, - "Value": "0" - }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "PMU_POLL",