From e04a91d1e1c606f9a409902d1b90407dc84c4715 Mon Sep 17 00:00:00 2001 From: James Huang Date: Tue, 11 Jun 2024 15:55:14 +0800 Subject: [PATCH] gps: Disable Magnetometer sensor in gps.cfg for P24 Set Chip_Configuration_mems_data_Configuration=0x25 Bug: 346490557 Test: CTS/VTS, sanity test/Stress test/SST Change-Id: I589dbc6de2dfa8c9d2c18996352baaf919bdbb6b --- location/caiman/user/gps.cfg | 2 +- location/caiman/userdebug/gps.cfg | 8 +++++++- location/komodo/user/gps.cfg | 2 +- location/komodo/userdebug/gps.cfg | 8 +++++++- location/ripcurrent24/user/gps.cfg | 2 +- location/ripcurrent24/userdebug/gps.cfg | 8 +++++++- location/ripcurrentpro/user/gps.cfg | 2 +- location/ripcurrentpro/userdebug/gps.cfg | 8 +++++++- location/tokay/user/gps.cfg | 2 +- location/tokay/userdebug/gps.cfg | 8 +++++++- 10 files changed, 40 insertions(+), 10 deletions(-) diff --git a/location/caiman/user/gps.cfg b/location/caiman/user/gps.cfg index e8713a6c..d0f0a402 100644 --- a/location/caiman/user/gps.cfg +++ b/location/caiman/user/gps.cfg @@ -53,7 +53,7 @@ GlueLayer_isReqUBPFromPressureSensor=1 GlueLayer_IsRilCIDReqEnable=0 GlueLayer_IsMemsEnable=1 GlueLayer_MeasCorrCap=7 -Chip_Configuration_mems_data_Configuration=0x27 +Chip_Configuration_mems_data_Configuration=0x25 Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 CP_LocTech_PrimaryConst=0 CP_LocTech_Constraints=1 diff --git a/location/caiman/userdebug/gps.cfg b/location/caiman/userdebug/gps.cfg index b0dd58cc..8f213f68 100644 --- a/location/caiman/userdebug/gps.cfg +++ b/location/caiman/userdebug/gps.cfg @@ -182,7 +182,13 @@ GlueLayer_isReqUBPFromPressureSensor=1 GlueLayer_IsRilCIDReqEnable=0 GlueLayer_IsMemsEnable=1 GlueLayer_MeasCorrCap=7 -Chip_Configuration_mems_data_Configuration=0x27 + +# 0x0001: CHIP_CONFIG_MEMS_ACCEL_AVAILABLE +# 0x0002: CHIP_CONFIG_MEMS_MAGN_AVAILABLE +# 0x0004: CHIP_CONFIG_MEMS_GYRO_AVAILABLE +# 0x0010: CHIP_CONFIG_MEMS_ORIENTATION_AVAILABLE +# 0x0020: CHIP_CONFIG_MEMS_STEPCOUNTER_AVAILABLE +Chip_Configuration_mems_data_Configuration=0x25 Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 CP_LocTech_PrimaryConst=0 CP_LocTech_Constraints=1 diff --git a/location/komodo/user/gps.cfg b/location/komodo/user/gps.cfg index 3462a024..6359a158 100644 --- a/location/komodo/user/gps.cfg +++ b/location/komodo/user/gps.cfg @@ -53,7 +53,7 @@ GlueLayer_isReqUBPFromPressureSensor=1 GlueLayer_IsRilCIDReqEnable=0 GlueLayer_IsMemsEnable=1 GlueLayer_MeasCorrCap=7 -Chip_Configuration_mems_data_Configuration=0x27 +Chip_Configuration_mems_data_Configuration=0x25 Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 CP_LocTech_PrimaryConst=0 CP_LocTech_Constraints=1 diff --git a/location/komodo/userdebug/gps.cfg b/location/komodo/userdebug/gps.cfg index 25c6cc2a..80cf0767 100644 --- a/location/komodo/userdebug/gps.cfg +++ b/location/komodo/userdebug/gps.cfg @@ -182,7 +182,13 @@ GlueLayer_isReqUBPFromPressureSensor=1 GlueLayer_IsRilCIDReqEnable=0 GlueLayer_IsMemsEnable=1 GlueLayer_MeasCorrCap=7 -Chip_Configuration_mems_data_Configuration=0x27 + +# 0x0001: CHIP_CONFIG_MEMS_ACCEL_AVAILABLE +# 0x0002: CHIP_CONFIG_MEMS_MAGN_AVAILABLE +# 0x0004: CHIP_CONFIG_MEMS_GYRO_AVAILABLE +# 0x0010: CHIP_CONFIG_MEMS_ORIENTATION_AVAILABLE +# 0x0020: CHIP_CONFIG_MEMS_STEPCOUNTER_AVAILABLE +Chip_Configuration_mems_data_Configuration=0x25 Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 CP_LocTech_PrimaryConst=0 CP_LocTech_Constraints=1 diff --git a/location/ripcurrent24/user/gps.cfg b/location/ripcurrent24/user/gps.cfg index c28dcc9e..9f7ae68c 100644 --- a/location/ripcurrent24/user/gps.cfg +++ b/location/ripcurrent24/user/gps.cfg @@ -53,7 +53,7 @@ GlueLayer_isReqUBPFromPressureSensor=1 GlueLayer_IsRilCIDReqEnable=0 GlueLayer_IsMemsEnable=1 GlueLayer_MeasCorrCap=7 -Chip_Configuration_mems_data_Configuration=0x27 +Chip_Configuration_mems_data_Configuration=0x25 Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 CP_LocTech_PrimaryConst=0 CP_LocTech_Constraints=1 diff --git a/location/ripcurrent24/userdebug/gps.cfg b/location/ripcurrent24/userdebug/gps.cfg index ceced4e9..f5b1cffe 100644 --- a/location/ripcurrent24/userdebug/gps.cfg +++ b/location/ripcurrent24/userdebug/gps.cfg @@ -182,7 +182,13 @@ GlueLayer_isReqUBPFromPressureSensor=1 GlueLayer_IsRilCIDReqEnable=0 GlueLayer_IsMemsEnable=1 GlueLayer_MeasCorrCap=7 -Chip_Configuration_mems_data_Configuration=0x27 + +# 0x0001: CHIP_CONFIG_MEMS_ACCEL_AVAILABLE +# 0x0002: CHIP_CONFIG_MEMS_MAGN_AVAILABLE +# 0x0004: CHIP_CONFIG_MEMS_GYRO_AVAILABLE +# 0x0010: CHIP_CONFIG_MEMS_ORIENTATION_AVAILABLE +# 0x0020: CHIP_CONFIG_MEMS_STEPCOUNTER_AVAILABLE +Chip_Configuration_mems_data_Configuration=0x25 Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 CP_LocTech_PrimaryConst=0 CP_LocTech_Constraints=1 diff --git a/location/ripcurrentpro/user/gps.cfg b/location/ripcurrentpro/user/gps.cfg index c28dcc9e..9f7ae68c 100644 --- a/location/ripcurrentpro/user/gps.cfg +++ b/location/ripcurrentpro/user/gps.cfg @@ -53,7 +53,7 @@ GlueLayer_isReqUBPFromPressureSensor=1 GlueLayer_IsRilCIDReqEnable=0 GlueLayer_IsMemsEnable=1 GlueLayer_MeasCorrCap=7 -Chip_Configuration_mems_data_Configuration=0x27 +Chip_Configuration_mems_data_Configuration=0x25 Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 CP_LocTech_PrimaryConst=0 CP_LocTech_Constraints=1 diff --git a/location/ripcurrentpro/userdebug/gps.cfg b/location/ripcurrentpro/userdebug/gps.cfg index ceced4e9..f5b1cffe 100644 --- a/location/ripcurrentpro/userdebug/gps.cfg +++ b/location/ripcurrentpro/userdebug/gps.cfg @@ -182,7 +182,13 @@ GlueLayer_isReqUBPFromPressureSensor=1 GlueLayer_IsRilCIDReqEnable=0 GlueLayer_IsMemsEnable=1 GlueLayer_MeasCorrCap=7 -Chip_Configuration_mems_data_Configuration=0x27 + +# 0x0001: CHIP_CONFIG_MEMS_ACCEL_AVAILABLE +# 0x0002: CHIP_CONFIG_MEMS_MAGN_AVAILABLE +# 0x0004: CHIP_CONFIG_MEMS_GYRO_AVAILABLE +# 0x0010: CHIP_CONFIG_MEMS_ORIENTATION_AVAILABLE +# 0x0020: CHIP_CONFIG_MEMS_STEPCOUNTER_AVAILABLE +Chip_Configuration_mems_data_Configuration=0x25 Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 CP_LocTech_PrimaryConst=0 CP_LocTech_Constraints=1 diff --git a/location/tokay/user/gps.cfg b/location/tokay/user/gps.cfg index 1ab34a5e..21cf7a81 100644 --- a/location/tokay/user/gps.cfg +++ b/location/tokay/user/gps.cfg @@ -53,7 +53,7 @@ GlueLayer_isReqUBPFromPressureSensor=1 GlueLayer_IsRilCIDReqEnable=0 GlueLayer_IsMemsEnable=1 GlueLayer_MeasCorrCap=7 -Chip_Configuration_mems_data_Configuration=0x27 +Chip_Configuration_mems_data_Configuration=0x25 Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 CP_LocTech_PrimaryConst=0 CP_LocTech_Constraints=1 diff --git a/location/tokay/userdebug/gps.cfg b/location/tokay/userdebug/gps.cfg index 03281fb3..31199c37 100644 --- a/location/tokay/userdebug/gps.cfg +++ b/location/tokay/userdebug/gps.cfg @@ -182,7 +182,13 @@ GlueLayer_isReqUBPFromPressureSensor=1 GlueLayer_IsRilCIDReqEnable=0 GlueLayer_IsMemsEnable=1 GlueLayer_MeasCorrCap=7 -Chip_Configuration_mems_data_Configuration=0x27 + +# 0x0001: CHIP_CONFIG_MEMS_ACCEL_AVAILABLE +# 0x0002: CHIP_CONFIG_MEMS_MAGN_AVAILABLE +# 0x0004: CHIP_CONFIG_MEMS_GYRO_AVAILABLE +# 0x0010: CHIP_CONFIG_MEMS_ORIENTATION_AVAILABLE +# 0x0020: CHIP_CONFIG_MEMS_STEPCOUNTER_AVAILABLE +Chip_Configuration_mems_data_Configuration=0x25 Chip_Configuration_FeatureCfg_ANDRD_MEAS_CORR_ENABLE=1 CP_LocTech_PrimaryConst=0 CP_LocTech_Constraints=1