From c46436faa5f97beb1ed70eea6abcce2442bb81f3 Mon Sep 17 00:00:00 2001 From: kuanyuhuang Date: Mon, 9 May 2022 11:19:43 +0000 Subject: [PATCH 01/10] A2DP enable AAC-VBR by default AAC-VBR is more prefered than AAC-CBR for A2DP playback. Bug: 200101304 Bug: 229939538 Test: dumpsys bluetooth_manager Change-Id: I8930fdf383a4bbe481371b4aa4379f554bb9bd15 --- device-cheetah.mk | 4 ++++ device-panther.mk | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/device-cheetah.mk b/device-cheetah.mk index 9bc8048..fbe7c50 100644 --- a/device-cheetah.mk +++ b/device-cheetah.mk @@ -251,3 +251,7 @@ PRODUCT_VENDOR_PROPERTIES += \ # Vibrator HAL PRODUCT_VENDOR_PROPERTIES += \ ro.vendor.vibrator.hal.chirp.enabled=1 + +# Bluetooth AAC VBR +PRODUCT_PRODUCT_PROPERTIES += \ + persist.bluetooth.a2dp_aac.vbr_supported=true diff --git a/device-panther.mk b/device-panther.mk index 2565d92..171146b 100644 --- a/device-panther.mk +++ b/device-panther.mk @@ -243,3 +243,7 @@ PRODUCT_VENDOR_PROPERTIES += \ # Vibrator HAL PRODUCT_VENDOR_PROPERTIES += \ ro.vendor.vibrator.hal.chirp.enabled=1 + +# Bluetooth AAC VBR +PRODUCT_PRODUCT_PROPERTIES += \ + persist.bluetooth.a2dp_aac.vbr_supported=true From 87f9dffa440671c34ff04fd9d22e168d3e761a0d Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Sat, 7 May 2022 18:11:07 -0700 Subject: [PATCH 02/10] Boost GPU to 572MHZ for Expensive Rendering Bug: 230427792 Bug: 222716856 Test: Build Signed-off-by: Wei Wang Change-Id: Ice6f569f1c93d03d706e099fe14420fb2da78f1b --- powerhint-cheetah-a0.json | 4 ++-- powerhint-cheetah.json | 4 ++-- powerhint-cloudripper.json | 4 ++-- powerhint-panther-a0.json | 4 ++-- powerhint-panther.json | 4 ++-- powerhint-ravenclaw.json | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/powerhint-cheetah-a0.json b/powerhint-cheetah-a0.json index 8707576..fa25d1b 100644 --- a/powerhint-cheetah-a0.json +++ b/powerhint-cheetah-a0.json @@ -105,8 +105,8 @@ "Values": [ "848000", "762000", + "572000", "471000", - "400000", "302000", "151000" ], @@ -1345,7 +1345,7 @@ "PowerHint": "EXPENSIVE_RENDERING", "Node": "GPUMinFreq", "Duration": 0, - "Value": "400000" + "Value": "572000" }, { "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT", diff --git a/powerhint-cheetah.json b/powerhint-cheetah.json index 33debac..8ef5022 100644 --- a/powerhint-cheetah.json +++ b/powerhint-cheetah.json @@ -105,8 +105,8 @@ "Values": [ "848000", "762000", + "572000", "471000", - "400000", "302000", "151000" ], @@ -1344,7 +1344,7 @@ "PowerHint": "EXPENSIVE_RENDERING", "Node": "GPUMinFreq", "Duration": 0, - "Value": "400000" + "Value": "572000" }, { "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT", diff --git a/powerhint-cloudripper.json b/powerhint-cloudripper.json index b7fc8bd..5623e5f 100644 --- a/powerhint-cloudripper.json +++ b/powerhint-cloudripper.json @@ -92,8 +92,8 @@ "Values": [ "848000", "762000", + "572000", "471000", - "400000", "302000", "151000" ], @@ -1026,7 +1026,7 @@ "PowerHint": "EXPENSIVE_RENDERING", "Node": "GPUMinFreq", "Duration": 0, - "Value": "400000" + "Value": "572000" }, { "PowerHint": "FP_BOOST", diff --git a/powerhint-panther-a0.json b/powerhint-panther-a0.json index 617473b..51e6c8a 100644 --- a/powerhint-panther-a0.json +++ b/powerhint-panther-a0.json @@ -105,8 +105,8 @@ "Values": [ "848000", "762000", + "572000", "471000", - "400000", "302000", "151000" ], @@ -1328,7 +1328,7 @@ "PowerHint": "EXPENSIVE_RENDERING", "Node": "GPUMinFreq", "Duration": 0, - "Value": "400000" + "Value": "572000" }, { "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT", diff --git a/powerhint-panther.json b/powerhint-panther.json index b3b9c25..ac8b999 100644 --- a/powerhint-panther.json +++ b/powerhint-panther.json @@ -105,8 +105,8 @@ "Values": [ "848000", "762000", + "572000", "471000", - "400000", "302000", "151000" ], @@ -1327,7 +1327,7 @@ "PowerHint": "EXPENSIVE_RENDERING", "Node": "GPUMinFreq", "Duration": 0, - "Value": "400000" + "Value": "572000" }, { "PowerHint": "THERMAL_VIRTUAL-SKIN_LIGHT", diff --git a/powerhint-ravenclaw.json b/powerhint-ravenclaw.json index 828a224..8505101 100644 --- a/powerhint-ravenclaw.json +++ b/powerhint-ravenclaw.json @@ -92,8 +92,8 @@ "Values": [ "848000", "762000", + "572000", "471000", - "400000", "302000", "151000" ], @@ -1026,7 +1026,7 @@ "PowerHint": "EXPENSIVE_RENDERING", "Node": "GPUMinFreq", "Duration": 0, - "Value": "400000" + "Value": "572000" }, { "PowerHint": "FP_BOOST", From 00a456a976aad2a76cc3df0d9b8f5a6a3bfda724 Mon Sep 17 00:00:00 2001 From: Jasmine Cha Date: Mon, 25 Apr 2022 11:55:17 +0800 Subject: [PATCH 03/10] audio: update waves related settings 1. add throttle sensor info for waves module. 2. use default custom action for unsupported projects. Bug: 230280648 Test: adb shell audio_waves_custom_actions_test Signed-off-by: Jasmine Cha Change-Id: I71aa59a43b11e7a57834e44da6793b2cfa7c76ed --- .../config/audio_platform_configuration.xml | 2 +- .../cloudripper/tuning/waves/waves_config.ini | 18 ++++++------------ .../config/audio_platform_configuration.xml | 2 +- 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/audio/cheetah/config/audio_platform_configuration.xml b/audio/cheetah/config/audio_platform_configuration.xml index 12f7f83..4ccf1a6 100644 --- a/audio/cheetah/config/audio_platform_configuration.xml +++ b/audio/cheetah/config/audio_platform_configuration.xml @@ -286,7 +286,7 @@ - + diff --git a/audio/cloudripper/tuning/waves/waves_config.ini b/audio/cloudripper/tuning/waves/waves_config.ini index 36e092a..ba12a8e 100644 --- a/audio/cloudripper/tuning/waves/waves_config.ini +++ b/audio/cloudripper/tuning/waves/waves_config.ini @@ -5,7 +5,7 @@ # Putting any value other than 1 would be equivalent to not supported. ######################################################################################################## [HAL_SUPPORTED_FEATURES] -CUSTOM_ACTION_258=1 +CUSTOM_ACTION_256=1 ######################################################################################################## # This defined the options of supported sample rates. @@ -26,9 +26,6 @@ OST_SPEAKER = 0:12,90:13,180:12,270:0|13 # This should be configured by Waves only unless platform vendor is familiar with MPS structure. ######################################################################################################## [HAL_SUPPORTED_PRESETS] -SPEAKER_MUSIC_THROTTLE= OM:1,SM:2,OST:OST_SPEAKER -SPEAKER_SAFE_MUSIC_THROTTLE = OM:10,SM:2,OST:OST_SPEAKER -SPEAKER_SAFE_CALL_THROTTLE = OM:10,SM:2,OST:OST_SPEAKER SPEAKER_MUSIC = OM:1,SM:2,OST:OST_SPEAKER SPEAKER_SAFE_MUSIC = OM:10,SM:2,OST:OST_SPEAKER SPEAKER_SAFE_CALL = OM:10,SM:2,OST:OST_SPEAKER @@ -40,7 +37,7 @@ HEADSET_MUSIC = OM:2,SM:2 # This can be configured by Waves or platform vendor. ######################################################################################################## [HAL_SUPPORTED_CONTROLS] -SPEAKER_INSTANCE = INSTANCE:1,DEV:0,SR:SR_COMMON,PRESET:SPEAKER_MUSIC|SPEAKER_SAFE_MUSIC|SPEAKER_SAFE_CALL|SPEAKER_MUSIC_THROTTLE|SPEAKER_SAFE_MUSIC_THROTTLE|SPEAKER_SAFE_CALL_THROTTLE +SPEAKER_INSTANCE = INSTANCE:1,DEV:0,SR:SR_COMMON,PRESET:SPEAKER_MUSIC|SPEAKER_SAFE_MUSIC|SPEAKER_SAFE_CALL A2DP_INSTANCE = INSTANCE:2,DEV:0,SR:SR_COMMON,PRESET:HEADSET_MUSIC USB_HEADPHONE_INSTANCE = INSTANCE:4,DEV:0,SR:SR_COMMON,PRESET:HEADSET_MUSIC @@ -55,10 +52,7 @@ AlgFxPath64=/vendor/lib64/libAlgFx_HiFi3z.so #AudioFormatSampleSize=4 #AudioFormatIncrement=8 -[CUSTOM_ACTION_258] -CASE_1=PRIORITY:0,NUMBERS:2:0|1:0,PRESET:SPEAKER_MUSIC -CASE_2=PRIORITY:1,NUMBERS:1|2|4194304:2|3|4:0,PRESET:SPEAKER_SAFE_CALL -CASE_3=PRIORITY:2,NUMBERS:1|4194304:0|1:0,PRESET:SPEAKER_SAFE_MUSIC -CASE_4=PRIORITY:3,NUMBERS:2:0|1:4,PRESET:SPEAKER_MUSIC_THROTTLE -CASE_5=PRIORITY:4,NUMBERS:1|2|4194304:2|3|4:4,PRESET:SPEAKER_SAFE_CALL_THROTTLE -CASE_6=PRIORITY:5,NUMBERS:1|4194304:0|1:4,PRESET:SPEAKER_SAFE_MUSIC_THROTTLE +[CUSTOM_ACTION_256] +CASE_1=PRIORITY:0,NUMBERS:2:0|1,PRESET:SPEAKER_MUSIC +CASE_2=PRIORITY:1,NUMBERS:1|2|4194304:2|3|4,PRESET:SPEAKER_SAFE_CALL +CASE_3=PRIORITY:2,NUMBERS:1|4194304:0|1,PRESET:SPEAKER_SAFE_MUSIC diff --git a/audio/panther/config/audio_platform_configuration.xml b/audio/panther/config/audio_platform_configuration.xml index 12f7f83..4ccf1a6 100644 --- a/audio/panther/config/audio_platform_configuration.xml +++ b/audio/panther/config/audio_platform_configuration.xml @@ -286,7 +286,7 @@ - + From 0fd0fc935b6beafe96d62891881c5744df45c0e2 Mon Sep 17 00:00:00 2001 From: Carter Hsu Date: Mon, 9 May 2022 14:01:53 +0800 Subject: [PATCH 04/10] audio: adjust the digitial gain for speaker-mic add mic gain on path "speaker-mic" from 0 to 22 Bug: 231909998 Test: mmap record Signed-off-by: Carter Hsu Change-Id: I66de7c52c29ec3434a5cbed1799029fa5be05f71 --- audio/cheetah/config/mixer_paths.xml | 2 +- audio/panther/config/mixer_paths.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/cheetah/config/mixer_paths.xml b/audio/cheetah/config/mixer_paths.xml index 7cccf52..33ac476 100644 --- a/audio/cheetah/config/mixer_paths.xml +++ b/audio/cheetah/config/mixer_paths.xml @@ -731,7 +731,7 @@ - + diff --git a/audio/panther/config/mixer_paths.xml b/audio/panther/config/mixer_paths.xml index 7cccf52..33ac476 100644 --- a/audio/panther/config/mixer_paths.xml +++ b/audio/panther/config/mixer_paths.xml @@ -731,7 +731,7 @@ - + From f1aa3d02b8ed5c2749e871af72bd1dbb7fa8b5b9 Mon Sep 17 00:00:00 2001 From: William Tai Date: Sun, 24 Apr 2022 10:45:30 +0800 Subject: [PATCH 05/10] display : update color data file Update disply color data for LHBM. Bug: 228919808 Test: adb shell displaycolor_service 653 Change-Id: I99066ac7e984332524494e8ab99816e678781652 --- cheetah/display_colordata_sdc-s6e3hc4_cal0.pb | Bin 1385 -> 1385 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/cheetah/display_colordata_sdc-s6e3hc4_cal0.pb b/cheetah/display_colordata_sdc-s6e3hc4_cal0.pb index c9fc154ddabe0f6738fe5ca31ff37c143899c11b..8c320c519c2315ec313b34fa9c1210930b0c5ce1 100644 GIT binary patch delta 340 zcmaFK^^$8srpN@Q4NMKp8<;;ZFJO7VvVipg>jbumwUs!;GgPIz7`d1PcoiBHv>F&0 z92%Ig8;~*iKcj+71JLjXObeJVFi&8)z%qe#1JLjdYz^!i*c&(|TQe0BQjjoNgISQU zqOHs_stdqYZD4)?wyJ^k0P6?V4QwCSHn2Zn-@tK!V*%#{&IOYNSR*I)~p@G3MYXf-f0 zI5aR}Hy~s3e?|qF2}}o=9xzP+8s5Ni0BHCIpy3=f837i)=CrlP#jhyVy!cT(gJEW)v00!B4 AQUCw| From 79e5ff31896a21a1dc3b11f52e1e2048b82a6cd2 Mon Sep 17 00:00:00 2001 From: William Tai Date: Sun, 24 Apr 2022 11:02:49 +0800 Subject: [PATCH 06/10] display : update color data file Update disply color data for LHBM. Bug: 228920164 Test: adb shell displaycolor_service 653 Change-Id: Idcc7875c86d8120d9e9b4afa03b2c72ad3f16739 --- cheetah/display_colordata_boe-nt37290_cal0.pb | Bin 1367 -> 1367 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/cheetah/display_colordata_boe-nt37290_cal0.pb b/cheetah/display_colordata_boe-nt37290_cal0.pb index 52df64dfd2d1dfe6944b219154d837fe6ce5523b..ddf0fd685fcd0089a3fcda92aaba839b01319a82 100644 GIT binary patch delta 267 zcmcc4b)9R1-{dvSk|GBf8<-9-H83AwZeTgU(!hFvwSjH&dzK7kp$L%wg@`~Y>p6DsZi=uVn|9lw~qYWI;QAh*_jyyw$EJ4S{0{ zX*x?E#>@0NynG7hlgZufEDe|Q`Q3?nwtL+BP^F$EaesdpyKky|5mIr?5W?Q`PBa3s z5w8j>sIrPV&`5(k Date: Sun, 24 Apr 2022 11:16:31 +0800 Subject: [PATCH 07/10] display : update color data file Update disply color data for LHBM. Bug: 228920395 Test: adb shell displaycolor_service 653 Change-Id: I02763f8fd204c16f545ad86c87e1c5584c69f15f --- panther/display_colordata_dev_cal0.pb | Bin 1426 -> 1426 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/panther/display_colordata_dev_cal0.pb b/panther/display_colordata_dev_cal0.pb index 7f2691455fca694d668937c2464fc338e2b5bebe..b88b27c5b758676ab4548f3aa86a072b3d45222a 100644 GIT binary patch literal 1426 zcmd7Rzi!h|6vuJ=C$)VY$By&QasF8>NLC~or!j)5AS5=#%od1KA(ccTWnjA#NK9ve z`M|<@5ij6JIFE22;l2U5nP@8{wp3?1<5&9V$DY|*pe0)B@0M?O?>A@DU0%%Bujg6g z;c~V*&a#tio#m_IQU9#i6z`T7#VUFAA=$3i=WjMeaKQW%)e|+~|YS}M?r_mQJ zwX5f=7JbzB-zPo#=Ip=kPW0PPe;TZIJe@7F@Q1-ZYfKNkgeNK2?z})<>0k(h3~mZj znoy$}9MKV2$^u*3+$kN-O2*yN<#noqM;g1E_Ia)e_!#tBWr+Y}SurkM1X!K~S0KF#vQ4YgCH3BA;LQwFRa&4u_tF2wCaf>W&ldWuWlp~mA!d0%QtGe)%CmO1OzVtDW s0XAh5Lm6UAwy-VR*pVIV$}aX~4gtLTy2N1#t4H>92-B-TSqtAJ4DZY{@skfQG+`L|$j5m2PUA~xR^}F-Q z;wa0Gvt^bqihI#Xu_|88&x=L!{7tf6F3(O^MRLAgpFPx`+1UFt$e zp$sX4m}2Nr5Bk)H0S#bCLm1JhOoHna6JMv8om!UX*%qEKKt0<1_m5plbhJ$7Ph&K9qwS4yBKna z5l0wvj6LpQpZhrA0S Date: Tue, 3 May 2022 17:25:39 +0800 Subject: [PATCH 08/10] Disable packing when app launch Task packing may hurt app launch time, so disable it when app launch. Bug: 201259891 Test: hint works Change-Id: Ia28e96a25bbb82c74a3c9761a89683b2cc05938c --- powerhint-cheetah-a0.json | 27 +++++++++++++++++++++++++++ powerhint-cheetah.json | 27 +++++++++++++++++++++++++++ powerhint-cloudripper.json | 21 +++++++++++++++++++++ powerhint-panther-a0.json | 27 +++++++++++++++++++++++++++ powerhint-panther.json | 27 +++++++++++++++++++++++++++ powerhint-ravenclaw.json | 21 +++++++++++++++++++++ 6 files changed, 150 insertions(+) diff --git a/powerhint-cheetah-a0.json b/powerhint-cheetah-a0.json index fa25d1b..97e7ae2 100644 --- a/powerhint-cheetah-a0.json +++ b/powerhint-cheetah-a0.json @@ -256,6 +256,15 @@ ], "ResetOnInit": true }, + { + "Name": "NPITaskPacking", + "Path": "/proc/vendor_sched/npi_packing", + "Values": [ + "0", + "1" + ], + "ResetOnInit": true + }, { "Name": "DisplayWakeup", "Path": "/sys/devices/platform/1c240000.drmdecon/early_wakeup", @@ -539,6 +548,12 @@ "Duration": 5000, "Value": "3172000" }, + { + "PowerHint": "LAUNCH", + "Node": "NPITaskPacking", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "MemFreq", @@ -587,6 +602,12 @@ "Duration": 1000, "Value": "4-7" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "NPITaskPacking", + "Duration": 1000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH_EXTENDED", "Node": "CPUBigClusterMaxFreq", @@ -605,6 +626,12 @@ "Duration": 2000, "Value": "9999999" }, + { + "PowerHint": "CAMERA_LAUNCH_EXTENDED", + "Node": "NPITaskPacking", + "Duration": 2000, + "Value": "0" + }, { "PowerHint": "CAMERA_THERMAL_CPU_THROTTLE", "Node": "CPUBigClusterMaxFreq", diff --git a/powerhint-cheetah.json b/powerhint-cheetah.json index 8ef5022..a4bae90 100644 --- a/powerhint-cheetah.json +++ b/powerhint-cheetah.json @@ -255,6 +255,15 @@ ], "ResetOnInit": true }, + { + "Name": "NPITaskPacking", + "Path": "/proc/vendor_sched/npi_packing", + "Values": [ + "0", + "1" + ], + "ResetOnInit": true + }, { "Name": "DisplayWakeup", "Path": "/sys/devices/platform/1c240000.drmdecon/early_wakeup", @@ -538,6 +547,12 @@ "Duration": 5000, "Value": "3172000" }, + { + "PowerHint": "LAUNCH", + "Node": "NPITaskPacking", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "MemFreq", @@ -586,6 +601,12 @@ "Duration": 1000, "Value": "4-7" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "NPITaskPacking", + "Duration": 1000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH_EXTENDED", "Node": "CPUBigClusterMaxFreq", @@ -604,6 +625,12 @@ "Duration": 2000, "Value": "9999999" }, + { + "PowerHint": "CAMERA_LAUNCH_EXTENDED", + "Node": "NPITaskPacking", + "Duration": 2000, + "Value": "0" + }, { "PowerHint": "CAMERA_THERMAL_CPU_THROTTLE", "Node": "CPUBigClusterMaxFreq", diff --git a/powerhint-cloudripper.json b/powerhint-cloudripper.json index 5623e5f..58488e4 100644 --- a/powerhint-cloudripper.json +++ b/powerhint-cloudripper.json @@ -213,6 +213,15 @@ ], "ResetOnInit": true }, + { + "Name": "NPITaskPacking", + "Path": "/proc/vendor_sched/npi_packing", + "Values": [ + "0", + "1" + ], + "ResetOnInit": true + }, { "Name": "DisplayWakeup", "Path": "/sys/devices/platform/1c240000.drmdecon/early_wakeup", @@ -396,6 +405,12 @@ "Duration": 5000, "Value": "3172000" }, + { + "PowerHint": "LAUNCH", + "Node": "NPITaskPacking", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "MemFreq", @@ -444,6 +459,12 @@ "Duration": 1000, "Value": "4-7" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "NPITaskPacking", + "Duration": 1000, + "Value": "0" + }, { "PowerHint": "CAMERA_THERMAL_CPU_THROTTLE", "Node": "CPUBigClusterMaxFreq", diff --git a/powerhint-panther-a0.json b/powerhint-panther-a0.json index 51e6c8a..a9c5604 100644 --- a/powerhint-panther-a0.json +++ b/powerhint-panther-a0.json @@ -255,6 +255,15 @@ ], "ResetOnInit": true }, + { + "Name": "NPITaskPacking", + "Path": "/proc/vendor_sched/npi_packing", + "Values": [ + "0", + "1" + ], + "ResetOnInit": true + }, { "Name": "DisplayWakeup", "Path": "/sys/devices/platform/1c240000.drmdecon/early_wakeup", @@ -527,6 +536,12 @@ "Duration": 5000, "Value": "3172000" }, + { + "PowerHint": "LAUNCH", + "Node": "NPITaskPacking", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "MemFreq", @@ -575,6 +590,12 @@ "Duration": 1000, "Value": "4-7" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "NPITaskPacking", + "Duration": 1000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH_EXTENDED", "Node": "CPUBigClusterMaxFreq", @@ -593,6 +614,12 @@ "Duration": 2000, "Value": "9999999" }, + { + "PowerHint": "CAMERA_LAUNCH_EXTENDED", + "Node": "NPITaskPacking", + "Duration": 2000, + "Value": "0" + }, { "PowerHint": "CAMERA_THERMAL_CPU_THROTTLE", "Node": "CPUBigClusterMaxFreq", diff --git a/powerhint-panther.json b/powerhint-panther.json index ac8b999..d6e2029 100644 --- a/powerhint-panther.json +++ b/powerhint-panther.json @@ -254,6 +254,15 @@ ], "ResetOnInit": true }, + { + "Name": "NPITaskPacking", + "Path": "/proc/vendor_sched/npi_packing", + "Values": [ + "0", + "1" + ], + "ResetOnInit": true + }, { "Name": "DisplayWakeup", "Path": "/sys/devices/platform/1c240000.drmdecon/early_wakeup", @@ -526,6 +535,12 @@ "Duration": 5000, "Value": "3172000" }, + { + "PowerHint": "LAUNCH", + "Node": "NPITaskPacking", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "MemFreq", @@ -574,6 +589,12 @@ "Duration": 1000, "Value": "4-7" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "NPITaskPacking", + "Duration": 1000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH_EXTENDED", "Node": "CPUBigClusterMaxFreq", @@ -592,6 +613,12 @@ "Duration": 2000, "Value": "9999999" }, + { + "PowerHint": "CAMERA_LAUNCH_EXTENDED", + "Node": "NPITaskPacking", + "Duration": 2000, + "Value": "0" + }, { "PowerHint": "CAMERA_THERMAL_CPU_THROTTLE", "Node": "CPUBigClusterMaxFreq", diff --git a/powerhint-ravenclaw.json b/powerhint-ravenclaw.json index 8505101..5199cd3 100644 --- a/powerhint-ravenclaw.json +++ b/powerhint-ravenclaw.json @@ -396,6 +396,12 @@ "Duration": 5000, "Value": "3172000" }, + { + "PowerHint": "LAUNCH", + "Node": "NPITaskPacking", + "Duration": 5000, + "Value": "0" + }, { "PowerHint": "CAMERA_LAUNCH", "Node": "MemFreq", @@ -444,6 +450,12 @@ "Duration": 1000, "Value": "4-7" }, + { + "PowerHint": "CAMERA_LAUNCH", + "Node": "NPITaskPacking", + "Duration": 1000, + "Value": "0" + }, { "PowerHint": "CAMERA_THERMAL_CPU_THROTTLE", "Node": "CPUBigClusterMaxFreq", @@ -654,6 +666,15 @@ "Duration": 0, "Value": "1" }, + { + "Name": "NPITaskPacking", + "Path": "/proc/vendor_sched/npi_packing", + "Values": [ + "0", + "1" + ], + "ResetOnInit": true + }, { "PowerHint": "CAMERA_STREAMING_EXTREME", "Node": "GPUMinFreq", From a4d7b2d49d44662dde8e49dc9a38be1bd93d470d Mon Sep 17 00:00:00 2001 From: Carter Hsu Date: Fri, 6 May 2022 14:24:24 +0800 Subject: [PATCH 09/10] audio: allow mmap-record to set dsp volume Bug: 231630423 Test: build pass Signed-off-by: Carter Hsu Change-Id: I311a292f3ab22c46417c9e62c0c5116c15368398 --- audio/cheetah/config/audio_platform_configuration.xml | 2 +- audio/panther/config/audio_platform_configuration.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/audio/cheetah/config/audio_platform_configuration.xml b/audio/cheetah/config/audio_platform_configuration.xml index 4ccf1a6..f5356bb 100644 --- a/audio/cheetah/config/audio_platform_configuration.xml +++ b/audio/cheetah/config/audio_platform_configuration.xml @@ -196,7 +196,7 @@ - + diff --git a/audio/panther/config/audio_platform_configuration.xml b/audio/panther/config/audio_platform_configuration.xml index 4ccf1a6..f5356bb 100644 --- a/audio/panther/config/audio_platform_configuration.xml +++ b/audio/panther/config/audio_platform_configuration.xml @@ -196,7 +196,7 @@ - + From 885e1840d86283fd8606e02e15c9da0a3c838293 Mon Sep 17 00:00:00 2001 From: wenchangliu Date: Fri, 6 May 2022 07:50:30 +0000 Subject: [PATCH 10/10] c10p10: Enable media performance class 13 Bug: 229938655 Bug: 231176609 Test: atest CtsMediaPerformanceClassTestCases Test: atest android.hardware.camera2.cts.ExtendedCameraCharacteristicsTest#testCameraPerfClassCharacteristics Test: atest CtsFileSystemTestCases Change-Id: Iec4eac3a3148b8ca6eefdf23151a146ab26ec596 --- device-cheetah.mk | 3 +++ device-panther.mk | 3 +++ 2 files changed, 6 insertions(+) diff --git a/device-cheetah.mk b/device-cheetah.mk index 01439b0..8f900e3 100644 --- a/device-cheetah.mk +++ b/device-cheetah.mk @@ -67,6 +67,9 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ device/google/pantah/media_profiles_cheetah.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml +# Media Performance Class 13 +PRODUCT_PROPERTY_OVERRIDES += ro.odm.build.media_performance_class=33 + # Display Config PRODUCT_COPY_FILES += \ device/google/pantah/cheetah/display_colordata_boe-nt37290_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_colordata_boe-nt37290_cal0.pb \ diff --git a/device-panther.mk b/device-panther.mk index 0ec7270..be43969 100644 --- a/device-panther.mk +++ b/device-panther.mk @@ -57,6 +57,9 @@ PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \ device/google/pantah/media_profiles_panther.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml +# Media Performance Class 13 +PRODUCT_PROPERTY_OVERRIDES += ro.odm.build.media_performance_class=33 + # Display Config PRODUCT_COPY_FILES += \ device/google/pantah/panther/display_colordata_dev_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_colordata_dev_cal0.pb