From 3fe5163ee0d7857f43ffa4fcae3332c745718eba Mon Sep 17 00:00:00 2001 From: Michael Benedict Date: Sun, 14 Mar 2021 14:14:50 +0700 Subject: [PATCH] aidl: power-libperfmgr: Sync powerhint template with aidl hal changes * adapted from https://github.com/LineageOS/android_device_google_coral/commit/3e0c3f06a77bd6cfcca57a51b1159f9b77b28c3b Signed-off-by: Michael Benedict Change-Id: Ib97ea5b007dc5e0e650938785218aeb365d358ff --- aidl/power-libperfmgr/powerhint.json.template | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/aidl/power-libperfmgr/powerhint.json.template b/aidl/power-libperfmgr/powerhint.json.template index b3d93c26..367a02dc 100644 --- a/aidl/power-libperfmgr/powerhint.json.template +++ b/aidl/power-libperfmgr/powerhint.json.template @@ -129,7 +129,6 @@ "Name": "PowerHALMainState", "Path": "vendor.powerhal.state", "Values": [ - "CAMERA_STREAMING", "SUSTAINED_PERFORMANCE", "VR_MODE", "VR_SUSTAINED_PERFORMANCE", @@ -141,7 +140,7 @@ "Name": "PowerHALAudioState", "Path": "vendor.powerhal.audio", "Values": [ - "AUDIO_LOW_LATENCY", + "AUDIO_STREAMING_LOW_LATENCY", "" ], "Type": "Property" @@ -271,19 +270,13 @@ "Value": "44" }, { - "PowerHint": "CAMERA_STREAMING", - "Node": "PowerHALMainState", - "Duration": 0, - "Value": "CAMERA_STREAMING" - }, - { - "PowerHint": "CAMERA_STREAMING", + "PowerHint": "CAMERA_STREAMING_MID", "Node": "CPUBigClusterMaxFreq", "Duration": 0, "Value": "2016000" }, { - "PowerHint": "CAMERA_STREAMING", + "PowerHint": "CAMERA_STREAMING_MID", "Node": "CPUBigPlusClusterMaxFreq", "Duration": 0, "Value": "2016000" @@ -331,19 +324,19 @@ "Value": "44" }, { - "PowerHint": "AUDIO_STREAMING", + "PowerHint": "AUDIO_LAUNCH", "Node": "PMQoSCpuDmaLatency", "Duration": 2000, "Value": "44" }, { - "PowerHint": "AUDIO_LOW_LATENCY", + "PowerHint": "AUDIO_STREAMING_LOW_LATENCY", "Node": "PowerHALAudioState", "Duration": 0, - "Value": "AUDIO_LOW_LATENCY" + "Value": "AUDIO_STREAMING_LOW_LATENCY" }, { - "PowerHint": "AUDIO_LOW_LATENCY", + "PowerHint": "AUDIO_STREAMING_LOW_LATENCY", "Node": "PMQoSCpuDmaLatency", "Duration": 0, "Value": "44"