Camera: Enable optimized TNR frequency and create TNR low power hint.

Bug: 298595475
Test: adb shell cat cur_freq, GCA, CTS
Change-Id: I3561ad6a49dd0a10374ba991b73689ae3f85ff96
This commit is contained in:
Mao Lee 2023-09-01 07:57:46 +00:00
parent 9e717a6017
commit b56fbef0af
2 changed files with 18 additions and 1 deletions

View file

@ -64,8 +64,9 @@ PRODUCT_COPY_FILES += \
device/google/akita/media_profiles_akita.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.camera.extended_launch_boost=1 \
persist.vendor.camera.adjust_backend_min_freq_for_video_120fps=1 \
persist.vendor.camera.extended_launch_boost=1 \
persist.vendor.camera.optimized_tnr_freq=1 \
vendor.camera.debug.enable_software_post_sharpen_node=false \
vendor.camera.allow_sensor_binning_aspect_ratio_to_override_itp_output=false

View file

@ -430,6 +430,16 @@
],
"ResetOnInit": true
},
{
"Name": "TNRMaxFreq",
"Path": "/sys/devices/platform/17000060.devfreq_tnr/devfreq/17000060.devfreq_tnr/max_freq",
"Values": [
"664000",
"111000"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{
"Name": "TNRFreq",
"Path": "/sys/devices/platform/17000060.devfreq_tnr/devfreq/17000060.devfreq_tnr/min_freq",
@ -1909,6 +1919,12 @@
"Duration": 0,
"Value": "302000"
},
{
"PowerHint": "CAMERA_TNR_LOW",
"Node": "TNRMaxFreq",
"Duration": 0,
"Value": "111000"
},
{
"PowerHint": "CAMERA_ADJUST_BACKEND_MIN_FREQ",
"Node": "INTCAMFreq",