From ea20ad99c36aa29f7aaf0e085a0fe03942c7667f Mon Sep 17 00:00:00 2001 From: pointerkung Date: Thu, 13 Oct 2022 20:18:35 +0800 Subject: [PATCH] Camera: Enable optimized TNR frequency and create TNR low power hint. Bug: 243729855 Test: Build pass, GCA, check 4K60 and 240fps TNR clock frequency Change-Id: I7cede8b8518abb2b16628b6ac5964b8a0c1693d7 --- device-lynx.mk | 1 + powerhint.json | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/device-lynx.mk b/device-lynx.mk index a510697..b69e7af 100644 --- a/device-lynx.mk +++ b/device-lynx.mk @@ -217,6 +217,7 @@ PRODUCT_COPY_FILES += \ # Camera PRODUCT_PROPERTY_OVERRIDES += \ persist.vendor.camera.extended_launch_boost=1 \ + persist.vendor.camera.optimized_tnr_freq=1 \ persist.vendor.camera.raise_buf_allocation_priority=1 # Enable camera 1080P 60FPS binning mode diff --git a/powerhint.json b/powerhint.json index 272b1a4..49afd5e 100644 --- a/powerhint.json +++ b/powerhint.json @@ -342,6 +342,16 @@ ], "ResetOnInit": true }, + { + "Name": "TNRMaxFreq", + "Path": "/sys/devices/platform/17000060.devfreq_tnr/devfreq/17000060.devfreq_tnr/max_freq", + "Values": [ + "664000", + "67000" + ], + "DefaultIndex": 0, + "ResetOnInit": true + }, { "Name": "TNRFreq", "Path": "/sys/devices/platform/17000060.devfreq_tnr/devfreq/17000060.devfreq_tnr/min_freq", @@ -1249,6 +1259,12 @@ "Duration": 0, "Value": "302000" }, + { + "PowerHint": "CAMERA_TNR_LOW", + "Node": "TNRMaxFreq", + "Duration": 0, + "Value": "67000" + }, { "PowerHint": "FIXED_PERFORMANCE", "Node": "CPUBigClusterMaxFreq",