From 04d3f9c903befcf338bcb9bbd38f2bb113d6d8c1 Mon Sep 17 00:00:00 2001 From: Carter Hsu Date: Wed, 7 Sep 2022 01:10:51 +0000 Subject: [PATCH 1/5] audio: enable USB clock boost on SWB voice-call Bug: 245421488 Test: build pass Signed-off-by: Carter Hsu Change-Id: I57f4b31c4afdbeede7556abc1a65adab66a7541a --- audio/lynx/config/audio_platform_configuration.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/lynx/config/audio_platform_configuration.xml b/audio/lynx/config/audio_platform_configuration.xml index 0d09371..01d1efc 100644 --- a/audio/lynx/config/audio_platform_configuration.xml +++ b/audio/lynx/config/audio_platform_configuration.xml @@ -290,7 +290,7 @@ - + From 3d70f91d8a9f24f87b63f9938ce1fa34a97ffc78 Mon Sep 17 00:00:00 2001 From: leohsieh Date: Mon, 12 Sep 2022 22:00:58 +0800 Subject: [PATCH 2/5] L10: Enable LHBM control from UDFPS HAL and ALS feed forward Bug: 246302409 Test: build and test fingerprint on device. Change-Id: Ie21192605a7c91ddd9f139096c0f6cd03bf4fc0b --- device-lynx.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/device-lynx.mk b/device-lynx.mk index 623871e..06c44f4 100644 --- a/device-lynx.mk +++ b/device-lynx.mk @@ -190,6 +190,11 @@ PRODUCT_PRODUCT_PROPERTIES += \ PRODUCT_PRODUCT_PROPERTIES += \ ro.support_one_handed_mode=true +# Fingerprint als feed forward +PRODUCT_VENDOR_PROPERTIES += \ + persist.vendor.udfps.als_feed_forward_supported=true \ + persist.vendor.udfps.lhbm_controlled_in_hal_supported=true + # Hide cutout overlays PRODUCT_PACKAGES += \ NoCutoutOverlay \ From 7ae9da19b0c578d7bc54ed5ef8a00cd24f207d6d Mon Sep 17 00:00:00 2001 From: amyhsu Date: Fri, 26 Aug 2022 06:43:48 +0000 Subject: [PATCH 3/5] display: update display_colordata_dev_cal0.pb file Update smooth display compensation tuning for EVT1.1 Bug: 224528266 Test: measure by HW Change-Id: I2a7314c83b7beafdb9b2d1e49247a219518a19c6 --- lynx/display_colordata_dev_cal0.pb | Bin 1833 -> 552 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/lynx/display_colordata_dev_cal0.pb b/lynx/display_colordata_dev_cal0.pb index b0e7493f21e3809bd39d51079235b3f16460684f..f16431b840400b727bc0bf456d4cc25eb76ad905 100644 GIT binary patch delta 135 zcmZ3P411ST+RB9p`d7OgGJTpXq*raDFjCgwuR znYp?cxtIia6&e(@8W{7^N~J^jK;W3RqZrBb-sN* zsdc>8?(xxXU3uNuX>Ql+d-dbG*KECcdD8maYB#>Nn(pC++dS=jIcr?FN9SkfZTIZ- zu-#~1yyrf=dRHBClIR_HwVnN4&-lqn-x-P3WEb2jFfZN$GiJK%nC)^S4tV52Kmih% zfFveCL=jS$TBL^3QVP?HbeLIWLU|z%l!Y=-V|AcWjp&gc7?BZ}kr`N#6=b7qKR3_y z^HKiVzO#GI#PJK$!jIxzu~(Xw{PLviS0)vI3tZzl#T1@XO!YS>C3p7sYISdaom!W@ zVISBVZpjgT$q$5kAxtb2gJhf}A{E0_lp+$9f^?K78JZz7m5CB5ff}hqn`?c2re7N~ zqi<4^Sg|$8F0#X1oFn--Pi$%j&fI|l7NCelC}9c8ScVE#U<=o&Z8GMG+9qQj)#{#C z^A6Uk#Z16bw$IJD9zW-M!kyqJrU^eeP5RKen7k%Lm3!rnx>SeSLL2I_9vZPRG?!**QERwb s+8{?C-?4Ac>}!WQK_M!TVq6SMv_#6ZOe(ZOw&=R0Z8GMG*(PKD0(`)Y4FCWD From bd7e8ead244424cca886885a087ad4398d1399bc Mon Sep 17 00:00:00 2001 From: David Chao Date: Tue, 6 Sep 2022 15:53:29 +0800 Subject: [PATCH 4/5] thermal: update thermal config Based on EVT1.0 thermal results to adjust virtual sensor formula and WLC charging throttling. - Virtual-skin version v0.5 - Switch on temp 35C, target temp 39C, spower 2000 Bug: 236562040 Test: ThermalHAL throttling worked properly Change-Id: I4fb4a5da702a9b904a7377df55f0bb362c74199d --- thermal_info_config_charge_lynx.json | 14 +++++++------- thermal_info_config_lynx.json | 22 +++++++++++----------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/thermal_info_config_charge_lynx.json b/thermal_info_config_charge_lynx.json index 20f6fd2..4cca071 100644 --- a/thermal_info_config_charge_lynx.json +++ b/thermal_info_config_charge_lynx.json @@ -62,13 +62,13 @@ "Multiplier":0.001 }, { - "Name":"VIRTUAL-NEU-QUT-DISP-SKIN1-GNSS-BATT", + "Name":"VIRTUAL-NEU-QUT-DISP-GNSS-BATT", "Type":"UNKNOWN", "Hidden":true, "VirtualSensor":true, "Formula":"WEIGHTED_AVG", - "Combination":["neutral_therm", "quiet_therm", "disp_therm", "skin_therm1", "gnss_tcxo_therm", "battery"], - "Coefficient":[0.1, 0.4, 0.15, 0.1, 0.1, 0.15], + "Combination":["neutral_therm", "quiet_therm", "disp_therm", "gnss_tcxo_therm", "battery"], + "Coefficient":[0.28, 0.42, 0.1, 0.1, 0.1], "Multiplier":0.001 }, { @@ -78,7 +78,7 @@ "VirtualSensor":true, "Formula":"WEIGHTED_AVG", "Combination":["neutral_therm", "disp_therm", "skin_therm1", "gnss_tcxo_therm", "battery"], - "Coefficient":[0.2, 0.26, 0.1, 0.19, 0.25], + "Coefficient":[0.27, 0.23, 0.1, 0.27, 0.13], "Multiplier":0.001 }, { @@ -108,7 +108,7 @@ "VirtualSensor":true, "TriggerSensor":"skin_therm1", "Formula":"MAXIMUM", - "Combination":["VIRTUAL-NEU-QUT-DISP-SKIN1-GNSS-BATT", "VIRTUAL-NEU-DISP-SKIN1-GNSS-BATT", "VIRTUAL-SKIN2-USB2-DISP-BATT", "VIRTUAL-QUT-SKIN2-USB2-DISP"], + "Combination":["VIRTUAL-NEU-QUT-DISP-GNSS-BATT", "VIRTUAL-NEU-DISP-SKIN1-GNSS-BATT", "VIRTUAL-SKIN2-USB2-DISP-BATT", "VIRTUAL-QUT-SKIN2-USB2-DISP"], "Coefficient":[1.0, 1.0, 1.0, 1.0], "HotThreshold":["NAN", 35.0, 39.0, 43.0, 45.0, 47.0, 55.0], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.9, 1.9, 1.9], @@ -152,7 +152,7 @@ "Formula":"WEIGHTED_AVG", "Combination":["skin_therm2", "usb_pwr_therm2", "disp_therm"], "Coefficient":[0.51, 0.25, 0.24], - "HotThreshold":["NAN", 39.0, 41.0, 43.0, 45.0, 47.0, 55.0], + "HotThreshold":["NAN", 35.0, 39.0, 43.0, 45.0, 47.0, 55.0], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.9, 1.9, 1.9], "Multiplier":0.001, "PollingDelay":300000, @@ -163,7 +163,7 @@ "K_I":["NAN", "NAN", 5, "NAN", "NAN", "NAN", "NAN"], "K_D":["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"], "I_Max":["NAN", "NAN", 800, "NAN", "NAN", "NAN", "NAN"], - "S_Power":["NAN", "NAN", 3600, "NAN", "NAN", "NAN", "NAN"], + "S_Power":["NAN", "NAN", 2000, "NAN", "NAN", "NAN", "NAN"], "MinAllocPower":["NAN", "NAN", 300, "NAN", "NAN", "NAN", "NAN"], "MaxAllocPower":["NAN", "NAN", 6000, "NAN", "NAN", "NAN", "NAN"], "I_Cutoff":["NAN", "NAN", 2, "NAN", "NAN", "NAN", "NAN"] diff --git a/thermal_info_config_lynx.json b/thermal_info_config_lynx.json index eeead6f..e57b09d 100644 --- a/thermal_info_config_lynx.json +++ b/thermal_info_config_lynx.json @@ -62,13 +62,13 @@ "Multiplier":0.001 }, { - "Name":"VIRTUAL-NEU-QUT-DISP-SKIN1-GNSS-BATT", + "Name":"VIRTUAL-NEU-QUT-DISP-GNSS-BATT", "Type":"UNKNOWN", "Hidden":true, "VirtualSensor":true, "Formula":"WEIGHTED_AVG", - "Combination":["neutral_therm", "quiet_therm", "disp_therm", "skin_therm1", "gnss_tcxo_therm", "battery"], - "Coefficient":[0.1, 0.4, 0.15, 0.1, 0.1, 0.15], + "Combination":["neutral_therm", "quiet_therm", "disp_therm", "gnss_tcxo_therm", "battery"], + "Coefficient":[0.28, 0.42, 0.1, 0.1, 0.1], "Multiplier":0.001 }, { @@ -78,7 +78,7 @@ "VirtualSensor":true, "Formula":"WEIGHTED_AVG", "Combination":["neutral_therm", "disp_therm", "skin_therm1", "gnss_tcxo_therm", "battery"], - "Coefficient":[0.2, 0.26, 0.1, 0.19, 0.25], + "Coefficient":[0.27, 0.23, 0.1, 0.27, 0.13], "Multiplier":0.001 }, { @@ -104,11 +104,11 @@ { "Name":"VIRTUAL-SKIN", "Type":"SKIN", - "Version":"0.4", + "Version":"0.5", "VirtualSensor":true, "TriggerSensor":"skin_therm1", "Formula":"MAXIMUM", - "Combination":["VIRTUAL-NEU-QUT-DISP-SKIN1-GNSS-BATT", "VIRTUAL-NEU-DISP-SKIN1-GNSS-BATT", "VIRTUAL-SKIN2-USB2-DISP-BATT", "VIRTUAL-QUT-SKIN2-USB2-DISP"], + "Combination":["VIRTUAL-NEU-QUT-DISP-GNSS-BATT", "VIRTUAL-NEU-DISP-SKIN1-GNSS-BATT", "VIRTUAL-SKIN2-USB2-DISP-BATT", "VIRTUAL-QUT-SKIN2-USB2-DISP"], "Coefficient":[1.0, 1.0, 1.0, 1.0], "HotThreshold":["NAN", 39.0, 43.0, 45.0, 47.0, 52.0, 55.0], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.9, 1.9, 1.9], @@ -131,7 +131,7 @@ "VirtualSensor":true, "TriggerSensor":"skin_therm1", "Formula":"MAXIMUM", - "Combination":["VIRTUAL-NEU-QUT-DISP-SKIN1-GNSS-BATT", "VIRTUAL-NEU-DISP-SKIN1-GNSS-BATT", "VIRTUAL-SKIN2-USB2-DISP-BATT", "VIRTUAL-QUT-SKIN2-USB2-DISP"], + "Combination":["VIRTUAL-NEU-QUT-DISP-GNSS-BATT", "VIRTUAL-NEU-DISP-SKIN1-GNSS-BATT", "VIRTUAL-SKIN2-USB2-DISP-BATT", "VIRTUAL-QUT-SKIN2-USB2-DISP"], "Coefficient":[1.0, 1.0, 1.0, 1.0], "HotThreshold":["NAN", 39.0, 40.0, 41.0, 47.0, 52.0, 55.0], "HotHysteresis":[0.0, 0.9, 0.9, 0.9, 1.9, 1.9, 1.9], @@ -196,7 +196,7 @@ "VirtualSensor":true, "TriggerSensor":"skin_therm1", "Formula":"MAXIMUM", - "Combination":["VIRTUAL-NEU-QUT-DISP-SKIN1-GNSS-BATT", "VIRTUAL-NEU-DISP-SKIN1-GNSS-BATT", "VIRTUAL-SKIN2-USB2-DISP-BATT", "VIRTUAL-QUT-SKIN2-USB2-DISP"], + "Combination":["VIRTUAL-NEU-QUT-DISP-GNSS-BATT", "VIRTUAL-NEU-DISP-SKIN1-GNSS-BATT", "VIRTUAL-SKIN2-USB2-DISP-BATT", "VIRTUAL-QUT-SKIN2-USB2-DISP"], "Coefficient":[1.0, 1.0, 1.0, 1.0], "HotThreshold":["NAN", 35.0, 39.0, 43.0, 45.0, 47.0, 55.0], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.9, 1.9, 1.9], @@ -239,7 +239,7 @@ "Formula":"WEIGHTED_AVG", "Combination":["skin_therm2", "usb_pwr_therm2", "disp_therm"], "Coefficient":[0.51, 0.25, 0.24], - "HotThreshold":["NAN", 39.0, 41.0, 43.0, 45.0, 47.0, 55.0], + "HotThreshold":["NAN", 35.0, 39.0, 43.0, 45.0, 47.0, 55.0], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.9, 1.9, 1.9], "Multiplier":0.001, "PollingDelay":300000, @@ -250,7 +250,7 @@ "K_I":["NAN", "NAN", 5, "NAN", "NAN", "NAN", "NAN"], "K_D":["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"], "I_Max":["NAN", "NAN", 800, "NAN", "NAN", "NAN", "NAN"], - "S_Power":["NAN", "NAN", 3600, "NAN", "NAN", "NAN", "NAN"], + "S_Power":["NAN", "NAN", 2000, "NAN", "NAN", "NAN", "NAN"], "MinAllocPower":["NAN", "NAN", 300, "NAN", "NAN", "NAN", "NAN"], "MaxAllocPower":["NAN", "NAN", 6000, "NAN", "NAN", "NAN", "NAN"], "I_Cutoff":["NAN", "NAN", 2, "NAN", "NAN", "NAN", "NAN"] @@ -278,7 +278,7 @@ "VirtualSensor":true, "TriggerSensor":"skin_therm1", "Formula":"MAXIMUM", - "Combination":["VIRTUAL-NEU-QUT-DISP-SKIN1-GNSS-BATT", "VIRTUAL-NEU-DISP-SKIN1-GNSS-BATT", "VIRTUAL-SKIN2-USB2-DISP-BATT", "VIRTUAL-QUT-SKIN2-USB2-DISP"], + "Combination":["VIRTUAL-NEU-QUT-DISP-GNSS-BATT", "VIRTUAL-NEU-DISP-SKIN1-GNSS-BATT", "VIRTUAL-SKIN2-USB2-DISP-BATT", "VIRTUAL-QUT-SKIN2-USB2-DISP"], "Coefficient":[1.0, 1.0, 1.0, 1.0], "HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", 54.0, "NAN"], "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 0.0, 1.9, 0.0], From cd57763357edd64595060b9607cae710084372fc Mon Sep 17 00:00:00 2001 From: Victor Hsu Date: Fri, 2 Sep 2022 13:21:20 +0000 Subject: [PATCH 5/5] wifi: Write fs_ready at eariler time wifi framework try to enable wifi before sys.boot_completed after factory reset. It causes fs_ready never to be written. Move the timing of fs_ready to be written when all modules ready. Bug: 244411535 Bug: 243876449 Test: reboot stress and factory reset stress test are passed. Change-Id: I1cac269ec6ed6eee5f34e72186c566c8cddd4925 --- conf/init.lynx.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/init.lynx.rc b/conf/init.lynx.rc index 6892718..9ebba66 100644 --- a/conf/init.lynx.rc +++ b/conf/init.lynx.rc @@ -54,6 +54,9 @@ on post-fs-data # Wifi on property:sys.boot_completed=1 write /sys/bus/platform/drivers/cnss2/qcom,cnss-qca6490/fs_ready 1 + +on property:vendor.all.modules.ready=1 && property:vendor.all.devices.ready=1 + write /sys/bus/platform/drivers/cnss2/qcom,cnss-qca6490/fs_ready 1 # Create directories for wifihal services mkdir /dev/socket/wifihal 0770 wifi wifi chmod 2777 /dev/socket/wifihal