Merge 24Q3 to aosp-main-future

Bug: 357762254
Merged-In: I3272d63d3380cce891f8b458cf6384b0dc09d748
Change-Id: I77efe76ff1cef6fdb3a0bef55014cc7895e79ff7
This commit is contained in:
Xin Li 2024-09-06 13:48:39 -07:00
commit d13b46f575
77 changed files with 25147 additions and 22197 deletions

2
OWNERS
View file

@ -1,4 +1,4 @@
per-file perf/*,thermal/*= jenhaochen@google.com,wvw@google.com,joaodias@google.com per-file perf/*,thermal/*= jenhaochen@google.com,wvw@google.com,joaodias@google.com
# per-file for Pixel device makefiles, see go/pixel-device-mk-owner-checklist for details. # per-file for Pixel device makefiles, see go/pixel-device-mk-owner-checklist for details.
per-file *.mk,*/BoardConfig.mk=file:device/google/gs-common:main:/OWNERS per-file *.mk,*/BoardConfig.mk=file:device/google/gs-common:main:/MK_OWNERS

2
PREUPLOAD.cfg Normal file
View file

@ -0,0 +1,2 @@
[Builtin Hooks]
jsonlint = true

View file

@ -20,7 +20,7 @@ USE_SWIFTSHADER := false
BOARD_USES_SWIFTSHADER := false BOARD_USES_SWIFTSHADER := false
$(call inherit-product, device/google/zumapro/aosp_common.mk) $(call inherit-product, device/google/zumapro/aosp_common.mk)
$(call inherit-product, device/google/tegu/device-tegu.mk) $(call inherit-product, device/google/tegu/tegu_generic.mk)
PRODUCT_NAME := aosp_tegu PRODUCT_NAME := aosp_tegu
PRODUCT_DEVICE := tegu PRODUCT_DEVICE := tegu

View file

@ -0,0 +1,63 @@
// Copyright (C) 2023 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
soong_namespace {
imports: [
"frameworks/av/services/audiopolicy/config",
],
}
package {
default_applicable_licenses: [
"Android-Apache-2.0",
],
}
prebuilt_etc {
name: "audio_policy_volumes.xml",
src: "audio_policy_volumes.xml",
soc_specific: true,
}
prebuilt_etc {
name: "imported_default_volume_tables.xml",
src: "//frameworks/av/services/audiopolicy/config:default_volume_tables.xml",
soc_specific: true,
filename_from_src: true,
}
prebuilt_etc {
name: "audio_platform_configuration.xml",
src: "audio_platform_configuration.xml",
soc_specific: true,
required: [
"audio_policy_volumes.xml",
"imported_default_volume_tables.xml",
],
}
prebuilt_etc {
name: "mixer_paths_aidl.xml",
src: "mixer_paths_aidl.xml",
soc_specific: true,
}
phony {
name: "audio_aidl_configs",
soc_specific: true,
required: [
"audio_platform_configuration.xml",
"mixer_paths_aidl.xml",
],
}

View file

@ -0,0 +1,328 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Copyright (C) 2023 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<audioPlatformConfiguration xmlns:xi="http://www.w3.org/2001/XInclude">
<features>
<feature name="BatteryThrottle">
<argument name="Type" value="BCL_VOLTAGE" />
<argument name="Name" value="BCL_AUDIO_BAACL" />
<argument name="Strategy" value="MediaSpeakerAndScreenOn" />
</feature>
<feature name="PlaybackThermalThrottle">
<argument name="PollWaitMs" value="20000" />
<argument name="ThermistorName" value="VIRTUAL-SKIN-SPEAKER" />
<argument name="ThermistorType" value="UNKNOWN" />
<argument name="ThrottlingSeverity" value="LIGHT" />
</feature>
<feature name="RuntimeTuningDump" />
<feature name="SoundDose">
<argument name="Curves" value="blackbird,condor=0,46.35,0.1950549451;54.6,57,0.98625" />
</feature>
<feature name="MicrophoneCompensation" />
<!-- <feature name="spatializer-offload" /> -->
</features>
<voipVolume>
<path voipDevice="VoipDevice::kUsb">
<gain>0.01</gain>
<gain>0.02</gain>
<gain>0.04</gain>
<gain>0.10</gain>
<gain>0.21</gain>
<gain>0.47</gain>
<gain>1.00</gain>
</path>
</voipVolume>
<devices>
<device name="bluetooth" />
<device name="usb" />
<device name="speaker" codec="tas25xx">
<argument name="SpeakerNum" value="2" />
<argument name="AcousticShockProtection" />
<argument name="EnableProtection" />
</device>
</devices>
<tuners>
<tuner type="playback" name="waves">
<argument name="Sink" value="SPK" />
<argument name="ThermistorsName" value="VIRTUAL-SKIN-SPEAKER" />
<argument name="Extensions" value="StereoSpatializerIndicator,SpeakerPowerLinkLaw" />
</tuner>
<tuner type="telephony" name="fortemedia">
<argument name="VoIP_DLCHs" value="SPK:2,USB:2,BT:2" />
<argument name="VoIP_Rate" value="32000" />
<argument name="BOOST_USB_SWB_CLK" value="y" />
<argument name="BOOST_HANDSET_SWB_CLK" value="y" />
<argument name="MCPS_TABLE" value="y" />
<argument name="APPLY_WB_TUNING_FOR_NB_VOICE" value="y" />
<argument name="CCA" value="UnsupportBands:48000,ExSharedBands:48000,VoIPMode:Dl,SupportBWE:y" />
</tuner>
<tuner type="capture" name="gs_capture" />
<tuner type="compensation" name="TelephonySpeakerCompensation">
<scenario condition="ScreenRotation:0,90,180,270"
output="LeftChannel:compens_spk_l.conf RightChannel:compens_spk_r.conf" />
</tuner>
</tuners>
<latencies>
<latency source="primary-playback" sink="speaker" milliseconds="20" />
<latency source="primary-playback" sink="usb-device" milliseconds="10" />
<latency source="primary-playback" sink="usb-headset" milliseconds="10" />
<latency source="primary-playback" sink="bluetooth-a2dp-device" milliseconds="100" />
<latency source="primary-playback" sink="bluetooth-low-energy-speaker" milliseconds="100" />
<latency source="deep-buffer-playback" sink="speaker" milliseconds="70" />
<latency source="deep-buffer-playback" sink="usb-device" milliseconds="70" />
<latency source="deep-buffer-playback" sink="usb-headset" milliseconds="70" />
<latency source="deep-buffer-playback" sink="bluetooth-a2dp-device" milliseconds="180" />
<latency source="compress-offload-playback" sink="speaker" milliseconds="40" />
<latency source="compress-offload-playback" sink="usb-device" milliseconds="40" />
<latency source="compress-offload-playback" sink="usb-headset" milliseconds="40" />
<latency source="compress-offload-playback" sink="bluetooth-a2dp-device" milliseconds="70" />
<latency source="immersive-playback" sink="bluetooth-a2dp-device" milliseconds="100" />
<latency source="microphones" sink="primary-capture" milliseconds="300" />
<latency source="back-microphones" sink="primary-capture" milliseconds="300" />
<latency source="bluetooth-sco-headset" sink="primary-capture" milliseconds="160" />
<latency source="usb-device-microphones" sink="primary-capture" milliseconds="100" />
<latency source="usb-headset-microphones" sink="primary-capture" milliseconds="100" />
</latencies>
<spatialCapture>
<enablement useCase="primary-capture" deviceInterface="microphones">
<source>MIC</source>
<source>CAMCORDER</source>
<source>VOICE_RECOGNITION</source>
</enablement>
<enablement useCase="primary-capture" deviceInterface="back-microphones">
<source>MIC</source>
<source>CAMCORDER</source>
<source>VOICE_RECOGNITION</source>
</enablement>
</spatialCapture>
<microphones>
<microphone id="builtin_mic_1" location="MAINBODY" group="0" indexInTheGroup="0"
directionality="OMNI">
<device type="IN_MICROPHONE" address="bottom" />
<sensitivity levelDbfs="37.0" maxSplDb="132.5" minSplDb="28.5" />
<position x="0.0269" y="0.0058" z="0.0079" />
<orientation x="0.0" y="0.0" z="1.0" />
<frequencyResponse>
<point frequencyHz="100.00" levelDb="-0.78" />
<point frequencyHz="106.00" levelDb="-0.71" />
<point frequencyHz="112.00" levelDb="-0.64" />
<point frequencyHz="118.00" levelDb="-0.60" />
<point frequencyHz="125.00" levelDb="-0.55" />
<point frequencyHz="132.00" levelDb="-0.50" />
<point frequencyHz="140.00" levelDb="-0.47" />
<point frequencyHz="150.00" levelDb="-0.42" />
<point frequencyHz="160.00" levelDb="-0.39" />
<point frequencyHz="170.00" levelDb="-0.36" />
<point frequencyHz="180.00" levelDb="-0.34" />
<point frequencyHz="190.00" levelDb="-0.33" />
<point frequencyHz="200.00" levelDb="-0.32" />
<point frequencyHz="212.00" levelDb="-0.29" />
<point frequencyHz="224.00" levelDb="-0.28" />
<point frequencyHz="236.00" levelDb="-0.28" />
<point frequencyHz="250.00" levelDb="-0.27" />
<point frequencyHz="265.00" levelDb="-0.25" />
<point frequencyHz="280.00" levelDb="-0.25" />
<point frequencyHz="300.00" levelDb="-0.24" />
<point frequencyHz="315.00" levelDb="-0.23" />
<point frequencyHz="335.00" levelDb="-0.23" />
<point frequencyHz="355.00" levelDb="-0.22" />
<point frequencyHz="375.00" levelDb="-0.22" />
<point frequencyHz="400.00" levelDb="-0.19" />
<point frequencyHz="425.00" levelDb="-0.17" />
<point frequencyHz="450.00" levelDb="-0.15" />
<point frequencyHz="475.00" levelDb="-0.15" />
<point frequencyHz="500.00" levelDb="-0.14" />
<point frequencyHz="530.00" levelDb="-0.14" />
<point frequencyHz="560.00" levelDb="-0.12" />
<point frequencyHz="600.00" levelDb="-0.11" />
<point frequencyHz="630.00" levelDb="-0.10" />
<point frequencyHz="670.00" levelDb="-0.10" />
<point frequencyHz="710.00" levelDb="-0.08" />
<point frequencyHz="750.00" levelDb="-0.07" />
<point frequencyHz="800.00" levelDb="-0.07" />
<point frequencyHz="850.00" levelDb="-0.04" />
<point frequencyHz="900.00" levelDb="-0.03" />
<point frequencyHz="950.00" levelDb="-0.01" />
<point frequencyHz="1000.00" levelDb="0.00" />
<point frequencyHz="1060.00" levelDb="0.04" />
<point frequencyHz="1120.00" levelDb="0.06" />
<point frequencyHz="1180.00" levelDb="0.07" />
<point frequencyHz="1250.00" levelDb="0.08" />
<point frequencyHz="1320.00" levelDb="0.13" />
<point frequencyHz="1400.00" levelDb="0.09" />
<point frequencyHz="1500.00" levelDb="0.14" />
<point frequencyHz="1600.00" levelDb="0.19" />
<point frequencyHz="1700.00" levelDb="0.23" />
<point frequencyHz="1800.00" levelDb="0.28" />
<point frequencyHz="1900.00" levelDb="0.29" />
<point frequencyHz="2000.00" levelDb="0.31" />
<point frequencyHz="2120.00" levelDb="0.37" />
<point frequencyHz="2240.00" levelDb="0.88" />
<point frequencyHz="2360.00" levelDb="0.86" />
<point frequencyHz="2500.00" levelDb="0.77" />
<point frequencyHz="2650.00" levelDb="0.78" />
<point frequencyHz="2800.00" levelDb="0.84" />
<point frequencyHz="3000.00" levelDb="0.86" />
<point frequencyHz="3150.00" levelDb="1.05" />
<point frequencyHz="3350.00" levelDb="1.12" />
<point frequencyHz="3550.00" levelDb="1.18" />
<point frequencyHz="3750.00" levelDb="1.25" />
<point frequencyHz="4000.00" levelDb="1.43" />
<point frequencyHz="4250.00" levelDb="1.66" />
<point frequencyHz="4500.00" levelDb="1.83" />
<point frequencyHz="4750.00" levelDb="2.02" />
<point frequencyHz="5000.00" levelDb="2.23" />
<point frequencyHz="5300.00" levelDb="2.59" />
<point frequencyHz="5600.00" levelDb="2.84" />
<point frequencyHz="6000.00" levelDb="3.35" />
<point frequencyHz="6300.00" levelDb="4.01" />
<point frequencyHz="6700.00" levelDb="6.82" />
<point frequencyHz="7100.00" levelDb="6.62" />
<point frequencyHz="7500.00" levelDb="6.42" />
<point frequencyHz="8000.00" levelDb="7.30" />
<point frequencyHz="8500.00" levelDb="8.23" />
<point frequencyHz="9000.00" levelDb="7.54" />
<point frequencyHz="9500.00" levelDb="12.68" />
<point frequencyHz="10000.00" levelDb="13.76" />
<point frequencyHz="10600.00" levelDb="18.69" />
<point frequencyHz="11200.00" levelDb="19.68" />
<point frequencyHz="11800.00" levelDb="20.90" />
<point frequencyHz="12500.00" levelDb="23.70" />
<point frequencyHz="13200.00" levelDb="25.10" />
<point frequencyHz="14000.00" levelDb="21.65" />
<point frequencyHz="15000.00" levelDb="16.18" />
<point frequencyHz="16000.00" levelDb="18.84" />
<point frequencyHz="17000.00" levelDb="25.44" />
<point frequencyHz="18000.00" levelDb="23.48" />
<point frequencyHz="19000.00" levelDb="23.22" />
<point frequencyHz="20000.00" levelDb="24.89" />
</frequencyResponse>
</microphone>
<microphone id="builtin_mic_2" location="MAINBODY" group="0" indexInTheGroup="1"
directionality="OMNI">
<device type="IN_MICROPHONE_BACK" address="back" />
<sensitivity levelDbfs="-37.0" maxSplDb="132.5" minSplDb="28.5" />
<position x="0.0546" y="0.1456" z="0.00415" />
<orientation x="0.0" y="1.0" z="0.0" />
<frequencyResponse>
<point frequencyHz="106.00" levelDb="-0.75" />
<point frequencyHz="112.00" levelDb="-0.74" />
<point frequencyHz="118.00" levelDb="-0.69" />
<point frequencyHz="125.00" levelDb="-0.65" />
<point frequencyHz="132.00" levelDb="-0.62" />
<point frequencyHz="140.00" levelDb="-0.61" />
<point frequencyHz="150.00" levelDb="-0.56" />
<point frequencyHz="160.00" levelDb="-0.53" />
<point frequencyHz="170.00" levelDb="-0.50" />
<point frequencyHz="180.00" levelDb="-0.47" />
<point frequencyHz="190.00" levelDb="-0.43" />
<point frequencyHz="200.00" levelDb="-0.40" />
<point frequencyHz="212.00" levelDb="-0.37" />
<point frequencyHz="224.00" levelDb="-0.36" />
<point frequencyHz="236.00" levelDb="-0.33" />
<point frequencyHz="250.00" levelDb="-0.30" />
<point frequencyHz="265.00" levelDb="-0.28" />
<point frequencyHz="280.00" levelDb="-0.25" />
<point frequencyHz="300.00" levelDb="-0.24" />
<point frequencyHz="315.00" levelDb="-0.24" />
<point frequencyHz="335.00" levelDb="-0.24" />
<point frequencyHz="355.00" levelDb="-0.25" />
<point frequencyHz="375.00" levelDb="-0.24" />
<point frequencyHz="400.00" levelDb="-0.12" />
<point frequencyHz="425.00" levelDb="-0.10" />
<point frequencyHz="450.00" levelDb="-0.08" />
<point frequencyHz="475.00" levelDb="-0.09" />
<point frequencyHz="500.00" levelDb="-0.07" />
<point frequencyHz="530.00" levelDb="-0.07" />
<point frequencyHz="560.00" levelDb="-0.06" />
<point frequencyHz="600.00" levelDb="-0.06" />
<point frequencyHz="630.00" levelDb="-0.06" />
<point frequencyHz="670.00" levelDb="-0.05" />
<point frequencyHz="710.00" levelDb="-0.04" />
<point frequencyHz="750.00" levelDb="-0.05" />
<point frequencyHz="800.00" levelDb="-0.04" />
<point frequencyHz="850.00" levelDb="-0.01" />
<point frequencyHz="900.00" levelDb="0.02" />
<point frequencyHz="950.00" levelDb="0.02" />
<point frequencyHz="1000.00" levelDb="0.00" />
<point frequencyHz="1060.00" levelDb="0.02" />
<point frequencyHz="1120.00" levelDb="0.03" />
<point frequencyHz="1180.00" levelDb="0.07" />
<point frequencyHz="1250.00" levelDb="0.10" />
<point frequencyHz="1320.00" levelDb="0.10" />
<point frequencyHz="1400.00" levelDb="0.13" />
<point frequencyHz="1500.00" levelDb="0.01" />
<point frequencyHz="1600.00" levelDb="0.01" />
<point frequencyHz="1700.00" levelDb="0.10" />
<point frequencyHz="1800.00" levelDb="0.11" />
<point frequencyHz="1900.00" levelDb="0.19" />
<point frequencyHz="2000.00" levelDb="0.24" />
<point frequencyHz="2120.00" levelDb="0.38" />
<point frequencyHz="2240.00" levelDb="0.46" />
<point frequencyHz="2360.00" levelDb="0.26" />
<point frequencyHz="2500.00" levelDb="0.27" />
<point frequencyHz="2650.00" levelDb="0.43" />
<point frequencyHz="2800.00" levelDb="0.76" />
<point frequencyHz="3000.00" levelDb="0.75" />
<point frequencyHz="3150.00" levelDb="1.09" />
<point frequencyHz="3350.00" levelDb="1.09" />
<point frequencyHz="3550.00" levelDb="0.94" />
<point frequencyHz="3750.00" levelDb="1.06" />
<point frequencyHz="4000.00" levelDb="1.21" />
<point frequencyHz="4250.00" levelDb="1.47" />
<point frequencyHz="4500.00" levelDb="1.45" />
<point frequencyHz="4750.00" levelDb="1.36" />
<point frequencyHz="5000.00" levelDb="2.07" />
<point frequencyHz="5300.00" levelDb="2.85" />
<point frequencyHz="5600.00" levelDb="2.90" />
<point frequencyHz="6000.00" levelDb="3.85" />
<point frequencyHz="6300.00" levelDb="4.65" />
<point frequencyHz="6700.00" levelDb="5.84" />
<point frequencyHz="7100.00" levelDb="5.46" />
<point frequencyHz="7500.00" levelDb="6.15" />
<point frequencyHz="8000.00" levelDb="7.50" />
<point frequencyHz="8500.00" levelDb="8.30" />
<point frequencyHz="9000.00" levelDb="10.62" />
<point frequencyHz="9500.00" levelDb="12.70" />
<point frequencyHz="10000.00" levelDb="16.65" />
<point frequencyHz="10600.00" levelDb="20.95" />
<point frequencyHz="11200.00" levelDb="25.41" />
<point frequencyHz="11800.00" levelDb="26.32" />
<point frequencyHz="12500.00" levelDb="20.20" />
<point frequencyHz="13200.00" levelDb="16.60" />
<point frequencyHz="14000.00" levelDb="11.24" />
<point frequencyHz="15000.00" levelDb="7.85" />
<point frequencyHz="16000.00" levelDb="7.62" />
<point frequencyHz="17000.00" levelDb="20.19" />
<point frequencyHz="18000.00" levelDb="7.32" />
<point frequencyHz="19000.00" levelDb="2.87" />
<point frequencyHz="20000.00" levelDb="5.18" />
</frequencyResponse>
</microphone>
</microphones>
<xi:include href="audio_policy_volumes.xml" />
<xi:include href="default_volume_tables.xml" />
</audioPlatformConfiguration>

View file

@ -0,0 +1,255 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (C) 2015 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- Volume section defines a volume curve for a given use case and device category.
It contains a list of points of this curve expressing the attenuation in Millibels for a given
volume index from 0 to 100.
<volume stream=”AUDIO_STREAM_MUSIC” deviceCategory=””>
<point>0,-9600</point>
<point>100,0</point>
</volume>
-->
<!--
sync from ag/26090783, need remove before submit.
-->
<volumes>
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_HEADSET">
<point>0,-4200</point>
<point>33,-2800</point>
<point>66,-1400</point>
<point>100,0</point>
</volume>
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>0,-2400</point>
<point>33,-1600</point>
<point>66,-800</point>
<point>100,0</point>
</volume>
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_EARPIECE">
<point>0,-2400</point>
<point>33,-1600</point>
<point>66,-800</point>
<point>100,0</point>
</volume>
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_VOICE_CALL" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_HEADSET">
<point>1,-3000</point>
<point>33,-2600</point>
<point>66,-2200</point>
<point>100,-1800</point>
</volume>
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>1,-5000</point>
<point>33,-3500</point>
<point>66,-2400</point>
<point>100,-1600</point>
</volume>
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EARPIECE"
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_SYSTEM" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>1,-4000</point>
<point>33,-2400</point>
<point>66,-1200</point>
<point>100,0</point>
</volume>
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EARPIECE"
ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_RING" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>1,-6589</point>
<point>8,-5971</point>
<point>12,-5619</point>
<point>16,-5212</point>
<point>20,-4833</point>
<point>24,-4434</point>
<point>28,-4141</point>
<point>32,-3856</point>
<point>36,-3611</point>
<point>40,-3382</point>
<point>44,-3143</point>
<point>48,-2921</point>
<point>52,-2695</point>
<point>56,-2497</point>
<point>60,-2308</point>
<point>64,-2109</point>
<point>68,-1893</point>
<point>72,-1706</point>
<point>76,-1474</point>
<point>80,-1224</point>
<point>84,-1000</point>
<point>88,-786</point>
<point>92,-581</point>
<point>96,-275</point>
<point>100,0</point>
</volume>
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EARPIECE"
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_MUSIC" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="DEFAULT_NON_MUTABLE_HEADSET_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>0,-4000</point>
<point>33,-2400</point>
<point>66,-1200</point>
<point>100,0</point>
</volume>
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EARPIECE"
ref="DEFAULT_NON_MUTABLE_EARPIECE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="DEFAULT_NON_MUTABLE_EXT_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ALARM" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>1,-4800</point>
<point>33,-2400</point>
<point>66,-1200</point>
<point>100,0</point>
</volume>
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EARPIECE"
ref="DEFAULT_DEVICE_CATEGORY_EARPIECE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_NOTIFICATION" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_DEVICE_CATEGORY_HEADSET_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEADSET">
<point>0,-4200</point>
<point>33,-2800</point>
<point>66,-1400</point>
<point>100,0</point>
</volume>
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>0,-2400</point>
<point>33,-1600</point>
<point>66,-800</point>
<point>100,0</point>
</volume>
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EARPIECE">
<point>0,-4200</point>
<point>33,-2800</point>
<point>66,-1400</point>
<point>100,0</point>
</volume>
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_BLUETOOTH_SCO" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEADSET">
<point>1,-3000</point>
<point>33,-2600</point>
<point>66,-2200</point>
<point>100,-1800</point>
</volume>
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>1,-5000</point>
<point>33,-3500</point>
<point>66,-2400</point>
<point>100,-1600</point>
</volume>
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EARPIECE"
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ENFORCED_AUDIBLE" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_HEADSET">
<point>1,-3000</point>
<point>33,-2600</point>
<point>66,-2200</point>
<point>100,-1800</point>
</volume>
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_SPEAKER">
<point>1,-6000</point>
<point>33,-3000</point>
<point>66,-2200</point>
<point>100,-1600</point>
</volume>
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EARPIECE"
ref="DEFAULT_SYSTEM_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="DEFAULT_DEVICE_CATEGORY_EXT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_DTMF" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="SILENT_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_SPEAKER"
ref="FULL_SCALE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_EARPIECE"
ref="SILENT_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="SILENT_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_TTS" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="SILENT_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_SPEAKER"
ref="DEFAULT_NON_MUTABLE_SPEAKER_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EARPIECE"
ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="DEFAULT_NON_MUTABLE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ACCESSIBILITY" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_NON_MUTABLE_HEARING_AID_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_SPEAKER"
ref="DEFAULT_DEVICE_CATEGORY_SPEAKER_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_EARPIECE"
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="DEFAULT_MEDIA_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_ASSISTANT" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="DEFAULT_HEARING_AID_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="FULL_SCALE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_SPEAKER"
ref="FULL_SCALE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_EARPIECE"
ref="FULL_SCALE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="FULL_SCALE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_REROUTING" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="FULL_SCALE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_HEADSET"
ref="FULL_SCALE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_SPEAKER"
ref="FULL_SCALE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EARPIECE"
ref="FULL_SCALE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_EXT_MEDIA"
ref="FULL_SCALE_VOLUME_CURVE"/>
<volume stream="AUDIO_STREAM_PATCH" deviceCategory="DEVICE_CATEGORY_HEARING_AID"
ref="FULL_SCALE_VOLUME_CURVE"/>
</volumes>

File diff suppressed because it is too large Load diff

View file

@ -16,6 +16,12 @@
AUDIO_TABLE_FOLDER := tegu AUDIO_TABLE_FOLDER := tegu
# Choose AIDL config by build flag.
ifeq ($(USE_AUDIO_HAL_AIDL),true)
PRODUCT_SOONG_NAMESPACES += device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/aidl_config
PRODUCT_PACKAGES += audio_aidl_configs
else
# Platform Configuration for AudioHAL / SoundTriggerHAL # Platform Configuration for AudioHAL / SoundTriggerHAL
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/config/audio_policy_configuration_bluetooth_legacy_hal.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml \ device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/config/audio_policy_configuration_bluetooth_legacy_hal.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml \
@ -31,41 +37,41 @@ PRODUCT_COPY_FILES += \
# Mixer Path Configuration for AudioHAL # Mixer Path Configuration for AudioHAL
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/config/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/config/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml
endif
# Speaker firmware files # Speaker firmware files
SPK_FIRMWARE_PATH := $(AUDIO_TABLE_FOLDER)/tas2572 SPK_FIRMWARE_PATH := $(AUDIO_TABLE_FOLDER)/tas2572/fw/
SPK_FIRMWARE_FULL_PATH := device/google/tegu/audio/$(SPK_FIRMWARE_PATH) SPK_FIRMWARE_FULL_PATH := device/google/tegu/audio/$(SPK_FIRMWARE_PATH)
PRODUCT_COPY_FILES += $(call copy-files,$(wildcard $(SPK_FIRMWARE_FULL_PATH)/*),$(TARGET_COPY_OUT_VENDOR)/firmware) PRODUCT_COPY_FILES += $(call copy-files,$(wildcard $(SPK_FIRMWARE_FULL_PATH)/*),$(TARGET_COPY_OUT_VENDOR)/firmware)
# Audio tuning # Audio tuning
PRODUCT_COPY_FILES += \ PRODUCT_SOONG_NAMESPACES += device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tuning
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tuning/bluenote/recording.gatf:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/recording.gatf \ PRODUCT_PACKAGES += \
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia/BLUETOOTH.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/BLUETOOTH.dat \ recording.gatf \
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia/HANDSFREE.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/HANDSFREE.dat \ smartfeature.gstf \
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia/HANDSET.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/HANDSET.dat \ BLUETOOTH.dat \
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia/HEADSET.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/HEADSET.dat \ HANDSFREE.dat \
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia/mcps.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/mcps.dat \ HANDSET.dat \
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tuning/waves/waves_config.ini:$(TARGET_COPY_OUT_VENDOR)/etc/waves_config.ini \ HEADSET.dat \
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tuning/waves/waves_preset.mps:$(TARGET_COPY_OUT_VENDOR)/etc/waves_preset.mps mcps.dat \
waves_config.ini \
waves_preset.mps \
compens_spk_l.conf \
compens_spk_r.conf
# userdebug and eng specific
PRODUCT_PACKAGES_DEBUG += \
BLUETOOTH.mods \
HANDSFREE.mods \
HANDSET.mods \
HEADSET.mods \
template.xml \
tuning_constraints_combination.xml \
test_config.ini \
test_preset.mps
# userdebug specific
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_COPY_FILES += \
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia/BLUETOOTH.mods:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/BLUETOOTH.mods \
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia/HANDSFREE.mods:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/HANDSFREE.mods \
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia/HANDSET.mods:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/HANDSET.mods \
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia/HEADSET.mods:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/HEADSET.mods
#Bluenote files
PRODUCT_COPY_FILES += \
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tuning/bluenote/template.xml:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/template.xml \
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tuning/bluenote/tuning_constraints_combination.xml:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/tuning_constraints_combination.xml
PRODUCT_COPY_FILES += \
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tuning/waves/tests/test_config.ini:$(TARGET_COPY_OUT_VENDOR)/etc/test_config.ini \
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tuning/waves/tests/test_preset.mps:$(TARGET_COPY_OUT_VENDOR)/etc/test_preset.mps
# Mixer Path Configuration for Audio Speaker Calibration Tool pixel_ti_cal # Mixer Path Configuration for Audio Speaker Calibration Tool pixel_ti_cal
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tas2572/ti_cal_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/ti_cal_mixer_paths.xml device/google/tegu/audio/$(AUDIO_TABLE_FOLDER)/tas2572/ti_cal_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/ti_cal_mixer_paths.xml

View file

@ -294,7 +294,7 @@
</device_handle> </device_handle>
<external_module> <external_module>
<module libname="audio_spk_tas25xx.so" argu="AcousticShockProtection"/> <module libname="audio_spk_tas25xx.so" argu="AcousticShockProtection,EnableProtection"/>
<module libname="audio_waves_aoc.so" argu="Sink=SPK:1"/> <module libname="audio_waves_aoc.so" argu="Sink=SPK:1"/>
<module libname="audio_fortemedia_aoc.so" argu="DL_CH=y VoIP_DLCHs=SPK:2,USB:2 VoIP_Rate=32000"/> <module libname="audio_fortemedia_aoc.so" argu="DL_CH=y VoIP_DLCHs=SPK:2,USB:2 VoIP_Rate=32000"/>
<module libname="audio_sounddose_aoc.so"/> <module libname="audio_sounddose_aoc.so"/>

View file

@ -130,10 +130,6 @@
</devicePort> </devicePort>
<devicePort tagName="Speaker Safe" type="AUDIO_DEVICE_OUT_SPEAKER_SAFE" role="sink"> <devicePort tagName="Speaker Safe" type="AUDIO_DEVICE_OUT_SPEAKER_SAFE" role="sink">
</devicePort> </devicePort>
<devicePort tagName="Wired Headset" type="AUDIO_DEVICE_OUT_WIRED_HEADSET" role="sink">
</devicePort>
<devicePort tagName="Wired Headphones" type="AUDIO_DEVICE_OUT_WIRED_HEADPHONE" role="sink">
</devicePort>
<devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" role="sink"> <devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" role="sink">
</devicePort> </devicePort>
<devicePort tagName="BT SCO Headset" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET" role="sink"> <devicePort tagName="BT SCO Headset" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET" role="sink">
@ -144,8 +140,6 @@
</devicePort> </devicePort>
<devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink"> <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink">
</devicePort> </devicePort>
<devicePort tagName="Aux Digital" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink">
</devicePort>
<devicePort tagName="Telephony Tx" type="AUDIO_DEVICE_OUT_TELEPHONY_TX" role="sink"> <devicePort tagName="Telephony Tx" type="AUDIO_DEVICE_OUT_TELEPHONY_TX" role="sink">
</devicePort> </devicePort>
<!-- Input devices declaration, i.e. Source DEVICE PORT --> <!-- Input devices declaration, i.e. Source DEVICE PORT -->
@ -153,8 +147,6 @@
</devicePort> </devicePort>
<devicePort tagName="Built-In Back Mic" type="AUDIO_DEVICE_IN_BACK_MIC" role="source"> <devicePort tagName="Built-In Back Mic" type="AUDIO_DEVICE_IN_BACK_MIC" role="source">
</devicePort> </devicePort>
<devicePort tagName="Wired Headset Mic" type="AUDIO_DEVICE_IN_WIRED_HEADSET" role="source">
</devicePort>
<devicePort tagName="BT SCO Headset Mic" type="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET" role="source"> <devicePort tagName="BT SCO Headset Mic" type="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET" role="source">
</devicePort> </devicePort>
<devicePort tagName="BT A2DP Out" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP" role="sink" <devicePort tagName="BT A2DP Out" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP" role="sink"

View file

@ -130,10 +130,6 @@
</devicePort> </devicePort>
<devicePort tagName="Speaker Safe" type="AUDIO_DEVICE_OUT_SPEAKER_SAFE" role="sink"> <devicePort tagName="Speaker Safe" type="AUDIO_DEVICE_OUT_SPEAKER_SAFE" role="sink">
</devicePort> </devicePort>
<devicePort tagName="Wired Headset" type="AUDIO_DEVICE_OUT_WIRED_HEADSET" role="sink">
</devicePort>
<devicePort tagName="Wired Headphones" type="AUDIO_DEVICE_OUT_WIRED_HEADPHONE" role="sink">
</devicePort>
<devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" role="sink"> <devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" role="sink">
</devicePort> </devicePort>
<devicePort tagName="BT SCO Headset" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET" role="sink"> <devicePort tagName="BT SCO Headset" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET" role="sink">
@ -144,8 +140,6 @@
</devicePort> </devicePort>
<devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink"> <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink">
</devicePort> </devicePort>
<devicePort tagName="Aux Digital" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink">
</devicePort>
<devicePort tagName="Telephony Tx" type="AUDIO_DEVICE_OUT_TELEPHONY_TX" role="sink"> <devicePort tagName="Telephony Tx" type="AUDIO_DEVICE_OUT_TELEPHONY_TX" role="sink">
</devicePort> </devicePort>
<!-- Input devices declaration, i.e. Source DEVICE PORT --> <!-- Input devices declaration, i.e. Source DEVICE PORT -->
@ -153,8 +147,6 @@
</devicePort> </devicePort>
<devicePort tagName="Built-In Back Mic" type="AUDIO_DEVICE_IN_BACK_MIC" role="source"> <devicePort tagName="Built-In Back Mic" type="AUDIO_DEVICE_IN_BACK_MIC" role="source">
</devicePort> </devicePort>
<devicePort tagName="Wired Headset Mic" type="AUDIO_DEVICE_IN_WIRED_HEADSET" role="source">
</devicePort>
<devicePort tagName="BT SCO Headset Mic" type="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET" role="source"> <devicePort tagName="BT SCO Headset Mic" type="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET" role="source">
</devicePort> </devicePort>
<devicePort tagName="USB Device In" type="AUDIO_DEVICE_IN_USB_DEVICE" role="source"> <devicePort tagName="USB Device In" type="AUDIO_DEVICE_IN_USB_DEVICE" role="source">

View file

@ -130,10 +130,6 @@
</devicePort> </devicePort>
<devicePort tagName="Speaker Safe" type="AUDIO_DEVICE_OUT_SPEAKER_SAFE" role="sink"> <devicePort tagName="Speaker Safe" type="AUDIO_DEVICE_OUT_SPEAKER_SAFE" role="sink">
</devicePort> </devicePort>
<devicePort tagName="Wired Headset" type="AUDIO_DEVICE_OUT_WIRED_HEADSET" role="sink">
</devicePort>
<devicePort tagName="Wired Headphones" type="AUDIO_DEVICE_OUT_WIRED_HEADPHONE" role="sink">
</devicePort>
<devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" role="sink"> <devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" role="sink">
</devicePort> </devicePort>
<devicePort tagName="BT SCO Headset" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET" role="sink"> <devicePort tagName="BT SCO Headset" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET" role="sink">
@ -144,8 +140,6 @@
</devicePort> </devicePort>
<devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink"> <devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET" role="sink">
</devicePort> </devicePort>
<devicePort tagName="Aux Digital" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink">
</devicePort>
<devicePort tagName="Telephony Tx" type="AUDIO_DEVICE_OUT_TELEPHONY_TX" role="sink"> <devicePort tagName="Telephony Tx" type="AUDIO_DEVICE_OUT_TELEPHONY_TX" role="sink">
</devicePort> </devicePort>
<!-- Input devices declaration, i.e. Source DEVICE PORT --> <!-- Input devices declaration, i.e. Source DEVICE PORT -->
@ -153,8 +147,6 @@
</devicePort> </devicePort>
<devicePort tagName="Built-In Back Mic" type="AUDIO_DEVICE_IN_BACK_MIC" role="source"> <devicePort tagName="Built-In Back Mic" type="AUDIO_DEVICE_IN_BACK_MIC" role="source">
</devicePort> </devicePort>
<devicePort tagName="Wired Headset Mic" type="AUDIO_DEVICE_IN_WIRED_HEADSET" role="source">
</devicePort>
<devicePort tagName="BT SCO Headset Mic" type="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET" role="source"> <devicePort tagName="BT SCO Headset Mic" type="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET" role="source">
</devicePort> </devicePort>
<devicePort tagName="USB Device In" type="AUDIO_DEVICE_IN_USB_DEVICE" role="source"> <devicePort tagName="USB Device In" type="AUDIO_DEVICE_IN_USB_DEVICE" role="source">

View file

@ -51,8 +51,8 @@
<ctl name="RX Slots" id="1" value="3"/> <ctl name="RX Slots" id="1" value="3"/>
<!-- default Tas2572's control value --> <!-- default Tas2572's control value -->
<ctl name="TAS25XX PLAYBACK_VOLUME_LEFT" value="47"/> <ctl name="TAS25XX PLAYBACK_VOLUME_LEFT" value="55"/>
<ctl name="TAS25XX PLAYBACK_VOLUME_RIGHT" value="47"/> <ctl name="TAS25XX PLAYBACK_VOLUME_RIGHT" value="55"/>
<ctl name="TAS25XX ASI Switch" value="0"/> <ctl name="TAS25XX ASI Switch" value="0"/>
<ctl name="TAS25XX CODEC PROFILE" value="default"/> <ctl name="TAS25XX CODEC PROFILE" value="default"/>
@ -624,10 +624,14 @@
<path name="voice-handset"> <path name="voice-handset">
<ctl name="TAS25XX CODEC PROFILE" value="voice"/> <ctl name="TAS25XX CODEC PROFILE" value="voice"/>
<ctl name="TAS25XX ASI Switch" value="1"/> <ctl name="TAS25XX ASI Switch" value="1"/>
<ctl name="TAS25XX PLAYBACK_VOLUME_LEFT" value="55"/>
</path> </path>
<path name="voice-hac"> <path name="voice-hac">
<path name="voice-handset"/> <ctl name="TAS25XX CODEC PROFILE" value="voice"/>
<ctl name="TAS25XX ASI Switch" value="1"/>
<ctl name="TAS25XX PLAYBACK_VOLUME_LEFT" value="58"/>
<ctl name="HAC AMP EN" value="1"/>
</path> </path>
<path name="voice-hac-handset"> <path name="voice-hac-handset">

Binary file not shown.

View file

@ -0,0 +1,145 @@
//
// Copyright (C) 2023 The Android Open-Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
soong_namespace {}
package {
// See: http://go/android-license-faq
// A large-scale-change added 'default_applicable_licenses' to import
// all of the 'license_kinds' from "device_google_tegu_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: ["device_google_tegu_license"],
}
prebuilt_defaults {
name: "aoc_defaults",
soc_specific: true,
sub_dir: "aoc",
}
prebuilt_etc {
name: "recording.gatf",
src: "bluenote/recording.gatf",
defaults: ["aoc_defaults"],
}
prebuilt_etc {
name: "smartfeature.gstf",
src: "bluenote/smartfeature.gstf",
defaults: ["aoc_defaults"],
}
prebuilt_etc {
name: "template.xml",
src: "bluenote/template.xml",
defaults: ["aoc_defaults"],
}
prebuilt_etc {
name: "tuning_constraints_combination.xml",
src: "bluenote/tuning_constraints_combination.xml",
defaults: ["aoc_defaults"],
}
prebuilt_etc {
name: "compens_spk_l.conf",
src: "compensation/compens_spk_l.conf",
soc_specific: true,
}
prebuilt_etc {
name: "compens_spk_r.conf",
src: "compensation/compens_spk_r.conf",
soc_specific: true,
}
prebuilt_etc {
name: "BLUETOOTH.dat",
src: "fortemedia/BLUETOOTH.dat",
defaults: ["aoc_defaults"],
}
prebuilt_etc {
name: "BLUETOOTH.mods",
src: "fortemedia/BLUETOOTH.mods",
defaults: ["aoc_defaults"],
}
prebuilt_etc {
name: "HANDSFREE.dat",
src: "fortemedia/HANDSFREE.dat",
defaults: ["aoc_defaults"],
}
prebuilt_etc {
name: "HANDSFREE.mods",
src: "fortemedia/HANDSFREE.mods",
defaults: ["aoc_defaults"],
}
prebuilt_etc {
name: "HANDSET.dat",
src: "fortemedia/HANDSET.dat",
defaults: ["aoc_defaults"],
}
prebuilt_etc {
name: "HANDSET.mods",
src: "fortemedia/HANDSET.mods",
defaults: ["aoc_defaults"],
}
prebuilt_etc {
name: "HEADSET.dat",
src: "fortemedia/HEADSET.dat",
defaults: ["aoc_defaults"],
}
prebuilt_etc {
name: "HEADSET.mods",
src: "fortemedia/HEADSET.mods",
defaults: ["aoc_defaults"],
}
prebuilt_etc {
name: "mcps.dat",
src: "fortemedia/mcps.dat",
defaults: ["aoc_defaults"],
}
prebuilt_etc {
name: "waves_config.ini",
src: "waves/waves_config.ini",
soc_specific: true,
}
prebuilt_etc {
name: "waves_preset.mps",
src: "waves/waves_preset.mps",
soc_specific: true,
}
prebuilt_etc {
name: "test_config.ini",
src: "waves/tests/test_config.ini",
soc_specific: true,
}
prebuilt_etc {
name: "test_preset.mps",
src: "waves/tests/test_preset.mps",
soc_specific: true,
}

Binary file not shown.

View file

@ -17,8 +17,8 @@
<param id="18" name="noiseGate" type="float"/> <param id="18" name="noiseGate" type="float"/>
<param id="19" name="minGain" type="float"/> <param id="19" name="minGain" type="float"/>
<param id="20" name="maxGain" type="float"/> <param id="20" name="maxGain" type="float"/>
<param id="21" name="longGainAtRt" type="uint32"/> <param id="21" name="releaseTime" type="uint32"/>
<param id="22" name="GainAtRt" type="uint32"/> <param id="22" name="attackTime" type="uint32"/>
<param id="23" name="rmsTav" type="uint32"/> <param id="23" name="rmsTav" type="uint32"/>
</module> </module>
<module id="6" name="Surround Record"> <module id="6" name="Surround Record">
@ -26,7 +26,6 @@
<param default="48000" id="1" name="fs_" type="uint32"/> <param default="48000" id="1" name="fs_" type="uint32"/>
<param default="3" id="2" name="numCh_" type="uint32"/> <param default="3" id="2" name="numCh_" type="uint32"/>
<param default="7" id="3" name="chMask_" type="uint32"/> <param default="7" id="3" name="chMask_" type="uint32"/>
<param id="16" max="1" min="0" name="alpha" type="float"/>
<param complex="true" id="17" name="ch0_profileL" size="1024" type="float"/> <param complex="true" id="17" name="ch0_profileL" size="1024" type="float"/>
<param complex="true" id="18" name="ch1_profileL" size="1024" type="float"/> <param complex="true" id="18" name="ch1_profileL" size="1024" type="float"/>
<param complex="true" id="19" name="ch2_profileL" size="1024" type="float"/> <param complex="true" id="19" name="ch2_profileL" size="1024" type="float"/>
@ -43,7 +42,28 @@
<param default="0" id="27" name="ch0_assignFrom" type="int32"/> <param default="0" id="27" name="ch0_assignFrom" type="int32"/>
<param default="1" id="28" name="ch1_assignFrom" type="int32"/> <param default="1" id="28" name="ch1_assignFrom" type="int32"/>
<param default="2" id="29" name="ch2_assignFrom" type="int32"/> <param default="2" id="29" name="ch2_assignFrom" type="int32"/>
<param default="0.333" id="30" max="1" min="0.01" name="alphaEnhancedRate" type="float"/> <param default="0.33" id="30" name="alpha_enhancedRate" type="float"/>
<param default="0" id="31" name="swapOutputLR" type="int32"/>
<struct id="32">
<param default="0.0" name="CB_alpha_lowband" type="float"/>
<param default="0.0" name="CB_alpha_midband" type="float"/>
<param default="0.0" name="CB_alpha_highband" type="float"/>
</struct>
<struct id="33">
<param default="0.0" name="CB_epsilon_lowband" type="float"/>
<param default="0.0" name="CB_epsilon_midband" type="float"/>
<param default="0.0" name="CB_epsilon_highband" type="float"/>
</struct>
<struct id="34">
<param default="13" name="CB_fc_low_mid" type="int32"/>
<param default="22" name="CB_fc_mid_high" type="int32"/>
<param default="5" name="CB_smooth_span" type="int32"/>
<param default="1.0" name="CB_forget_factor" type="float"/>
</struct>
<struct id="35">
<param name="IIR_lowpass" size="5" type="float"/>
<param name="IIR_highpass" size="5" type="float"/>
</struct>
</module> </module>
<module id="7" name="Multi Channel IIR 2"> <module id="7" name="Multi Channel IIR 2">
<param default="0" id="0" max="3" name="opMode_" type="uint32"/> <param default="0" id="0" max="3" name="opMode_" type="uint32"/>
@ -59,6 +79,64 @@
<param default="4" name="type" size="60" type="int32"/> <param default="4" name="type" size="60" type="int32"/>
</struct> </struct>
</module> </module>
<module id="8" name="Multi Band DRC">
<param default="0" id="0" max="3" name="opMode_" type="uint32"/>
<param default="48000" id="1" name="fs_" type="uint32"/>
<param default="2" id="2" name="numCh_" type="uint32"/>
<param default="3" id="3" name="chMask_" type="uint32"/>
<struct id="16">
<param default="1" max="3" min="1" name="numBand" type="uint32"/>
<param name="IIR_LowPass1" size="5" type="float"/>
<param name="IIR_HighPass1" size="5" type="float"/>
<param name="IIR_LowPass2" size="5" type="float"/>
<param name="IIR_HighPass2" size="5" type="float"/>
</struct>
<struct id="17">
<param max="20" min="0" name="band0_delay_ms" type="float"/>
<param default="5" max="20" min="0" minInclusive="false" name="band0_rms_ms" type="float"/>
<param max="30" min="0" name="band0_gain_dB" type="float"/>
<param max="30" min="-30" name="band0_Min_Gain_dB" type="float"/>
<param default="1" max="3" min="1" name="band0_numOfKnee" type="uint32"/>
<param name="band0_threadhold_dB" size="3" type="float"/>
<param name="band0_compressRatio" size="4" type="float"/>
<param name="band0_kneeWidth" size="3" type="float"/>
<param name="band0_attackTime_ms" size="4" type="float"/>
<param name="band0_releaseTime_ms" size="4" type="float"/>
<param name="band0_hysteresis" size="4" type="float"/>
<param max="20" min="0" name="band1_delay_ms" type="float"/>
<param default="5" max="20" min="0" minInclusive="false" name="band1_rms_ms" type="float"/>
<param max="30" min="0" name="band1_gain_dB" type="float"/>
<param max="30" min="-30" name="band1_Min_Gain_dB" type="float"/>
<param default="1" max="3" min="1" name="band1_numOfKnee" type="uint32"/>
<param name="band1_threadhold_dB" size="3" type="float"/>
<param name="band1_compressRatio" size="4" type="float"/>
<param name="band1_kneeWidth" size="3" type="float"/>
<param name="band1_attackTime_ms" size="4" type="float"/>
<param name="band1_releaseTime_ms" size="4" type="float"/>
<param name="band1_hysteresis" size="4" type="float"/>
<param max="20" min="0" name="band2_delay_ms" type="float"/>
<param default="5" max="20" min="0" minInclusive="false" name="band2_rms_ms" type="float"/>
<param max="30" min="0" name="band2_gain_dB" type="float"/>
<param max="30" min="-30" name="band2_Min_Gain_dB" type="float"/>
<param default="1" max="3" min="1" name="band2_numOfKnee" type="uint32"/>
<param name="band2_threadhold_dB" size="3" type="float"/>
<param name="band2_compressRatio" size="4" type="float"/>
<param name="band2_kneeWidth" size="3" type="float"/>
<param name="band2_attackTime_ms" size="4" type="float"/>
<param name="band2_releaseTime_ms" size="4" type="float"/>
<param name="band2_hysteresis" size="4" type="float"/>
</struct>
<struct id="18">
<param max="30" min="-30" name="limiter_gain_dB" type="float"/>
<param max="0" min="-30" name="limiter_threadhold_dB" type="float"/>
<param max="100" min="0" name="limiter_attackTime_ms" type="float"/>
<param max="100" min="0" name="limiter_releaseTime_ms" type="float"/>
</struct>
<struct id="19">
<param name="frequency0" type="uint32"/>
<param name="frequency1" type="uint32"/>
</struct>
</module>
<module id="11" name="Stationary Noise Suppression"> <module id="11" name="Stationary Noise Suppression">
<param default="0" id="0" max="3" name="opMode_" type="uint32"/> <param default="0" id="0" max="3" name="opMode_" type="uint32"/>
<param default="48000" id="1" name="fs_" type="uint32"/> <param default="48000" id="1" name="fs_" type="uint32"/>
@ -207,7 +285,7 @@
<param name="crossover_iir_hp2" size="5" type="float"/> <param name="crossover_iir_hp2" size="5" type="float"/>
<param default="250" max="1000" min="5" name="environment_rms_window_ms" type="int32"/> <param default="250" max="1000" min="5" name="environment_rms_window_ms" type="int32"/>
<param default="-40" max="0" name="environment_rms_threshold_db" type="float"/> <param default="-40" max="0" name="environment_rms_threshold_db" type="float"/>
<param default="10000" min="0" name="environment_rms_attack_release_ms" type="int32"/> <param default="50" min="0" name="environment_low_to_high_ms" type="int32"/>
<param default="1" min="0" name="environment_loudness_ratio_band0" type="float"/> <param default="1" min="0" name="environment_loudness_ratio_band0" type="float"/>
<param default="1" min="0" name="environment_loudness_ratio_band1" type="float"/> <param default="1" min="0" name="environment_loudness_ratio_band1" type="float"/>
<param default="1" min="0" name="environment_loudness_ratio_band2" type="float"/> <param default="1" min="0" name="environment_loudness_ratio_band2" type="float"/>
@ -358,6 +436,7 @@
<param default="-30" name="drc_long_term_window_upper_db_band0" type="float"/> <param default="-30" name="drc_long_term_window_upper_db_band0" type="float"/>
<param default="-30" name="drc_long_term_window_upper_db_band1" type="float"/> <param default="-30" name="drc_long_term_window_upper_db_band1" type="float"/>
<param default="-30" name="drc_long_term_window_upper_db_band2" type="float"/> <param default="-30" name="drc_long_term_window_upper_db_band2" type="float"/>
<param default="10000" min="0" name="environment_high_to_low_ms" type="int32"/>
</struct> </struct>
</module> </module>
<module id="10000" name="Eraser"> <module id="10000" name="Eraser">

View file

@ -0,0 +1,257 @@
-0.173836633563042,0.000000000000000
0.242385819554329,-0.148582845926285
-0.852064788341522,-0.402201473712921
-0.492207318544388,1.317438602447510
1.041713714599609,0.581316351890564
0.683874487876892,-0.110319815576077
0.838448524475098,-0.719300329685211
-0.570563912391663,-1.231699109077454
-1.092823505401611,0.185091122984886
-0.341068267822266,0.860776543617249
0.792590320110321,0.785209774971008
0.977174162864685,-0.748628377914429
-0.538429260253906,-0.973720312118530
-0.977207601070404,0.231359928846359
0.016320183873177,1.063154458999634
1.096212148666382,0.086107797920704
0.214197799563408,-0.964727044105530
-0.768749117851257,-0.429966896772385
-0.634543895721436,0.664543211460114
0.624764800071716,0.723800182342529
0.726196646690369,-0.503743648529053
-0.285282969474792,-0.740438580513000
-0.791784405708313,0.101552955806255
0.014178924262524,0.811689376831055
0.749470055103302,0.066090069711208
0.209670424461365,-0.645494341850281
-0.565871596336365,-0.353844046592712
-0.418283522129059,0.505040943622589
0.405711889266968,0.429695010185242
0.456795752048492,-0.260147213935852
-0.128597170114517,-0.494599521160126
-0.489476501941681,0.047259822487831
-0.021141551434994,0.433350205421448
0.364721417427063,0.116500638425350
0.213575303554535,-0.301555722951889
-0.228171825408936,-0.265777349472046
-0.276278078556061,0.135787785053253
0.035841468721628,0.279294490814209
0.278359532356262,0.059156835079193
0.141550391912460,-0.248871073126793
-0.185418635606766,-0.204667225480080
-0.250191271305084,0.107227526605129
0.026445116847754,0.286049485206604
0.305759966373444,0.058921325951815
0.149192124605179,-0.289921641349792
-0.239105045795441,-0.241308212280273
-0.331643849611282,0.179478853940964
0.121077105402946,0.407643616199493
0.454970598220825,-0.039450645446777
0.080027498304844,-0.481402456760406
-0.506844937801361,-0.208412766456604
-0.312547862529755,0.522853851318359
0.498855382204056,0.403536766767502
0.510064840316772,-0.437597453594208
-0.377610146999359,-0.620988845825195
-0.697241663932800,0.324678063392639
0.235374376177788,0.735129177570343
0.772006750106812,-0.094884708523750
0.047271415591240,-0.820362508296967
-0.840293407440186,-0.157246574759483
-0.274100422859192,0.801541686058044
0.736275255680084,0.435848534107208
0.601215600967407,-0.692193627357483
-0.656605362892151,-0.708631157875061
-0.772448182106018,0.574384212493896
0.433797508478165,0.850875020027161
0.945652484893799,-0.282854080200195
-0.151249796152115,-1.004791498184204
-1.011250138282776,0.008200600743294
-0.174709498882294,1.000120401382446
0.987199187278748,0.364540457725525
0.514061868190765,-0.940889835357666
-0.837700843811035,-0.634244918823242
-0.766449451446533,0.699596285820007
0.557416260242462,0.901901483535767
0.988364577293396,-0.406681120395660
-0.219250351190567,-1.012981057167053
-1.017900109291077,-0.012652322649956
-0.257403731346130,1.021798372268677
0.982309997081757,0.473335921764374
0.655092835426331,-0.862854480743408
-0.690668702125549,-0.832909584045410
-1.012093067169189,0.512050271034241
0.322526484727859,1.142140030860901
1.182460308074951,-0.083425417542458
0.208043783903122,-1.167366266250610
-1.145405292510986,-0.506238222122192
-0.776591479778290,1.081450700759888
0.904352903366089,1.036171078681946
1.317101359367371,-0.637289762496948
-0.373759329319000,-1.603958129882812
-1.836384534835815,0.119895085692406
-0.213222965598106,1.985391616821289
2.098172903060913,0.630232095718384
1.004812955856323,-2.226428508758545
-2.326400756835938,-1.277387261390686
-1.558870315551758,2.300087451934814
2.149518728256226,1.936930775642395
2.310348510742188,-2.002383232116699
-1.929415225982666,-2.551796197891235
-2.725524425506592,1.824144601821899
1.562644720077515,2.977864265441895
3.286571979522705,-1.212924003601074
-0.947629094123840,-3.499035358428955
-3.582513332366943,0.781433224678040
0.555705904960632,3.657513618469238
3.786917686462402,-0.195709973573685
0.184216201305389,-3.898949384689331
-3.937983036041260,-0.490165829658508
-0.807674288749695,3.939336538314819
3.918967247009277,1.250731945037842
1.773844242095947,-3.822382211685181
-3.625384807586670,-2.251073837280273
-2.643640041351318,3.374036788940430
3.099567413330078,2.960297107696533
3.133923768997192,-2.814878702163696
-2.616678714752197,-3.093299627304077
-2.921704053878784,2.638226747512817
2.833156108856201,2.797400236129761
2.780341148376465,-2.939303159713745
-2.746781349182129,-2.778412342071533
-2.717061281204224,2.300598621368408
1.764142394065857,2.612650394439697
2.466741323471069,-1.203269004821777
-0.616797924041748,-2.220867395401001
-1.861803293228149,0.079271338880062
-0.292150139808655,1.468179106712341
1.107574820518494,0.472232758998871
0.516570627689362,-0.783792018890381
-0.533971190452576,-0.455455601215363
-0.312748193740845,0.470328956842422
0.634984731674194,0.201528042554855
0.270777344703674,-0.881652116775513
-0.998477935791016,-0.536560773849487
-0.857912182807922,0.917592346668243
0.727821052074432,1.102127313613892
1.258507847785950,-0.512215733528137
-0.264002084732056,-1.368798017501831
-1.423986077308655,-0.036222696304321
-0.343159914016724,1.377644777297974
1.216578006744385,0.581943273544312
0.717325448989868,-0.974682807922363
-0.698922038078308,-0.757830262184143
-0.718582153320312,0.430885791778564
0.206769347190857,0.610825657844543
0.459081590175629,-0.050141096115112
0.035877108573914,-0.303926020860672
-0.180336505174637,-0.064474344253540
-0.057817459106445,0.098741173744202
0.049108982086182,0.040464401245117
0.027592658996582,-0.019148498773575
-0.004106640815735,-0.018558859825134
-0.008564829826355,0.000858813524246
0.001663655042648,0.001200556755066
0.001132488250732,-0.000094592571259
0.002042055130005,-0.003203392028809
-0.000799179077148,-0.000734806060791
0.001559019088745,-0.002381563186646
-0.000488758087158,-0.000489830970764
0.001672983169556,-0.002475142478943
-0.000540196895599,-0.000539422035217
0.001655697822571,-0.002411484718323
-0.000513374805450,-0.000504493713379
0.001695871353149,-0.002388268709183
-0.000518366694450,-0.000494480133057
0.001726090908051,-0.002329871058464
-0.000490784645081,-0.000469148159027
0.001772999763489,-0.002297312021255
-0.000490993261337,-0.000457167625427
0.001808583736420,-0.002234041690826
-0.000462949275970,-0.000432431697845
0.001857317984104,-0.002195537090302
-0.000460684299469,-0.000421538949013
0.001891791820526,-0.002129554748535
-0.000433325767517,-0.000397950410843
0.001938492059708,-0.002086818218231
-0.000429719686508,-0.000388354063034
0.001969873905182,-0.002020239830017
-0.000404343008995,-0.000365793704987
0.002013087272644,-0.001974686980247
-0.000399917364120,-0.000357747077942
0.002040743827820,-0.001908466219902
-0.000376641750336,-0.000336408615112
0.002080500125885,-0.001861304044724
-0.000372081995010,-0.000329554080963
0.002104461193085,-0.001796156167984
-0.000350505113602,-0.000309512019157
0.002140559256077,-0.001747786998749
-0.000346064567566,-0.000303551554680
0.002161234617233,-0.001684010028839
-0.000326514244080,-0.000284239649773
0.002193838357925,-0.001635164022446
-0.000321894884109,-0.000278890132904
0.002211630344391,-0.001572936773300
-0.000304579734802,-0.000260710716248
0.002240836620331,-0.001523971557617
-0.000299960374832,-0.000255942344666
0.002256155014038,-0.001463308930397
-0.000284597277641,-0.000238955020905
0.002282410860062,-0.001414135098457
-0.000280067324638,-0.000234305858612
0.002295404672623,-0.001355230808258
-0.000266030430794,-0.000218003988266
0.002319097518921,-0.001306161284447
-0.000261902809143,-0.000213921070099
0.002330109477043,-0.001248627901077
-0.000249803066254,-0.000198327004910
0.002351291477680,-0.001199841499329
-0.000245630741119,-0.000194519758224
0.002360563725233,-0.001144111156464
-0.000234991312027,-0.000179864466190
0.002379685640335,-0.001095354557037
-0.000231094658375,-0.000175788998604
0.002387598156929,-0.001040909439325
-0.000221755355597,-0.000161916017532
0.002404391765594,-0.000992409884930
-0.000218093395233,-0.000157848000526
0.002411097288132,-0.000939324498177
-0.000210270285606,-0.000144556164742
0.002425950020552,-0.000890895724297
-0.000206723809242,-0.000140480697155
0.002431631088257,-0.000839233398438
-0.000199943780899,-0.000128179788589
0.002444565296173,-0.000790990889072
-0.000196672976017,-0.000123679637909
0.002449497580528,-0.000740185379982
-0.000190816819668,-0.000112041831017
0.002460539340973,-0.000692322850227
-0.000188171863556,-0.000107303261757
0.002464607357979,-0.000642240047455
-0.000183075666428,-0.000096097588539
0.002474129199982,-0.000594824552536
-0.000180780887604,-0.000091351568699
0.002477355301380,-0.000545412302017
-0.000176608562469,-0.000080950558186
0.002485364675522,-0.000497967004776
-0.000174343585968,-0.000075668096542
0.002487808465958,-0.000449299812317
-0.000171303749084,-0.000065863132477
0.002494215965271,-0.000402361154556
-0.000169441103935,-0.000060468912125
0.002496182918549,-0.000354103744030
-0.000166848301888,-0.000050842761993
0.002501428127289,-0.000306822359562
-0.000165581703186,-0.000045210123062
0.002502709627151,-0.000259131193161
-0.000164091587067,-0.000036507844925
0.002506181597710,-0.000211864709854
-0.000162899494171,-0.000029996037483
0.002507179975510,-0.000164747238159
-0.000161617994308,-0.000021517276764
0.002509415149689,-0.000117711722851
-0.000161111354828,-0.000015050172806
0.002509683370590,-0.000070750713348
-0.000160753726959,-0.000007316470146
0.002510413527489,-0.000023618340492
-0.000160500407219,0.000000000000000,

View file

@ -0,0 +1,257 @@
-0.208767235279083,0.000000000000000
0.293603062629700,-0.128885015845299
-0.849168896675110,-0.354640275239944
-0.296070516109467,1.318282604217529
1.102510690689087,0.399157732725143
0.689601540565491,-0.343215286731720
0.401314318180084,-0.885072708129883
-0.745340228080750,-0.701255321502686
-0.608862280845642,0.317559868097305
-0.171893715858459,0.462727785110474
0.443696022033691,0.533314824104309
0.698573589324951,-0.433808386325836
-0.270445585250854,-0.712282121181488
-0.689730405807495,-0.011700268834829
-0.250297307968140,0.711119711399078
0.730842351913452,0.374141305685043
0.458365499973297,-0.652860403060913
-0.490714490413666,-0.583603382110596
-0.721884965896606,0.357432901859283
0.288408935070038,0.791424751281738
0.779686212539673,-0.190930575132370
-0.010846681892872,-0.757638096809387
-0.771159172058105,-0.166629791259766
-0.256216257810593,0.770854473114014
0.687961459159851,0.312769174575806
0.432438045740128,-0.545460641384125
-0.430606484413147,-0.586455583572388
-0.668807148933411,0.365799605846405
0.282431662082672,0.668348789215088
0.673416495323181,-0.142274186015129
-0.006776034832001,-0.714561939239502
-0.717824578285217,-0.062974944710732
-0.108374051749706,0.635174870491028
0.522398948669434,0.205006197094917
0.339917212724686,-0.444951593875885
-0.384323716163635,-0.438630759716034
-0.485855996608734,0.292644113302231
0.182632729411125,0.531622767448425
0.586631655693054,-0.100237414240837
-0.042508669197559,-0.600793480873108
-0.557912826538086,-0.034084700047970
-0.136715874075890,0.510089695453644
0.489653646945953,0.222880363464355
0.265817433595657,-0.456150829792023
-0.369175732135773,-0.288532286882401
-0.320697844028473,0.257657229900360
0.172545045614243,0.355169475078583
0.365657627582550,-0.113217383623123
-0.046382918953896,-0.346459031105042
-0.314849942922592,-0.032282393425703
-0.099206812679768,0.283656418323517
0.247895464301109,0.146288350224495
0.184826284646988,-0.197405725717545
-0.132681429386139,-0.216903358697891
-0.232830882072449,0.065321467816830
0.005581188946962,0.230040609836578
0.212895318865776,0.048025410622358
0.103936038911343,-0.181651011109352
-0.137680947780609,-0.161854177713394
-0.208199679851532,0.089032948017120
0.037795953452587,0.232682555913925
0.242419540882111,0.024188891053200
0.095364034175873,-0.248958528041840
-0.246736198663712,-0.158092990517616
-0.205379247665405,0.220313847064972
0.171955674886703,0.253246784210205
0.310240566730499,-0.122316420078278
-0.078104101121426,-0.356877833604813
-0.376216292381287,0.020009309053421
-0.063942760229111,0.382821112871170
0.395289957523346,0.152460113167763
0.219222009181976,-0.399486601352692
-0.370254755020142,-0.272017836570740
-0.336406826972961,0.315062820911407
0.261007279157639,0.408933728933334
0.459588110446930,-0.206577032804489
-0.124326385557652,-0.482002913951874
-0.505871415138245,0.012544333934784
-0.093142673373222,0.546351015567780
0.573288977146149,0.170690223574638
0.242008924484253,-0.554146528244019
-0.502578735351562,-0.334171652793884
-0.435388386249542,0.454413443803787
0.412236869335175,0.513468980789185
0.561712622642517,-0.348488003015518
-0.256363153457642,-0.599303007125854
-0.632432103157043,0.160884767770767
0.075349718332291,0.642630636692047
0.618862867355347,0.019011549651623
0.136067956686020,-0.578462600708008
-0.542099475860596,-0.255651712417603
-0.352328062057495,0.502447843551636
0.436475396156311,0.433031976222992
0.520500063896179,-0.342692285776138
-0.245222508907318,-0.610437512397766
-0.672702372074127,0.158442094922066
0.068350665271282,0.693965613842010
0.693610131740570,0.039912655949593
0.153807327151299,-0.689620733261108
-0.670032620429993,-0.251194030046463
-0.334361314773560,0.613805413246155
0.525955319404602,0.422164082527161
0.512363433837891,-0.430719137191772
-0.334024429321289,-0.578593373298645
-0.609642624855042,0.215952515602112
0.067378997802734,0.625766396522522
0.642717957496643,0.086463317275047
0.215880900621414,-0.641896545886993
-0.596894741058350,-0.326404511928558
-0.444774478673935,0.514230966567993
0.422754973173141,0.570225119590759
0.668064653873444,-0.330277621746063
-0.217657655477524,-0.718117594718933
-0.741320729255676,0.076666861772537
-0.073082149028778,0.760958075523376
0.762383103370667,0.215123802423477
0.361439079046249,-0.718973159790039
-0.640442967414856,-0.528401970863342
-0.702011823654175,0.558951973915100
0.473745346069336,0.850081562995911
0.963684976100922,-0.351055771112442
-0.186380505561829,-1.062218070030212
-1.153697252273560,0.025838196277618
-0.095934391021729,1.213608503341675
1.217080831527710,0.204882681369781
0.343654662370682,-1.174959540367126
-1.118147969245911,-0.505293726921082
-0.649943828582764,1.055593729019165
0.969523906707764,0.770734429359436
0.896226882934570,-0.848451614379883
-0.700852453708649,-1.029241919517517
-1.130725860595703,0.532816290855408
0.336461603641510,1.177240610122681
1.192896366119385,-0.112361967563629
0.115832686424255,-1.202241182327271
-1.187945604324341,-0.324890613555908
-0.515919625759125,1.126037359237671
1.033056974411011,0.698885560035706
0.865992546081543,-0.938396096229553
-0.829645276069641,-0.998667597770691
-1.090143203735352,0.671792030334473
0.474848181009293,1.139683246612549
1.132127523422241,-0.295804947614670
-0.166468858718872,-1.048966169357300
-0.900772213935852,0.061694651842117
-0.044798314571381,0.726602494716644
0.557217657566071,0.131805717945099
0.164653033018112,-0.397953808307648
-0.251486659049988,-0.149377405643463
-0.121197365224361,0.134897530078888
0.062076479196548,0.096490308642387
0.067665547132492,-0.025046259164810
-0.005864500999451,-0.035501003265381
-0.014935836195946,-0.003570795059204
-0.004104822874069,0.009699866175652
0.007058918476105,0.001055866479874
0.000856474041939,-0.000561684370041
0.002517014741898,-0.002228915691376
-0.000955656170845,0.000832945108414
0.002630054950714,-0.001215919852257
-0.000467114150524,0.000707209110260
0.002411782741547,-0.001330792903900
-0.000494681298733,0.000650316476822
0.002234190702438,-0.001244634389877
-0.000456914305687,0.000610366463661
0.002094760537148,-0.001186847686768
-0.000430822372437,0.000581309199333
0.001994028687477,-0.001136064529419
-0.000415235757828,0.000541232526302
0.001898080110550,-0.001083433628082
-0.000397831201553,0.000519149005413
0.001832127571106,-0.001039892435074
-0.000388830900192,0.000485092401505
0.001764222979546,-0.000994026660919
-0.000376984477043,0.000466853380203
0.001718759536743,-0.000955656170845
-0.000371813774109,0.000437617301941
0.001668632030487,-0.000915020704269
-0.000363498926163,0.000422179698944
0.001636296510696,-0.000880673527718
-0.000360555946827,0.000396728515625
0.001597940921783,-0.000844091176987
-0.000354558229446,0.000383347272873
0.001574501395226,-0.000812798738480
-0.000352963805199,0.000360801815987
0.001544557511806,-0.000779286026955
-0.000348493456841,0.000348940491676
0.001527171581984,-0.000750452280045
-0.000347808003426,0.000328630208969
0.001503191888332,-0.000719517469406
-0.000344499945641,0.000318046659231
0.001490168273449,-0.000692531466484
-0.000344328582287,0.000299639999866
0.001470655202866,-0.000663623213768
-0.000341769307852,0.000289954245090
0.001460753381252,-0.000638246536255
-0.000341914594173,0.000273205339909
0.001444786787033,-0.000611167401075
-0.000340044498444,0.000264152884483
0.001437209546566,-0.000586867332458
-0.000340387225151,0.000248681753874
0.001423921436071,-0.000561229884624
-0.000339031219482,0.000240273773670
0.001418061554432,-0.000537984073162
-0.000339463353157,0.000225968658924
0.001406863331795,-0.000513508915901
-0.000338293612003,0.000217974185944
0.001402437686920,-0.000491205602884
-0.000338837504387,0.000204473733902
0.001392990350723,-0.000467736274004
-0.000338040292263,0.000196814537048
0.001389488577843,-0.000446036458015
-0.000338554382324,0.000184208154678
0.001381486654282,-0.000423476099968
-0.000337943434715,0.000176846981049
0.001378759741783,-0.000402390956879
-0.000338435173035,0.000164948403835
0.001372046768665,-0.000380605459213
-0.000337988138199,0.000157669186592
0.001369878649712,-0.000360012054443
-0.000338360667229,0.000146418809891
0.001364246010780,-0.000338837504387
-0.000338137149811,0.000139251351357
0.001362591981888,-0.000318586826324
-0.000338561832905,0.000128626823425
0.001357793807983,-0.000297948718071
-0.000338256359100,0.000121682882309
0.001356571912766,-0.000278219580650
-0.000338599085808,0.000111490488052
0.001352459192276,-0.000258013606071
-0.000338479876518,0.000104397535324
0.001351624727249,-0.000238478183746
-0.000338762998581,0.000094667077065
0.001348286867142,-0.000218659639359
-0.000338762998581,0.000087648630142
0.001347668468952,-0.000199407339096
-0.000338882207870,0.000078417360783
0.001344859600067,-0.000179916620255
-0.000338882207870,0.000071272253990
0.001344397664070,-0.000160813331604
-0.000339105725288,0.000062346458435
0.001342296600342,-0.000141590833664
-0.000339075922966,0.000055253505707
0.001342028379440,-0.000122543424368
-0.000339210033417,0.000046551227570
0.001340359449387,-0.000103577971458
-0.000339224934578,0.000039339065552
0.001340150833130,-0.000084653496742
-0.000339299440384,0.000031024217606
0.001339137554169,-0.000065743923187
-0.000339344143867,0.000023573637009
0.001338988542557,-0.000047028064728
-0.000339448451996,0.000015437602997
0.001338481903076,-0.000028133392334
-0.000339359045029,0.000007838010788
0.001338392496109,-0.000009343028069
-0.000339388847351,0.000000000000000,

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -5,7 +5,7 @@
# Putting any value other than 1 would be equivalent to not supported. # Putting any value other than 1 would be equivalent to not supported.
######################################################################################################## ########################################################################################################
[HAL_SUPPORTED_FEATURES] [HAL_SUPPORTED_FEATURES]
CUSTOM_ACTION_258=1 CUSTOM_ACTION_260=1
######################################################################################################## ########################################################################################################
# This defined the options of supported sample rates. # This defined the options of supported sample rates.
@ -19,20 +19,22 @@ SR_COMMON = 48000
# This can be configured by Waves or platform vendor. # This can be configured by Waves or platform vendor.
######################################################################################################## ########################################################################################################
[HAL_ORIENTATION_SUBTYPES] [HAL_ORIENTATION_SUBTYPES]
OST_SPEAKER = 0:12,90:13,180:12,270:0|13 OST_SPEAKER = 0:12,90:13,180:12,270:0|14
######################################################################################################## ########################################################################################################
# This defines available preset configurations. # This defines available preset configurations.
# This should be configured by Waves only unless platform vendor is familiar with MPS structure. # This should be configured by Waves only unless platform vendor is familiar with MPS structure.
######################################################################################################## ########################################################################################################
[HAL_SUPPORTED_PRESETS] [HAL_SUPPORTED_PRESETS]
SPEAKER_MUSIC_THROTTLE= OM:1,SM:2,OST:OST_SPEAKER SPEAKER_MUSIC_THROTTLE= OM:1,SM:3,OST:OST_SPEAKER
SPEAKER_SAFE_MUSIC_THROTTLE = OM:10,SM:2,OST:OST_SPEAKER SPEAKER_SAFE_MUSIC_THROTTLE = OM:10,SM:3
SPEAKER_SAFE_CALL_THROTTLE = OM:10,SM:2,OST:OST_SPEAKER SPEAKER_SAFE_MUSIC_THROTTLE_LITE = OM:9,SM:3
SPEAKER_MUSIC = OM:1,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_MUSIC = OM:10,SM:2
SPEAKER_SAFE_CALL = OM:10,SM:2,OST:OST_SPEAKER SPEAKER_SAFE_MUSIC_LITE = OM:9,SM:2
HEADSET_MUSIC = OM:2,SM:2 SPEAKER_MUSIC_RESERVED = OM:1,SM:2,OST:OST_SPEAKER
SPEAKER_MUSIC_RESERVED_THROTTLE = OM:1,SM:3,OST:OST_SPEAKER
# _RESERVED OM and SM are temporary and will be updated with tuning file.
######################################################################################################## ########################################################################################################
# This defines available CONTROL configurations. Only define the CONTROL if you need it. # This defines available CONTROL configurations. Only define the CONTROL if you need it.
@ -40,9 +42,7 @@ HEADSET_MUSIC = OM:2,SM:2
# This can be configured by Waves or platform vendor. # This can be configured by Waves or platform vendor.
######################################################################################################## ########################################################################################################
[HAL_SUPPORTED_CONTROLS] [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_MUSIC_THROTTLE|SPEAKER_SAFE_MUSIC_THROTTLE|SPEAKER_SAFE_MUSIC_THROTTLE_LITE|SPEAKER_SAFE_MUSIC_LITE
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
[COEFS_CONVERTER_SETTING] [COEFS_CONVERTER_SETTING]
AlgFxPath=/vendor/lib/libAlgFx_HiFi3z.so AlgFxPath=/vendor/lib/libAlgFx_HiFi3z.so
@ -55,10 +55,17 @@ AlgFxPath64=/vendor/lib64/libAlgFx_HiFi3z.so
#AudioFormatSampleSize=4 #AudioFormatSampleSize=4
#AudioFormatIncrement=8 #AudioFormatIncrement=8
[CUSTOM_ACTION_258] [CUSTOM_ACTION_260]
CASE_1=PRIORITY:0,NUMBERS:2:0|1:0,PRESET:SPEAKER_MUSIC CASE_1=PRIORITY:0,NUMBERS:2:0|1:1|2:0,PRESET:SPEAKER_MUSIC
CASE_2=PRIORITY:1,NUMBERS:1|2|4194304:2|3|4:0,PRESET:SPEAKER_SAFE_CALL CASE_2=PRIORITY:1,NUMBERS:1|2|4194304:2|3|4:1|2:0|1,PRESET:SPEAKER_SAFE_MUSIC_LITE
CASE_3=PRIORITY:2,NUMBERS:1|4194304:0|1:0,PRESET:SPEAKER_SAFE_MUSIC CASE_3=PRIORITY:2,NUMBERS:1|4194304:0|1:1|2:0|1,PRESET:SPEAKER_SAFE_MUSIC
CASE_4=PRIORITY:3,NUMBERS:2:0|1:4,PRESET:SPEAKER_MUSIC_THROTTLE CASE_4=PRIORITY:3,NUMBERS:2:0|1:0:0,PRESET:SPEAKER_MUSIC_THROTTLE
CASE_5=PRIORITY:4,NUMBERS:1|2|4194304:2|3|4:4,PRESET:SPEAKER_SAFE_CALL_THROTTLE CASE_5=PRIORITY:4,NUMBERS:1|2|4194304:2|3|4:0:0|1,PRESET:SPEAKER_SAFE_MUSIC_THROTTLE_LITE
CASE_6=PRIORITY:5,NUMBERS:1|4194304:0|1:4,PRESET:SPEAKER_SAFE_MUSIC_THROTTLE CASE_6=PRIORITY:5,NUMBERS:1|4194304:0|1:0:0|1,PRESET:SPEAKER_SAFE_MUSIC_THROTTLE
CASE_7=PRIORITY:6,NUMBERS:2:0|1:1|2:1,PRESET:SPEAKER_MUSIC_RESERVED
CASE_8=PRIORITY:7,NUMBERS:2:0|1:0:1,PRESET:SPEAKER_MUSIC_RESERVED_THROTTLE
# Action 260 parameters: audio_devices_t, audio_mode_t, throttle_control_state_t, sound_usage_t
# - audio_devices_t : current active device
# - audio_mode_t : 0 - normal, 1 - incoming, 2 - voice call, 3 - voip
# - throttle_control_state_t: 0 - Enabled, 1 - Disabled, 2 - Bypassed
# - sound_usage_t: 0 - Music, 1 - Movie

27
bluetooth/Android.bp Normal file
View file

@ -0,0 +1,27 @@
//
// Copyright (C) 2024 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
soong_namespace {
}
package {
default_applicable_licenses: ["device_google_tegu_license"],
}
prebuilt_etc {
name: "le_audio_codec_capabilities.xml",
vendor: true,
src: "le_audio_codec_capabilities.xml",
}

View file

@ -3,20 +3,25 @@
# Uart port name # Uart port name
UartPort = /dev/ttySAC18 UartPort = /dev/ttySAC18
# Userial type # Priority of uart type
# UserialType = 2 # HciUartSocket = 0
# SerialUartPort = 1
# SerialAocUartPort = 2
# UserialInvalid = 3
UserialTypePriority = 1
# <boolean> Enable check whether let aoc controls power pin # <string> The hardware support which offload capability
AocPowerPinCtrlCheckEnable = true BtOffloadCap = AOC
# <string> The BT Offload Trunk Flag Group Name
BtOffloadTrunkGroup = 25M_AOC
# Sar backOff high resolution support # Sar backOff high resolution support
SarBackOffHighResolution = true SarBackOffHighResolution = true
# Update BQR Event Mask property value
BqrEventMaskValueUpdate = 262238
BtA2dpOffloadCap = sbc-aac-aptx-aptxhd-ldac-opus
BtOpusEnabled = true
AccelBtDisable = false AccelBtDisable = false
BtHalRecoveryByRestart = true
# Update BQR Event Mask property value
BqrEventMaskValueUpdate = 295006

View file

@ -1,12 +0,0 @@
# This is BTBCM HAL overlay configuration file.
# Uart port name
UartPort = /dev/ttySAC18
# Userial type
# UserialType = 2
# Sar backOff high resolution support
SarBackOffHighResolution = true
AccelBtDisable = false

View file

@ -8,6 +8,12 @@ on init
# eSE streset tool name # eSE streset tool name
setprop persist.vendor.se.streset libstreset24 setprop persist.vendor.se.streset libstreset24
# Permissions for display
on fs
# Permission for SSC mode enable
chown system system /sys/class/backlight/panel0-backlight/ssc_en
chmod 664 /sys/class/backlight/panel0-backlight/ssc_en
on early-boot on early-boot
# Wait for insmod_sh to finish all common modules # Wait for insmod_sh to finish all common modules
wait_for_prop vendor.common.modules.ready 1 wait_for_prop vendor.common.modules.ready 1
@ -39,10 +45,21 @@ on post-fs-data
# ODPM # ODPM
on early-boot && property:ro.boot.hardware.sku=GXQ96 on early-boot && property:ro.boot.hardware.sku=GXQ96
write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S"
write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S"
on early-boot && property:ro.boot.hardware.sku=G3Y12 on early-boot && property:ro.boot.hardware.sku=G3Y12
write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S" write /sys/bus/iio/devices/iio:device0/enabled_rails "CH11=BUCK12S"
write /sys/bus/iio/devices/iio:device1/enabled_rails "CH11=BUCK12S"
# Fingerprint # Start the twoshay touch service
on property:init.svc.vendor.fingerprint-goodix=running && \ on property:sys.boot_completed=1
property:vendor.fingerprint.allowed.running="" chown system input /dev/touch_offload
stop vendor.fingerprint-goodix chmod 660 /dev/touch_offload
start twoshay
# Toggle high_sensitivity according to touch_sensitivity_mode
on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1
write /sys/devices/virtual/goog_touch_interface/gti.0/screen_protector_mode_enabled 0
on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1
write /sys/devices/virtual/goog_touch_interface/gti.0/screen_protector_mode_enabled 1

View file

@ -14,8 +14,24 @@
# limitations under the License. # limitations under the License.
# #
TARGET_KERNEL_DIR ?= device/google/tegu-kernel ifdef RELEASE_GOOGLE_TEGU_RADIO_DIR
TARGET_BOARD_KERNEL_HEADERS := device/google/tegu-kernel/kernel-headers RELEASE_GOOGLE_PRODUCT_RADIO_DIR := $(RELEASE_GOOGLE_TEGU_RADIO_DIR)
endif
ifdef RELEASE_GOOGLE_TEGU_RADIOCFG_DIR
RELEASE_GOOGLE_PRODUCT_RADIOCFG_DIR := $(RELEASE_GOOGLE_TEGU_RADIOCFG_DIR)
endif
RELEASE_GOOGLE_BOOTLOADER_TEGU_DIR ?= 25D4# Keep this for pdk TODO: b/327119000
RELEASE_GOOGLE_PRODUCT_BOOTLOADER_DIR := bootloader/$(RELEASE_GOOGLE_BOOTLOADER_TEGU_DIR)
$(call soong_config_set,tegu_bootloader,prebuilt_dir,$(RELEASE_GOOGLE_BOOTLOADER_TEGU_DIR))
ifdef RELEASE_KERNEL_TEGU_DIR
TARGET_KERNEL_DIR ?= $(RELEASE_KERNEL_TEGU_DIR)
TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_KERNEL_TEGU_DIR)/kernel-headers
else
TARGET_KERNEL_DIR ?= device/google/tegu-kernels/6.1/25D4
TARGET_BOARD_KERNEL_HEADERS ?= device/google/tegu-kernels/6.1/25D4/kernel-headers
endif
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
USE_UWBFIELDTESTQM := true USE_UWBFIELDTESTQM := true
@ -30,23 +46,27 @@ $(call inherit-product-if-exists, vendor/google_devices/zumapro/proprietary/devi
$(call inherit-product-if-exists, vendor/google_devices/tegu/proprietary/tegu/device-vendor-tegu.mk) $(call inherit-product-if-exists, vendor/google_devices/tegu/proprietary/tegu/device-vendor-tegu.mk)
$(call inherit-product-if-exists, vendor/qorvo/uwb/qm35-hal/Device.mk) $(call inherit-product-if-exists, vendor/qorvo/uwb/qm35-hal/Device.mk)
# display
DEVICE_PACKAGE_OVERLAYS += device/google/tegu/tegu/overlay
ifeq ($(RELEASE_PIXEL_AIDL_AUDIO_HAL),true)
USE_AUDIO_HAL_AIDL := true
endif
include device/google/tegu/audio/tegu/audio-tables.mk include device/google/tegu/audio/tegu/audio-tables.mk
include device/google/zumapro/device-shipping-common.mk include device/google/zumapro/device-shipping-common.mk
include hardware/google/pixel/vibrator/cs40l26/device.mk include hardware/google/pixel/vibrator/cs40l26/device.mk
include device/google/gs-common/bcmbt/bluetooth.mk include device/google/gs-common/bcmbt/bluetooth.mk
include device/google/gs-common/touch/syna/syna20.mk include device/google/gs-common/touch/gti/predump_gti.mk
include device/google/gs-common/touch/syna/predump_syna20.mk
include device/google/gs-common/modem/radio_ext/radio_ext.mk
# go/lyric-soong-variables # go/lyric-soong-variables
# # TODO(298309659): Needs to check with owner later
$(warning camera_hardware set to zuma on zumapro target)
$(call soong_config_set,lyric,camera_hardware,tegu) $(call soong_config_set,lyric,camera_hardware,tegu)
$(warning tuning_product set to zuma on zumapro target) $(call soong_config_set,lyric,tuning_product,tegu)
$(call soong_config_set,lyric,tuning_product,ripcurrent) $(call soong_config_set,google3a_config,target_device,tegu)
$(warning target_device set to zuma on zumapro target)
$(call soong_config_set,google3a_config,target_device,ripcurrent)
# display PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.ignore_hdr_camera_layers=true
DEVICE_PACKAGE_OVERLAYS += device/google/tegu/tegu/overlay
# Init files # Init files
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
@ -81,14 +101,27 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \ frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
device/google/tegu/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf device/google/tegu/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf
# Thermal VT estimator
PRODUCT_PACKAGES += \
libthermal_tflite_wrapper
# Thermal Model
TARGET_VENDOR_THERMAL_CONFIG_PATH := device/google/tegu/thermal
PRODUCT_COPY_FILES += \
$(TARGET_VENDOR_THERMAL_CONFIG_PATH)/vt_estimation_model_tegu.tflite:$(TARGET_COPY_OUT_VENDOR)/etc/vt_estimation_model.tflite \
# Bluetooth HAL # Bluetooth HAL
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/tegu/bluetooth/bt_vendor_overlay_tegu.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf device/google/tegu/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf
PRODUCT_PROPERTY_OVERRIDES += \ PRODUCT_PROPERTY_OVERRIDES += \
ro.bluetooth.a2dp_offload.supported=true \ ro.bluetooth.a2dp_offload.supported=true \
persist.bluetooth.a2dp_offload.disabled=false \ persist.bluetooth.a2dp_offload.disabled=false \
persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac
# POF
PRODUCT_PRODUCT_PROPERTIES += \
ro.bluetooth.finder.supported=true
# Bluetooth hci_inject test tool # Bluetooth hci_inject test tool
PRODUCT_PACKAGES_DEBUG += \ PRODUCT_PACKAGES_DEBUG += \
hci_inject hci_inject
@ -105,20 +138,9 @@ PRODUCT_PACKAGES_DEBUG += \
PRODUCT_PRODUCT_PROPERTIES += \ PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.a2dp_aac.vbr_supported=true persist.bluetooth.a2dp_aac.vbr_supported=true
# Override BQR mask to enable LE Audio Choppy report, remove BTRT logging # Bluetooth Super Wide Band
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PRODUCT_PROPERTIES += \ PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.bqr.event_mask=295006 \ bluetooth.hfp.swb.supported=true
persist.bluetooth.bqr.vnd_quality_mask=29 \
persist.bluetooth.bqr.vnd_trace_mask=0 \
persist.bluetooth.vendor.btsnoop=true
else
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.bqr.event_mask=295006 \
persist.bluetooth.bqr.vnd_quality_mask=16 \
persist.bluetooth.bqr.vnd_trace_mask=0 \
persist.bluetooth.vendor.btsnoop=false
endif
# default BDADDR for EVB only # default BDADDR for EVB only
PRODUCT_PROPERTY_OVERRIDES += \ PRODUCT_PROPERTY_OVERRIDES += \
@ -149,9 +171,53 @@ PRODUCT_PRODUCT_PROPERTIES += \
ro.bluetooth.leaudio_offload.supported=true \ ro.bluetooth.leaudio_offload.supported=true \
persist.bluetooth.leaudio_offload.disabled=false \ persist.bluetooth.leaudio_offload.disabled=false \
# Include Bluetooth soong namespace
PRODUCT_SOONG_NAMESPACES += \
device/google/tegu/bluetooth
# Bluetooth LE Auido offload capabilities setting # Bluetooth LE Auido offload capabilities setting
PRODUCT_COPY_FILES += \ PRODUCT_PACKAGES += \
device/google/tegu/bluetooth/le_audio_codec_capabilities.xml:$(TARGET_COPY_OUT_VENDOR)/etc/le_audio_codec_capabilities.xml le_audio_codec_capabilities.xml
# LE Audio Lunch Config for Phase 1 (LE audio toggle hidden by default)
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.leaudio.toggle_visible=false
# LE Audio use classic connection by default
PRODUCT_PRODUCT_PROPERTIES += \
ro.bluetooth.leaudio.le_audio_connection_by_default=false
# Bluetooth LE Audio CIS handover to SCO
# Set the property only for the controller couldn't support CIS/SCO simultaneously. More detailed in b/242908683.
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.leaudio.notify.idle.during.call=true
# Bluetooth LE Audio enable dual mic SWB call
PRODUCT_PRODUCT_PROPERTIES += \
bluetooth.leaudio.dual_bidirection_swb.supported=true
# LE Audio Unicast Allowlist
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.leaudio.allow_list=SM-R510
# Override BQR mask to enable LE Audio Choppy report, remove BTRT logging
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.bqr.event_mask=295006 \
persist.bluetooth.bqr.vnd_quality_mask=29 \
persist.bluetooth.bqr.vnd_trace_mask=0 \
persist.bluetooth.vendor.btsnoop=true
else
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.bqr.event_mask=295006 \
persist.bluetooth.bqr.vnd_quality_mask=16 \
persist.bluetooth.bqr.vnd_trace_mask=0 \
persist.bluetooth.vendor.btsnoop=false
endif
# Enable Bluetooth AutoOn feature
PRODUCT_PRODUCT_PROPERTIES += \
bluetooth.server.automatic_turn_on=true
# Keymaster HAL # Keymaster HAL
#LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service
@ -199,7 +265,7 @@ PRODUCT_SOONG_NAMESPACES += \
device/google/tegu/uwb device/google/tegu/uwb
# Location # Location
include device/google/tegu/location/gnssd/device-gnss.mk include device/google/tegu/location/device-gnss.mk
PRODUCT_VENDOR_PROPERTIES += \ PRODUCT_VENDOR_PROPERTIES += \
persist.device_config.configuration.disable_rescue_party=true persist.device_config.configuration.disable_rescue_party=true
@ -208,12 +274,22 @@ PRODUCT_VENDOR_PROPERTIES += \
persist.vendor.udfps.als_feed_forward_supported=true \ persist.vendor.udfps.als_feed_forward_supported=true \
persist.vendor.udfps.lhbm_controlled_in_hal_supported=true persist.vendor.udfps.lhbm_controlled_in_hal_supported=true
# Display RRS default Config # OIS with system imu
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += persist.vendor.display.primary.boot_config=960x2142@120 PRODUCT_VENDOR_PROPERTIES += \
# TODO: b/250788756 - the property will be phased out after HWC loads user-preferred mode persist.vendor.camera.ois_with_system_imu=true
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.preferred_mode=960x2142@120
# Camera Vendor property
PRODUCT_VENDOR_PROPERTIES += \
persist.vendor.camera.front_720P_always_binning=true
# Media Performance Class 13
PRODUCT_PROPERTY_OVERRIDES += ro.odm.build.media_performance_class=33
# Display LBE
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1
# Vibrator HAL # Vibrator HAL
$(call soong_config_set,haptics,kernel_ver,v$(subst .,_,$(TARGET_LINUX_KERNEL_VERSION)))
ADAPTIVE_HAPTICS_FEATURE := adaptive_haptics_v1 ADAPTIVE_HAPTICS_FEATURE := adaptive_haptics_v1
PRODUCT_VENDOR_PROPERTIES += \ PRODUCT_VENDOR_PROPERTIES += \
ro.vendor.vibrator.hal.supported_primitives=243 \ ro.vendor.vibrator.hal.supported_primitives=243 \

View file

@ -20,6 +20,9 @@ $(call inherit-product, device/google/zumapro/factory_common.mk)
$(call inherit-product, device/google/tegu/device-tegu.mk) $(call inherit-product, device/google/tegu/device-tegu.mk)
include device/google/tegu/audio/tegu/factory-audio-tables.mk include device/google/tegu/audio/tegu/factory-audio-tables.mk
# Factory binaries for GPS
include device/google/tegu/location/factory-gnss.mk
PRODUCT_NAME := factory_tegu PRODUCT_NAME := factory_tegu
PRODUCT_DEVICE := tegu PRODUCT_DEVICE := tegu
PRODUCT_MODEL := Factory build on Tegu PRODUCT_MODEL := Factory build on Tegu
@ -30,11 +33,10 @@ PRODUCT_MANUFACTURER := Google
PRODUCT_PROPERTY_OVERRIDES += \ PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55" ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"
# Override to factory SDK
$(call soong_config_set, gpssdk, sdkv1, True)
$(call soong_config_set, gpssdk, gpsmcuversion, gpsv1_$(TARGET_BUILD_VARIANT))
# Factory binaries of camera # Factory binaries of camera
PRODUCT_PACKAGES += fatp_tg4_wide_hat_tool PRODUCT_PACKAGES += fatp_tg4_wide_hat_tool
PRODUCT_WITHOUT_TTS_VOICE_PACKS := true PRODUCT_WITHOUT_TTS_VOICE_PACKS := true
# preloaded_nanoapps.json
PRODUCT_SOONG_NAMESPACES += vendor/google_contexthub/devices/factory

22
location/device-gnss.mk Normal file
View file

@ -0,0 +1,22 @@
# include common gnss binaries
-include vendor/samsung_slsi/gps/s5300/gnss_release.mk
# include customized gps config files
PRODUCT_COPY_FILES += \
device/google/tegu/location/ca.pem:vendor/etc/gnss/ca.pem
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_COPY_FILES += \
device/google/tegu/location/gps.cfg:vendor/etc/gnss/gps.cfg
PRODUCT_VENDOR_PROPERTIES += \
vendor.gps.aol.enabled=true
else
PRODUCT_COPY_FILES += \
device/google/tegu/location/gps_user.cfg:vendor/etc/gnss/gps.cfg
endif
# include pixel gnss hal service
-include vendor/google_devices/zumapro/proprietary/gps/pixel_gnss_hal.mk
# sepolicy
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/gps/lsi/sepolicy

3
location/factory-gnss.mk Normal file
View file

@ -0,0 +1,3 @@
# include factory gnss binaries
-include vendor/samsung_slsi/gps/s5300/gnss_factory.mk

View file

@ -1,329 +0,0 @@
soong_namespace {
}
package {
default_applicable_licenses: ["vendor_samsung_slsi_gnss_license"],
}
license {
name: "vendor_samsung_slsi_gnss_license",
visibility: [":__subpackages__"],
license_kinds: [
"legacy_by_exception_only", // by exception only
"legacy_proprietary", // by exception only
],
}
cc_prebuilt_binary {
name: "android.hardware.gnss-service",
arch: {
arm64: {
srcs: ["release/android.hardware.gnss-service"],
shared_libs: [
"liblog",
"libutils",
"libhardware",
"libhidlbase",
"android.hardware.gnss-V3-ndk",
"libsensorndkbridge",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
vendor: true,
relative_install_path: "hw",
strip: {
none: true,
},
// Bypass because libhidltransport is deprecated
// Bypass because libhwbinder is deprecated
check_elf_files: false,
product_variables: {
debuggable: {
required: [
"libsighandler",
],
},
},
init_rc: ["init.gnss.rc"],
vintf_fragments: ["android.hardware.gnss@default.xml"],
}
cc_prebuilt_binary {
name: "gnssd",
arch: {
arm64: {
srcs: ["release/gnssd"],
shared_libs: [
"liblog",
"libutils",
"libhardware_legacy",
"libcutils",
"libssl",
"libcrypto",
// "libsitril-gps",
"android.frameworks.sensorservice@1.0",
"libhidlbase",
"libandroid_net",
"libc++",
"libc",
"libm",
"libdl",
"libcurl",
],
},
},
compile_multilib: "64",
vendor: true,
relative_install_path: "hw",
strip: {
none: true,
},
// Bypass because libsitril-gps is Android.mk module
check_elf_files: false,
product_variables: {
debuggable: {
required: [
"libsighandler",
],
},
},
}
// factory daemon and libraries
cc_prebuilt_binary {
name: "sctd",
arch: {
arm64: {
srcs: ["release/sctd"],
shared_libs: [
"liblog",
"libutils",
"libhardware_legacy",
"libcutils",
"libssl",
"libcrypto",
// "libsitril-gps",
"android.frameworks.sensorservice@1.0",
"libhidlbase",
"libandroid_net",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
vendor: true,
relative_install_path: "hw",
strip: {
none: true,
},
// Bypass because libsitril-gps is Android.mk module
check_elf_files: false,
}
cc_prebuilt_binary {
name: "spad",
arch: {
arm64: {
srcs: ["release/spad"],
shared_libs: [
"liblog",
"libutils",
"libhardware_legacy",
"libcutils",
"libssl",
"libcrypto",
// "libsitril-gps",
"android.frameworks.sensorservice@1.0",
"libhidlbase",
"libandroid_net",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
vendor: true,
relative_install_path: "hw",
strip: {
none: true,
},
// Bypass because libsitril-gps is Android.mk module
check_elf_files: false,
}
cc_prebuilt_binary {
name: "swcnd",
arch: {
arm64: {
srcs: ["release/swcnd"],
shared_libs: [
"liblog",
"libutils",
"libhardware_legacy",
"libcutils",
"libssl",
"libcrypto",
// "libsitril-gps",
"android.frameworks.sensorservice@1.0",
"libhidlbase",
"libandroid_net",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
vendor: true,
relative_install_path: "hw",
strip: {
none: true,
},
// Bypass because libsitril-gps is Android.mk module
check_elf_files: false,
}
cc_prebuilt_library_shared {
name: "libmptool_utils",
arch: {
arm64: {
srcs: ["release/libmptool_utils.so"],
shared_libs: [
"liblog",
"libhidlbase",
"libutils",
"android.hardware.gnss@1.0",
"android.hardware.gnss@1.1",
"android.hardware.gnss@2.0",
"android.hardware.gnss@2.1",
"android.hardware.gnss.measurement_corrections@1.0",
"android.hardware.gnss.visibility_control@1.0",
"libhardware",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
vendor: true,
// relative_install_path: "hw",
strip: {
none: true,
},
// Bypass because libhidltransport is deprecated
check_elf_files: false,
}
cc_prebuilt_library_shared {
name: "libmptool_log",
arch: {
arm64: {
srcs: ["release/libmptool_log.so"],
shared_libs: [
"liblog",
"libhidlbase",
"libutils",
"android.hardware.gnss@1.0",
"android.hardware.gnss@1.1",
"android.hardware.gnss@2.0",
"android.hardware.gnss@2.1",
"android.hardware.gnss.measurement_corrections@1.0",
"android.hardware.gnss.visibility_control@1.0",
"libhardware",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
vendor: true,
// relative_install_path: "hw",
strip: {
none: true,
},
// Bypass because libhidltransport is deprecated
check_elf_files: false,
}
cc_prebuilt_library_shared {
name: "libmptool_json",
arch: {
arm64: {
srcs: ["release/libmptool_json.so"],
shared_libs: [
"liblog",
"libhidlbase",
"libutils",
"android.hardware.gnss@1.0",
"android.hardware.gnss@1.1",
"android.hardware.gnss@2.0",
"android.hardware.gnss@2.1",
"android.hardware.gnss.measurement_corrections@1.0",
"android.hardware.gnss.visibility_control@1.0",
"libhardware",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
vendor: true,
// relative_install_path: "hw",
strip: {
none: true,
},
// Bypass because libhidltransport is deprecated
check_elf_files: false,
}
cc_prebuilt_library_shared {
name: "android.hardware.gnss@2.1-impl",
arch: {
arm64: {
srcs: ["release/android_hardware_gnss_2_1-impl.so"],
shared_libs: [
"liblog",
"libhidlbase",
"libutils",
"android.hardware.gnss@1.0",
"android.hardware.gnss@1.1",
"android.hardware.gnss@2.0",
"android.hardware.gnss@2.1",
"android.hardware.gnss.measurement_corrections@1.0",
"android.hardware.gnss.visibility_control@1.0",
"libhardware",
"libc++",
"libc",
"libm",
"libdl",
],
},
},
compile_multilib: "64",
vendor: true,
relative_install_path: "hw",
strip: {
none: true,
},
// Bypass because libhidltransport is deprecated
check_elf_files: false,
}

View file

@ -1,7 +0,0 @@
<manifest version="1.0" type="device">
<hal format="aidl">
<name>android.hardware.gnss</name>
<version>3</version>
<fqname>IGnss/default</fqname>
</hal>
</manifest>

View file

@ -1,2 +0,0 @@
$(call inherit-product-if-exists, device/google/tegu/location/gnssd/gnss_release.mk)

View file

@ -1,10 +0,0 @@
<compatibility-matrix version="1.0" type="framework" level="8">
<hal format="aidl" optional="true">
<name>android.hardware.gnss</name>
<version>3</version>
<interface>
<name>IGnss</name>
<instance>vendor</instance>
</interface>
</hal>
</compatibility-matrix>

View file

@ -1,49 +0,0 @@
# only GPS libraries and binaries to the target directory
GPS_ROOT := device/google/tegu/location/gnssd
# Enable pixel gnss hal service
include device/google/gs-common/gps/pixel/pixel_gnss_hal.mk
PRODUCT_PACKAGES += \
gnssd \
android.hardware.gnss-service \
android.hardware.location.gps.prebuilt.xml
PRODUCT_COPY_FILES += \
$(GPS_ROOT)/release/ca.pem:vendor/etc/gnss/ca.pem \
$(GPS_ROOT)/release/kepler.bin:vendor/firmware/kepler.bin
# factory libraries
PRODUCT_PACKAGES += \
android.hardware.gnss@2.1-impl \
sctd \
spad \
swcnd \
libmptool_json \
libmptool_log \
libmptool_utils
# factory libraries
PRODUCT_COPY_FILES += \
$(GPS_ROOT)/release/sctd.json:vendor/etc/sctd.json \
$(GPS_ROOT)/release/spad.json:vendor/etc/spad.json \
$(GPS_ROOT)/release/swcnd.json:vendor/etc/swcnd.json
PRODUCT_SOONG_NAMESPACES += \
$(GPS_ROOT)
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_COPY_FILES += \
$(GPS_ROOT)/release/gps.cfg:vendor/etc/gnss/gps.cfg
PRODUCT_VENDOR_PROPERTIES += \
vendor.gps.aol.enabled=true
else
PRODUCT_COPY_FILES += \
$(GPS_ROOT)/release/gps_user.cfg:vendor/etc/gnss/gps.cfg
endif
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/gps/brcm/sepolicy
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/gps/lsi/sepolicy

View file

@ -1,54 +0,0 @@
on post-fs-data
mkdir /data/vendor/gps 0771 system system
mkdir /data/vendor/gps/logs 0771 gps system
mkdir /data/vendor/gps/overlay 0771 gps system
# Directory for GPS
rm /data/system/gps/gps_started
rm /data/system/gps/glonass_started
rm /data/system/gps/beidou_started
rm /data/system/gps/smd_started
rm /data/system/gps/sv_cno.info
# Permissions for gnss
chmod 0660 /dev/gnss_ipc
chown system system /dev/gnss_ipc
chmod 0660 /dev/gnss_dump
chown system system /dev/gnss_dump
chmod 0660 /dev/gnss_boot
chown system system /dev/gnss_boot
chmod 0660 /sys/devices/platform/gnssif/coredump
chown system system /sys/devices/platform/gnssif/coredump
# GPS daemon
service gnssd /vendor/bin/hw/gnssd
class main
user gps
group system inet net_raw wakelock sdcard_rw
capabilities BLOCK_SUSPEND
ioprio be 0
seclabel u:r:gnssd:s0
service slsi_gnss_service /vendor/bin/hw/android.hardware.gnss-service
class main
user system
group system gps
# factory daemon
service sctd /vendor/bin/hw/sctd --json "/vendor/etc/sctd.json"
class main
user root
group root system bluetooth radio misc
#seclabel u:r:shell:s0
service swcnd /vendor/bin/hw/swcnd --json "/vendor/etc/swcnd.json"
class main
user root
group system bluetooth radio misc
#seclabel u:r:shell:s0
service spad /vendor/bin/hw/spad --json "/vendor/etc/spad.json"
class main
user root
group system bluetooth radio misc
#seclabel u:r:shell:s0

View file

@ -1,12 +0,0 @@
# Enable aidl service
$(call soong_config_set, pixel_gnss, enable_pixel_gnss_aidl_service, true)
PRODUCT_PACKAGES += \
android.hardware.gnss-service.pixel
PRODUCT_VENDOR_PROPERTIES += \
persist.vendor.gps.hal.service.name=vendor
# Compatibility matrix
DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += \
device/google/tegu/location/gnssd/device_framework_matrix_product.xml

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1,88 +0,0 @@
{
"console" : {
"uart" : {
"support" : false,
"active" : true,
"route" : "/dev/ttySAC0"
},
"usb" : {
"support" : true,
"active" : {"persist.vendor.config.ttygs0" : 1},
"route" : "/dev/ttyGS0",
"timeout" : 0
},
"tcp" : {
"support" : true,
"active" : true,
"route" : "127.0.0.1",
"port" : 7727
},
"local" : {
"support" : true,
"active" : true,
"route" : "/dev/socket/sctd",
"timeout" : 20
}
},
"receive-mode" : {
"mode" : "tail",
"tail" : "0d0a",
"millisecond" : "100"
},
"module" : {
"support-modules" : [
"sctd",
"pcba",
"wcn"
],
"test-commands" : {
"pcba" : [
"SAT"
]
},
"interaction" : {
"pcba" : {
"timeout" : 15,
"keep-alive" : false,
"path" : "/dev/socket/sync_spad"
},
"wcn" : {
"timeout" : 20,
"keep-alive" : true,
"path" : "/dev/socket/sync_wcn"
}
},
"whitelist" : {
"sctd" : [
"SAT+TCP",
"SAT+USB",
"SAT+UART",
"SAT+IP",
"SAT+PORT",
"SAT+UPDATE"
],
"pcba" : [
"SAT+TIMEOUT",
"SAT+REBOOT",
"SAT+WIFI",
"SAT+BT"
],
"wcn" : [
"RF+AP2WB",
"RF+WB2AP",
"AT+WIFIRF",
"ATA+WIFI",
"AT+BTRF",
"ATA+BT",
"AT+GPSFTTEST",
"AT+SPITEST",
"ATA+GPS",
"SAT+WCNTCP",
"SAT+WCNTCPIP",
"SAT+WCNTCPPORT",
"SAT+WCNSETTIME"
]
}
}
}

Binary file not shown.

View file

@ -1,8 +0,0 @@
{
"misc" : {
"libpath" : "/vendor/lib64/libmphal_default.so",
"default_timeout" : 15,
"support" : true
}
}

Binary file not shown.

View file

@ -1,52 +0,0 @@
{
"console" : {
"tcp" : {
"support" : true,
"active" : false,
"ip" : "",
"port" : "2543"
},
"local" : {
"support" : true,
"active" : true,
"ip" : "/dev/socket/sync_wcn"
}
},
"module" : {
"interaction" : {
"wlan&bt" : {
"libpath" : "/vendor/lib64/libwlbt.so",
"support" : true,
"timeout" : 15
},
"gnss" : {
"libpath" : "/vendor/lib64/hw/android.hardware.gnss@2.1-impl.so",
"timeout" : 15,
"support" : true
}
},
"whitelist" : {
"wlan&bt" : [
"RF+AP2WB",
"RF+WB2AP",
"AT+BTRF",
"ATA+BT",
"AT+WIFIRF",
"ATA+WIFI"
],
"gnss" : [
"AT+GPSFTTEST",
"AT+SPITEST",
"ATA+GPS"
],
"internal" : [
"SAT+WCNTCP",
"SAT+WCNTCPIP",
"SAT+WCNTCPPORT",
"SAT+WCNSETTIME"
]
}
}
}

View file

@ -1,6 +1,6 @@
############################################ ############################################
GlueLayer_ToolConfigSelection=3 GlueLayer_ToolConfigSelection=3
debug_console=1 debug_console=0
debug_enable=4 debug_enable=4
mem_dump_to_node=1 mem_dump_to_node=1
force_instant_logging=0 force_instant_logging=0
@ -10,7 +10,7 @@ debug_dir=/data/vendor/gps/logs
############################################ ############################################
GlueLayer_IsGedKeyExist=1 GlueLayer_IsGedKeyExist=1
GlueLayer_EnableGnssCfgInterface=1 GlueLayer_EnableGnssCfgInterface=1
GlueLayer_IsUseCustomGnssLib=1
uni_log_max_file_count=5 uni_log_max_file_count=5
uni_log_max_size_mb=20 uni_log_max_size_mb=20
@ -30,6 +30,9 @@ gnss_device_patch_file=/vendor/firmware/kepler.bin
# Disable dynamic HSI # Disable dynamic HSI
Chip_Configuration_Dynamic_HSI=0 Chip_Configuration_Dynamic_HSI=0
# Set UBSAN to operate on logging mode on FW
Chip_Configuration_ubsan_opt=1
# borrow this field to force CP crash on GAL bad ISM # borrow this field to force CP crash on GAL bad ISM
#Chip_Configuration_WT1=1 #Chip_Configuration_WT1=1
@ -155,11 +158,13 @@ Agnss_IsGloAidingEnable=0
Agnss_SuplUseCpNi=1 Agnss_SuplUseCpNi=1
SETCaps_IsOtdoa=1 SETCaps_IsOtdoa=1
SETCaps_IsLpp=1 SETCaps_IsLpp=1
SETCaps_SuplUT1=20
PosReq_Supl2Params_SuplNiUdpPort=7275 PosReq_Supl2Params_SuplNiUdpPort=7275
GlueLayer_LPPCpBitmask=0x17 GlueLayer_LPPCpBitmask=0xFF
GlueLayer_IsCpLteNeighborCellEnable=1 GlueLayer_IsCpLteNeighborCellEnable=1
GlueLayer_isReqDBHFromFwRefLoc=1 GlueLayer_isReqDBHFromFwRefLoc=1
GlueLayer_isReqUBPFromPressureSensor=1 GlueLayer_isReqUBPFromPressureSensor=1
GlueLayer_IsRilCIDReqEnable=0
GlueLayer_IsMemsEnable=1 GlueLayer_IsMemsEnable=1
GlueLayer_MeasCorrCap=7 GlueLayer_MeasCorrCap=7
Chip_Configuration_mems_data_Configuration=5 Chip_Configuration_mems_data_Configuration=5
@ -172,8 +177,8 @@ UP_LocTech_Constraints=1
UP_LocTech_Requirements=0 UP_LocTech_Requirements=0
SpotLogger_Allowed=0 SpotLogger_Allowed=0
RfPathLossDb_Ap=3500 RfPathLossDb_Ap=3800
RfPathLossDb_Cp=3500 RfPathLossDb_Cp=3800
NmeaBitmask=0x010003fff NmeaBitmask=0x010003fff
# force engine to use entire response time for emergency session; default 0 # force engine to use entire response time for emergency session; default 0
@ -187,6 +192,7 @@ isUseUncalAccel=1
GNSS_CARRIER_CONFIG_BEGIN GNSS_CARRIER_CONFIG_BEGIN
# DEFAULT # DEFAULT
GNSS_CARRIER_ID=0 GNSS_CARRIER_ID=0
ENABLE_CAPS_OTDOA=1
ENABLE_2G_CP_CAPS_MSA=1 ENABLE_2G_CP_CAPS_MSA=1
ENABLE_2G_CP_CAPS_MSB=1 ENABLE_2G_CP_CAPS_MSB=1
ENABLE_3G_CP_CAPS_MSA=1 ENABLE_3G_CP_CAPS_MSA=1

View file

@ -4,12 +4,14 @@ debug_enable=0
mem_dump_to_node=0 mem_dump_to_node=0
GlueLayer_IsGedKeyExist=1 GlueLayer_IsGedKeyExist=1
GlueLayer_EnableGnssCfgInterface=1 GlueLayer_EnableGnssCfgInterface=1
GlueLayer_IsUseCustomGnssLib=1
ism_stream_enable=1 ism_stream_enable=1
caplay_port_tcp_port=@GNSS_ISM_CAPTURE_PLAYBACK caplay_port_tcp_port=@GNSS_ISM_CAPTURE_PLAYBACK
gnss_device_type=K041 gnss_device_type=K041
gnss_device_patch_address=0 gnss_device_patch_address=0
gnss_device_patch_file=/vendor/firmware/kepler.bin gnss_device_patch_file=/vendor/firmware/kepler.bin
Chip_Configuration_Dynamic_HSI=0 Chip_Configuration_Dynamic_HSI=0
Chip_Configuration_ubsan_opt=1
GlueLayer_IsPlatformRefTimeEnable=1 GlueLayer_IsPlatformRefTimeEnable=1
chpp_betp_client=1 chpp_betp_client=1
chpp_log_level=0 chpp_log_level=0
@ -46,11 +48,13 @@ Agnss_IsGloAidingEnable=0
Agnss_SuplUseCpNi=1 Agnss_SuplUseCpNi=1
SETCaps_IsOtdoa=1 SETCaps_IsOtdoa=1
SETCaps_IsLpp=1 SETCaps_IsLpp=1
SETCaps_SuplUT1=20
PosReq_Supl2Params_SuplNiUdpPort=7275 PosReq_Supl2Params_SuplNiUdpPort=7275
GlueLayer_LPPCpBitmask=0x17 GlueLayer_LPPCpBitmask=0xFF
GlueLayer_IsCpLteNeighborCellEnable=1 GlueLayer_IsCpLteNeighborCellEnable=1
GlueLayer_isReqDBHFromFwRefLoc=1 GlueLayer_isReqDBHFromFwRefLoc=1
GlueLayer_isReqUBPFromPressureSensor=1 GlueLayer_isReqUBPFromPressureSensor=1
GlueLayer_IsRilCIDReqEnable=0
GlueLayer_IsMemsEnable=1 GlueLayer_IsMemsEnable=1
GlueLayer_MeasCorrCap=7 GlueLayer_MeasCorrCap=7
Chip_Configuration_mems_data_Configuration=5 Chip_Configuration_mems_data_Configuration=5
@ -62,14 +66,15 @@ UP_LocTech_PrimaryConst=0
UP_LocTech_Constraints=1 UP_LocTech_Constraints=1
UP_LocTech_Requirements=0 UP_LocTech_Requirements=0
SpotLogger_Allowed=0 SpotLogger_Allowed=0
RfPathLossDb_Ap=3500 RfPathLossDb_Ap=3800
RfPathLossDb_Cp=3500 RfPathLossDb_Cp=3800
NmeaBitmask=0x010003fff NmeaBitmask=0x010003fff
IsUseEntireRespTime911=1 IsUseEntireRespTime911=1
isForceHighAccuracyMode=1 isForceHighAccuracyMode=1
isUseUncalAccel=1 isUseUncalAccel=1
GNSS_CARRIER_CONFIG_BEGIN GNSS_CARRIER_CONFIG_BEGIN
GNSS_CARRIER_ID=0 GNSS_CARRIER_ID=0
ENABLE_CAPS_OTDOA=1
ENABLE_2G_CP_CAPS_MSA=1 ENABLE_2G_CP_CAPS_MSA=1
ENABLE_2G_CP_CAPS_MSB=1 ENABLE_2G_CP_CAPS_MSB=1
ENABLE_3G_CP_CAPS_MSA=1 ENABLE_3G_CP_CAPS_MSA=1

File diff suppressed because it is too large Load diff

View file

@ -35,11 +35,11 @@ void addDisplay(std::shared_ptr<PowerStats> p) {
// Add display residency stats // Add display residency stats
std::vector<std::string> states = { std::vector<std::string> states = {
"Off", "Off",
"LP: 1440x3120@30", "LP: 1080x2424@30",
"On: 1440x3120@60", "On: 1080x2424@60",
"On: 1440x3120@90", "On: 1080x2424@120",
"HBM: 1440x3120@60", "HBM: 1080x2424@60",
"HBM: 1440x3120@90"}; "HBM: 1080x2424@120"};
p->addStateResidencyDataProvider(std::make_unique<DisplayStateResidencyDataProvider>( p->addStateResidencyDataProvider(std::make_unique<DisplayStateResidencyDataProvider>(
"Display", "Display",
@ -62,6 +62,7 @@ int main() {
std::shared_ptr<PowerStats> p = ndk::SharedRefBase::make<PowerStats>(); std::shared_ptr<PowerStats> p = ndk::SharedRefBase::make<PowerStats>();
addPixelStateResidencyDataProvider(p, "");
addZumaProCommonDataProviders(p); addZumaProCommonDataProviders(p);
addDisplay(p); addDisplay(p);

View file

@ -16,11 +16,17 @@
<resources> <resources>
<bool name="nfcc_always_on_allowed">false</bool> <bool name="nfcc_always_on_allowed">false</bool>
<bool name="polling_disable_allowed">true</bool> <bool name="polling_disable_allowed">true</bool>
<string-array name="config_skuSupportsSecureNfc" translatable="false">
<item>GR83Y</item>
<item>GEC77</item>
<item>GWVK6</item>
</string-array>
<bool name="tag_intent_app_pref_supported">true</bool> <bool name="tag_intent_app_pref_supported">true</bool>
<bool name="nfc_observe_mode_supported">true</bool> <bool name="nfc_observe_mode_supported">true</bool>
<bool name="enable_secure_nfc_support">true</bool>
<!-- NFC Antenna Location API -->
<integer name="device_width">72</integer>
<integer name="device_height">154</integer>
<bool name="device_foldable">false</bool>
<integer-array name="antenna_x">
<item>36</item>
</integer-array>
<integer-array name="antenna_y">
<item>104</item>
</integer-array>
</resources> </resources>

View file

@ -159,4 +159,16 @@
<!-- boolean indicating whether the caller thread needs to wait for destroyed listeners --> <!-- boolean indicating whether the caller thread needs to wait for destroyed listeners -->
<bool translatable="false" name ="config_wifiWaitForDestroyedListeners">true</bool> <bool translatable="false" name ="config_wifiWaitForDestroyedListeners">true</bool>
<!-- Boolean indicating performing a partial initial scan is enabled -->
<bool translatable="false" name="config_wifiEnablePartialInitialScan">true</bool>
<!-- Configure the max number of new channels to add into the initial partial scan list per network.
If equals to 0, it means there's no limit on the max number of channels to include per network.-->
<integer translatable="false" name="config_wifiInitialPartialScanMaxNewChannelsPerNetwork">3</integer>
<!-- Boolean indicating whether to disable firmware roaming when the device goes into idle mode.
true: firmware roaming will be disabled when the device goes into idle mode, and then
re-activated when the device exits idle mode.
false: firmware roaming will not be affected. -->
<bool translatable="false" name ="config_wifiDisableFirmwareRoamingInIdleMode">true</bool>
</resources> </resources>

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
/* /*
** Copyright 2021, The Android Open Source Project ** Copyright 2023, The Android Open Source Project
** **
** Licensed under the Apache License, Version 2.0 (the "License"); ** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License. ** you may not use this file except in compliance with the License.
@ -42,15 +42,15 @@
<!-- Default screen brightness setting <!-- Default screen brightness setting
Must be in the range specified by minimum and maximum. --> Must be in the range specified by minimum and maximum. -->
<!-- 140 nits: (140-2)/(1250-2)*(0.68-0.0)+0.0 = 0.075192308 --> <!-- 140 nits: (140-2)/(1200-2)*(0.67-0.0)+0.0 = 0.077178631 -->
<item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.075192308</item> <item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.077178631</item>
<!-- The default refresh rate. Pixel 6 manages this using the peak refresh rate setting, so set <!-- The default refresh rate. Pixel 6 manages this using the peak refresh rate setting, so set
this value to 0 so it has no effect. --> this value to 0 so it has no effect. -->
<integer name="config_defaultRefreshRate">0</integer> <integer name="config_defaultRefreshRate">0</integer>
<!-- The default peak refresh rate. --> <!-- The default peak refresh rate. -->
<integer name="config_defaultPeakRefreshRate">120</integer> <integer name="config_defaultPeakRefreshRate">60</integer>
<!-- Not allow to switch to higher refresh rate when display brightness setting is <!-- Not allow to switch to higher refresh rate when display brightness setting is
equal or less than this value --> equal or less than this value -->
@ -67,97 +67,13 @@
<!-- Default refresh rate while the device has high brightness mode enabled for HDR. --> <!-- Default refresh rate while the device has high brightness mode enabled for HDR. -->
<integer name="config_defaultRefreshRateInHbmHdr">60</integer> <integer name="config_defaultRefreshRateInHbmHdr">60</integer>
<!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.
The N entries of this array define N 1 zones as follows:
Zone 0: 0 <= LUX < array[0]
Zone 1: array[0] <= LUX < array[1]
...
Zone N: array[N - 1] <= LUX < array[N]
Zone N + 1 array[N] <= LUX < infinity
Must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLevels">
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>8</item>
<item>12</item>
<item>15</item>
<item>20</item>
<item>33</item>
<item>55</item>
<item>90</item>
<item>148</item>
<item>245</item>
<item>403</item>
<item>665</item>
<item>1097</item>
<item>1808</item>
<item>3000</item>
<item>6000</item>
<item>9000</item>
<item>10000</item>
<item>14000</item>
<item>20000</item>
<item>25000</item>
<item>31000</item>
<item>51000</item>
<item>81000</item>
<item>100000</item>
</integer-array>
<!-- Array of desired screen brightness in nits corresponding to the lux values
in the config_autoBrightnessLevels array. As with config_screenBrightnessMinimumNits and
config_screenBrightnessMaximumNits, the display brightness is defined as the measured
brightness of an all-white image.
If this is defined then:
- config_autoBrightnessLcdBacklightValues should not be defined
- config_screenBrightnessNits must be defined
- config_screenBrightnessBacklight must be defined
This array should have size one greater than the size of the config_autoBrightnessLevels
array. The brightness values must be non-negative and non-decreasing. This must be
overridden in platform specific overlays -->
<array name="config_autoBrightnessDisplayValuesNits">
<item>5.139055</item> <!-- 0 - 1 -->
<item>9.962018965</item> <!-- 1 - 2 -->
<item>18.34822964</item> <!-- 2 - 3 -->
<item>21.55068128</item> <!-- 3 - 4 -->
<item>24.0167788</item> <!-- 4 - 8 -->
<item>32.5</item> <!-- 8 - 12 -->
<item>46</item> <!-- 12 - 15 -->
<item>53.26923077</item> <!-- 15 - 20 -->
<item>54.61538462</item> <!-- 20 - 33 -->
<item>58.11538462</item> <!-- 33 - 55 -->
<item>62.1394</item> <!-- 55 - 90 -->
<item>67.13133333</item> <!-- 90 - 148 -->
<item>79.67614115</item> <!-- 148 - 245 -->
<item>98.04727274</item> <!-- 245 - 403 -->
<item>125.1221991</item> <!-- 403 - 665 -->
<item>161.6875093</item> <!-- 665 - 1097 -->
<item>208.4885553</item> <!-- 1097 - 1808 -->
<item>264.8221315</item> <!-- 1808 - 3000 -->
<item>328.5869521</item> <!-- 3000 - 6000 -->
<item>627.4315413</item> <!-- 6000 - 9000 -->
<item>826.8584866</item> <!-- 9000 - 10000 -->
<item>867.85582302</item> <!-- 10000 - 14000 -->
<item>1041.39662279</item> <!-- 14000 - 20000 -->
<item>1227.52633489</item> <!-- 20000 - 25000 -->
<item>1331.28933608</item> <!-- 25000 - 31000 -->
<item>1414.57566867</item> <!-- 31000 - 51000 -->
<item>1553.22826182</item> <!-- 51000 - 81000 -->
<item>1614.01031782</item> <!-- 81000 - 100000 -->
<item>1850</item> <!-- 100000+ -->
</array>
<!-- Stability requirements in milliseconds for accepting a new brightness level. This is used <!-- Stability requirements in milliseconds for accepting a new brightness level. This is used
for debouncing the light sensor. Different constants are used to debounce the light sensor for debouncing the light sensor. Different constants are used to debounce the light sensor
when adapting to brighter or darker environments. This parameter controls how quickly when adapting to brighter or darker environments. This parameter controls how quickly
brightness changes occur in response to an observed change in light level that exceeds the brightness changes occur in response to an observed change in light level that exceeds the
hysteresis threshold. --> hysteresis threshold. -->
<integer name="config_autoBrightnessBrighteningLightDebounce">1000</integer> <integer name="config_autoBrightnessBrighteningLightDebounce">1000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">4000</integer> <integer name="config_autoBrightnessDarkeningLightDebounce">2000</integer>
<integer-array name="config_ambientThresholdLevels"> <integer-array name="config_ambientThresholdLevels">
<item>2</item> <item>2</item>
@ -251,12 +167,50 @@
<!-- The stable device width and height in pixels. If these aren't set to a positive number <!-- The stable device width and height in pixels. If these aren't set to a positive number
then the device will use the width and height of the default display the first time it's then the device will use the width and height of the default display the first time it's
booted. --> booted. -->
<integer name="config_stableDeviceDisplayWidth">1280</integer> <integer name="config_stableDeviceDisplayWidth">1080</integer>
<integer name="config_stableDeviceDisplayHeight">2856</integer> <integer name="config_stableDeviceDisplayHeight">2424</integer>
<!-- Radius of the software rounded corners. -->
<dimen name="rounded_corner_radius">115px</dimen>
<dimen name="rounded_corner_radius_top">115px</dimen>
<dimen name="rounded_corner_radius_bottom">115px</dimen>
<!-- Whether the display cutout region of the main built-in display should be forced to
black in software (to avoid aliasing or emulate a cutout that is not physically existent).
-->
<bool name="config_fillMainBuiltInDisplayCutout">true</bool>
<!-- Display cutout configuration -->
<string translatable="false" name="config_mainBuiltInDisplayCutout">
m 581.5,86 a 41.5,41.5 0 0 0 -83,0 41.5,41.5 0 0 0 83,0 z
@left
</string>
<string translatable="false" name="config_mainBuiltInDisplayCutoutRectApproximation">
m 484,0 h 112 v 152 h -112 z
@left
</string>
<!-- A string config in svg path format for the main display shape.
(@see https://www.w3.org/TR/SVG/paths.html#PathData).
This config must be set unless:
1. {@link Configuration#isScreenRound} is true which means the display shape is circular
and the system will auto-generate a circular shape.
2. The display has no rounded corner and the system will auto-generate a rectangular shape.
(@see DisplayShape#createDefaultDisplayShape)
Note: If the display supports multiple resolutions, please define the path config based on
the highest resolution so that it can be scaled correctly in each resolution. -->
<string name="config_mainDisplayShape">m 1079.946,2228.66 c 0,0 0.18,21.63 -0.12,32.44 -0.27,9.87 -0.39,19.77 -1.53,29.57 -1.13,9.74 -2.58,19.5 -5.23,28.95 -2.71,9.67 -6.21,19.2 -10.829,28.12 -4.72,9.13 -10.449,17.83 -17.099,25.68 -6.69,7.9 -14.379,15.04 -22.689,21.24 -7.73,5.77 -16.209,10.61 -24.989,14.62 -8.57,3.91 -17.619,6.81 -26.769,9.05 -8.96,2.2 -18.159,3.37 -27.339,4.29 -9.29,0.93 -18.649,1.01 -27.979,1.23 -10.229,0.24 -30.698,0.1 -30.698,0.1 H 195.323 c 0,0 -21.629,0.17 -32.438,-0.12 -9.869,-0.27 -19.769,-0.39 -29.568,-1.53 -9.739,-1.13 -19.499,-2.59 -28.938,-5.23 -9.669,-2.71 -19.199,-6.21 -28.119,-10.83 -9.14,-4.73 -17.829,-10.46 -25.669,-17.1 -7.91,-6.7 -15.039,-14.39 -21.229,-22.69 -5.77,-7.74 -10.619,-16.21 -14.619,-24.99 -3.91,-8.57 -6.81,-17.62 -9.05,-26.77 -2.2,-8.96 -3.37,-18.16 -4.29,-27.34 -0.93,-9.29 -1.01,-18.65 -1.24,-27.98 -0.24,-10.23 -0.1,-30.7 -0.1,-30.7 L 0.054,195.334 c 0,0 -0.18,-21.63 0.12,-32.44 C 0.444,153.024 0.564,143.124 1.703,133.324 2.833,123.584 4.283,113.824 6.933,104.374 9.643,94.704 13.143,85.174 17.763,76.254 22.482,67.124 28.212,58.424 34.862,50.584 41.551,42.684 49.241,35.544 57.551,29.344 65.28,23.574 73.76,18.734 82.539,14.724 91.109,10.824 100.158,7.924 109.308,5.674 c 8.96,-2.2 18.159,-3.37 27.339,-4.29 9.29,-0.93 18.649,-1.01 27.979,-1.23 10.229,-0.24 30.698,-0.1 30.698,-0.1 h 689.314 c 0,0 21.629,-0.18 32.438,0.12 9.869,0.27 19.769,0.39 29.568,1.53 9.739,1.13 19.499,2.59 28.938,5.23 9.669,2.71 19.199,6.21 28.119,10.83 9.14,4.73 17.829,10.46 25.669,17.1 7.91,6.7 15.039,14.39 21.229,22.69 5.77,7.74 10.619,16.21 14.619,24.99 3.91,8.57 6.81,17.62 9.05,26.77 2.2,8.96 3.37,18.16 4.29,27.34 0.93,9.29 1.01,18.65 1.24,27.98 0.24,10.23 0.1,30.7 0.1,30.7 z</string>
<!-- The max vibration strength allowed in audio haptic channels. --> <!-- The max vibration strength allowed in audio haptic channels. -->
<item name="config_hapticChannelMaxVibrationAmplitude" format="float" type="dimen">0.335</item> <item name="config_hapticChannelMaxVibrationAmplitude" format="float" type="dimen">0.32</item>
<!-- Type of the udfps long press sensor. Empty if long press is not supported. --> <!-- Type of the udfps long press sensor. Empty if long press is not supported. -->
<string name="config_dozeUdfpsLongPressSensorType" translatable="false">com.google.sensor.long_press</string> <string name="config_dozeUdfpsLongPressSensorType" translatable="false">com.google.sensor.long_press</string>
<!-- Allow the GPS_PROVIDER to be replaced by the location provider app at run-time. -->
<bool name="config_useGnssHardwareProvider" translatable="false">false</bool>
<!-- Package name providing GNSS location support. Used only when
config_useGnssHardwareProvider is false. -->
<string name="config_gnssLocationProviderPackageName" translatable="false">com.google.android.gms</string>
</resources> </resources>

View file

@ -0,0 +1,23 @@
<!--
Copyright (C) 2021 The Android Open Source Project
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="196.2px"
android:height="196.2px"
android:viewportWidth="196.2"
android:viewportHeight="196.2">
<path
android:fillColor="#000000"
android:pathData="m 0.05,195.2 c 0,0 -0.17,-21.62 0.12,-32.43 0.27,-9.86 0.39,-19.76 1.53,-29.56 1.13,-9.74 2.58,-19.5 5.23,-28.93 C 10.18,94.67 13.68,85.14 18.29,76.23 23.02,67.1 28.74,58.4 35.38,50.56 42.07,42.66 49.76,35.52 58.05,29.33 65.78,23.56 74.25,18.72 83.02,14.72 c 8.56,-3.91 17.6,-6.8 26.74,-9.05 8.95,-2.2 18.15,-3.37 27.32,-4.29 9.28,-0.93 18.63,-1.01 27.96,-1.23 10.22,-0.24 30.67,-0.1 30.67,-0.1 H 0.05 V 195.7 Z" />
</vector>

View file

@ -0,0 +1,23 @@
<!--
Copyright (C) 2021 The Android Open Source Project
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="196.2px"
android:height="196.2px"
android:viewportWidth="196.2"
android:viewportHeight="196.2">
<path
android:fillColor="#000000"
android:pathData="m 0.05,195.2 c 0,0 -0.17,-21.62 0.12,-32.43 0.27,-9.86 0.39,-19.76 1.53,-29.56 1.13,-9.74 2.58,-19.5 5.23,-28.93 C 10.18,94.67 13.68,85.14 18.29,76.23 23.02,67.1 28.74,58.4 35.38,50.56 42.07,42.66 49.76,35.52 58.05,29.33 65.78,23.56 74.25,18.72 83.02,14.72 c 8.56,-3.91 17.6,-6.8 26.74,-9.05 8.95,-2.2 18.15,-3.37 27.32,-4.29 9.28,-0.93 18.63,-1.01 27.96,-1.23 10.22,-0.24 30.67,-0.1 30.67,-0.1 H 0.05 V 195.7 Z" />
</vector>

View file

@ -22,7 +22,7 @@
<resources> <resources>
<!-- Configure 13px of extra protection around the front-facing camera --> <!-- Configure 13px of extra protection around the front-facing camera -->
<string translatable="false" name="config_frontBuiltInDisplayCutoutProtection"> <string translatable="false" name="config_frontBuiltInDisplayCutoutProtection">
m 585.74,68.4 a 49.16,60.6 0 0 0 -91.47,0 49.16,60.6 0 0 0 91.47,0 Z m 594.5,86 a 54.5,54.5 0 0 0 -109,0 54.5,54.5 0 0 0 109,0 z
</string> </string>
<!-- Camera 1 is the front camera --> <!-- Camera 1 is the front camera -->
@ -34,6 +34,13 @@
<bool name="config_enableDisplayCutoutProtection">true</bool> <bool name="config_enableDisplayCutoutProtection">true</bool>
<!-- The properties of the face auth front camera in pixels -->
<integer-array name="config_face_auth_props">
<item>540</item> <!-- sensorLocationX -->
<item>86</item> <!-- sensorLocationY -->
<item>54</item> <!--sensorRadius -->
</integer-array>
<!-- Type of a sensor that provides a low-power estimate of the desired display <!-- Type of a sensor that provides a low-power estimate of the desired display
brightness, suitable to listen to while the device is asleep (e.g. during brightness, suitable to listen to while the device is asleep (e.g. during
always-on display) --> always-on display) -->
@ -43,7 +50,7 @@
to brightness values; -1 means keeping the current brightness. --> to brightness values; -1 means keeping the current brightness. -->
<integer-array name="config_doze_brightness_sensor_to_brightness"> <integer-array name="config_doze_brightness_sensor_to_brightness">
<item>-1</item> <!-- 0: OFF --> <item>-1</item> <!-- 0: OFF -->
<item>2</item> <!-- 1: NIGHT --> <item>1</item> <!-- 1: NIGHT -->
<item>2</item> <!-- 2: LOW (2-1)/(255-1)*(1850-2)+2 = 9.2 nits --> <item>2</item> <!-- 2: LOW (2-1)/(255-1)*(1850-2)+2 = 9.2 nits -->
<item>8</item> <!-- 3: HIGH (8-1)/(255-1)*(1850-2)+2 = 52.9 nits --> <item>8</item> <!-- 3: HIGH (8-1)/(255-1)*(1850-2)+2 = 52.9 nits -->
<item>8</item> <!-- 4: SUN --> <item>8</item> <!-- 4: SUN -->
@ -55,7 +62,7 @@
-1 means keeping the current opacity. --> -1 means keeping the current opacity. -->
<integer-array name="config_doze_brightness_sensor_to_scrim_opacity"> <integer-array name="config_doze_brightness_sensor_to_scrim_opacity">
<item>-1</item> <!-- 0: OFF --> <item>-1</item> <!-- 0: OFF -->
<item>133</item> <!-- 1: NIGHT --> <item>0</item> <!-- 1: NIGHT -->
<item>0</item> <!-- 2: LOW --> <item>0</item> <!-- 2: LOW -->
<item>0</item> <!-- 3: HIGH --> <item>0</item> <!-- 3: HIGH -->
<item>0</item> <!-- 4: SUN --> <item>0</item> <!-- 4: SUN -->

View file

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright (c) 2024, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<resources>
<!-- Pixel pitch of the device. um/px -->
<item name="pixel_pitch" format="float" type="dimen">60.16</item>
<!-- Location on the screen of the center of the physical power button. -->
<dimen name="physical_power_button_center_screen_location_y">730px</dimen>
<!-- Location on the screen of the center of the physical volume up/down buttons. -->
<dimen name="physical_volume_up_button_center_screen_location_y">1038px</dimen>
<dimen name="physical_volume_down_button_center_screen_location_y">1204px</dimen>
</resources>

View file

@ -1,25 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2023 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<bool name="nfcc_always_on_allowed">false</bool>
<bool name="polling_disable_allowed">true</bool>
<string-array name="config_skuSupportsSecureNfc" translatable="false">
<item>GR83Y</item>
<item>GEC77</item>
<item>GWVK6</item>
</string-array>
<bool name="tag_intent_app_pref_supported">true</bool>
</resources>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2009 The Android Open Source Project <!-- Copyright (C) 2024 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
@ -14,9 +14,6 @@
limitations under the License. limitations under the License.
--> -->
<!-- These are the location-related features for devices that include GPS. --> <resources>
<permissions> <dimen name="udfps_lottie_translate_y">-500dp</dimen>
<feature name="android.hardware.location" /> </resources>
<feature name="android.hardware.location.network" />
<feature name="android.hardware.location.gps" />
</permissions>

20
tegu_generic.mk Normal file
View file

@ -0,0 +1,20 @@
#
# Copyright 2024 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
$(call inherit-product, device/google/tegu/device-tegu.mk)
# preloaded_nanoapps.json
PRODUCT_SOONG_NAMESPACES += vendor/google_contexthub/devices/p24_common

View file

@ -91,95 +91,139 @@
"Hidden": true, "Hidden": true,
"VirtualSensor": true, "VirtualSensor": true,
"Formula": "WEIGHTED_AVG", "Formula": "WEIGHTED_AVG",
"Combination":["north_therm", "rfpa_therm", "soc_therm", "charging_therm", "disp_therm", "battery", "btmspkr_therm", "quiet_therm", "usb_pwr_therm"], "Combination": ["north_therm", "soc_therm", "charging_therm", "disp_therm", "battery", "quiet_therm", "usb_pwr_therm", "rfpa_therm", "btmspkr_therm"],
"Coefficient":[0.04, 0.16, 0.19, 0.16, 0.17, 0, 0.01, 0.24, 0], "Coefficient": [0, 0, -0.155, 0, 0, 0.503, 0, 0.559, 0],
"Offset":-820, "Offset": 2614,
"Multiplier":0.001
},
{
"Name":"VIRTUAL-SKIN-CHARGE-SUB-1",
"Type":"UNKNOWN",
"Hidden":true,
"VirtualSensor":true,
"Formula":"WEIGHTED_AVG",
"Combination":["north_therm", "rfpa_therm", "soc_therm", "charging_therm", "disp_therm", "battery", "btmspkr_therm", "quiet_therm", "usb_pwr_therm"],
"Coefficient":[0.02, 0.01, 0.04, 0.04, 0.4, 0.14, 0.1, 0.02, 0.12],
"Offset":1840,
"Multiplier":0.001
},
{
"Name":"VIRTUAL-SKIN-CHARGE-SUB-2",
"Type":"UNKNOWN",
"Hidden":true,
"VirtualSensor":true,
"Formula":"WEIGHTED_AVG",
"Combination":["north_therm", "rfpa_therm", "soc_therm", "charging_therm", "disp_therm", "battery", "btmspkr_therm", "quiet_therm", "usb_pwr_therm"],
"Coefficient":[0.18, 0.1, 0.15, 0.13, 0.22, 0.16, 0.02, 0.04, 0.01],
"Offset":-2810,
"Multiplier":0.001
},
{
"Name":"VIRTUAL-SKIN-CHARGE-SUB-3",
"Type":"UNKNOWN",
"Hidden":true,
"VirtualSensor":true,
"Formula":"WEIGHTED_AVG",
"Combination":["north_therm", "rfpa_therm", "soc_therm", "charging_therm", "disp_therm", "battery", "btmspkr_therm", "quiet_therm", "usb_pwr_therm"],
"Coefficient":[0.1, 0.16, 0.11, 0.19, 0.26, 0, 0, 0.11, 0],
"Offset":1140,
"Multiplier": 0.001 "Multiplier": 0.001
}, },
{ {
"Name":"VIRTUAL-SKIN-CHARGE", "Name":"VIRTUAL-SKIN-CHARGE",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"Version":"4.0", "Version":"1.0",
"VirtualSensor":true, "VirtualSensor":true,
"TriggerSensor":["north_therm", "rfpa_therm", "soc_therm", "charging_therm", "disp_therm", "quiet_therm", "usb_pwr_therm"], "TriggerSensor":"charging_therm",
"Formula":"MAXIMUM", "Formula":"MAXIMUM",
"Combination":["VIRTUAL-SKIN-CHARGE-SUB-0", "VIRTUAL-SKIN-CHARGE-SUB-1", "VIRTUAL-SKIN-CHARGE-SUB-2", "VIRTUAL-SKIN-CHARGE-SUB-3"], "Combination":["VIRTUAL-SKIN-CHARGE-SUB-0"],
"Coefficient":[1.0, 1.0, 1.0, 1.0], "Coefficient":[1.0],
"HotThreshold":["NAN", 44.0, 48.0, 51.0, 55.0, 57.0, 75.0], "HotThreshold":["NAN", 34.0, 38.0, 41.0, 45.0, 47.0, 55.0],
"HotHysteresis":[0.0, 1.9, 3.9, 2.9, 3.9, 1.9, 1.9], "HotHysteresis":[0.0, 1.9, 3.9, 2.9, 3.9, 1.9, 1.9],
"Multiplier":0.001, "Multiplier":0.001,
"PollingDelay":60000, "PollingDelay":60000,
"PassiveDelay":7000, "PassiveDelay":7000,
"PIDInfo": { "PIDInfo": {
"K_Po":["NAN", "NAN", 119, "NAN", "NAN", "NAN", "NAN"], "K_Po":["NAN", "NAN", 600, "NAN", "NAN", "NAN", "NAN"],
"K_Pu":["NAN", "NAN", 119, "NAN", "NAN", "NAN", "NAN"], "K_Pu":["NAN", "NAN", 400, "NAN", "NAN", "NAN", "NAN"],
"K_I":["NAN", "NAN", 25, "NAN", "NAN", "NAN", "NAN"], "K_I":["NAN", "NAN", 21, "NAN", "NAN", "NAN", "NAN"],
"K_D":["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"], "K_D":["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"],
"I_Max":["NAN", "NAN", 1302, "NAN", "NAN", "NAN", "NAN"], "I_Max":["NAN", "NAN", 1600, "NAN", "NAN", "NAN", "NAN"],
"S_Power":["NAN", "NAN", 2527, "NAN", "NAN", "NAN", "NAN"], "S_Power":["NAN", "NAN", 2000, "NAN", "NAN", "NAN", "NAN"],
"MinAllocPower":["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"], "MinAllocPower":["NAN", "NAN", 300, "NAN", "NAN", "NAN", "NAN"],
"MaxAllocPower":["NAN", "NAN", 6219, "NAN", "NAN", "NAN", "NAN"], "MaxAllocPower":["NAN", "NAN", 6000, "NAN", "NAN", "NAN", "NAN"],
"I_Cutoff":["NAN", "NAN", 6, "NAN", "NAN", "NAN", "NAN"], "I_Cutoff":["NAN", "NAN", 6, "NAN", "NAN", "NAN", "NAN"],
"I_Default":1302 "I_Default":1600
}, },
"ExcludedPowerInfo": [ "ExcludedPowerInfo": [
{ {
"PowerRail": "PARTIAL_SYSTEM_POWER", "PowerRail": "PARTIAL_SYSTEM_POWER",
"PowerWeight": [0.12, 0.12, 0.06, 0.06, 0.24, 0.24, 0.24] "PowerWeight": [0.1, 0.1, 0.05, 0.05, 0.2, 0.2, 0.2]
} }
], ],
"BindedCdevInfo": [ "BindedCdevInfo": [
{ {
"CdevRequest": "chg_mdis", "CdevRequest": "fcc",
"CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1], "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
"MaxReleaseStep": 1, "MaxReleaseStep": 1,
"MaxThrottleStep": 1, "MaxThrottleStep": 1,
"CdevCeiling": [0, 25, 25, 25, 26, 26, 26], "CdevCeiling": [0, 25, 25, 25, 26, 26, 26],
"LimitInfo": [0, 0, 1, 1, 1, 26, 26] "LimitInfo": [0, 0, 0, 0, 0, 26, 26]
} }
] ]
},
{
"Name":"VIRTUAL-SKIN-CHARGE-WLC",
"Type":"UNKNOWN",
"Version":"0.1",
"VirtualSensor":true,
"TriggerSensor":"charging_therm",
"Formula":"WEIGHTED_AVG",
"Combination":["charging_therm", "usb_pwr_therm", "soc_therm"],
"Coefficient":[0.259, 0.418, 0.23],
"Offset":2146,
"HotThreshold":["NAN", 34.0, 38.0, 41.0, 45.0, 47.0, 55.0],
"HotHysteresis":[0.0, 1.9, 3.9, 2.9, 3.9, 1.9, 1.9],
"Multiplier":0.001,
"PollingDelay":300000,
"PassiveDelay":7000,
"PIDInfo": {
"K_Po":["NAN", "NAN", 600, "NAN", "NAN", "NAN", "NAN"],
"K_Pu":["NAN", "NAN", 200, "NAN", "NAN", "NAN", "NAN"],
"K_I":["NAN", "NAN", 21, "NAN", "NAN", "NAN", "NAN"],
"K_D":["NAN", "NAN", 0, "NAN", "NAN", "NAN", "NAN"],
"I_Max":["NAN", "NAN", 400, "NAN", "NAN", "NAN", "NAN"],
"S_Power":["NAN", "NAN", 1400, "NAN", "NAN", "NAN", "NAN"],
"MinAllocPower":["NAN", "NAN", 300, "NAN", "NAN", "NAN", "NAN"],
"MaxAllocPower":["NAN", "NAN", 6000, "NAN", "NAN", "NAN", "NAN"],
"I_Cutoff":["NAN", "NAN", 6, "NAN", "NAN", "NAN", "NAN"],
"I_Default":400
},
"ExcludedPowerInfo": [
{
"PowerRail": "PARTIAL_SYSTEM_POWER",
"PowerWeight": [0.1, 0.1, 0.05, 0.05, 0.2, 0.2, 0.2]
}
],
"BindedCdevInfo": [
{
"CdevRequest": "dc_icl",
"CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
"MaxReleaseStep": 1,
"MaxThrottleStep": 1,
"CdevCeiling": [0, 25, 25, 25, 26, 26, 26],
"LimitInfo": [0, 1, 1, 1, 1, 26, 26]
}
]
},
{
"Name":"USB-MINUS-CHARGER",
"Type":"UNKNOWN",
"VirtualSensor":true,
"Formula":"WEIGHTED_AVG",
"Combination":["usb_pwr_therm", "charging_therm"],
"Coefficient":[1.0, -1.0],
"Multiplier":0.001
},
{
"Name":"VIRTUAL-USB-THROTTLING",
"Type":"USB_PORT",
"Version":"0.1",
"VirtualSensor":true,
"Formula":"COUNT_THRESHOLD",
"TriggerSensor": "usb_pwr_therm",
"Combination":["usb_pwr_therm", "USB-MINUS-CHARGER"],
"Coefficient":[46000, 7000],
"HotThreshold":["NAN", "NAN", "NAN", "NAN", "2.0", "NAN", "NAN"],
"BindedCdevInfo": [
{
"CdevRequest": "usbc-port",
"LimitInfo": [0, 0, 0, 0, 1, 1, 1]
}
],
"Multiplier":1,
"PollingDelay":300000,
"PassiveDelay":7000
} }
], ],
"CoolingDevices":[ "CoolingDevices":[
{ {
"Name":"chg_mdis", "Name":"usbc-port",
"Type":"BATTERY" "Type":"BATTERY"
}, },
{ {
"Name":"usbc-port", "Name":"fcc",
"Type":"BATTERY"
},
{
"Name":"dc_icl",
"Type":"BATTERY" "Type":"BATTERY"
} }
], ],
@ -188,8 +232,8 @@
"Name":"PARTIAL_SYSTEM_POWER", "Name":"PARTIAL_SYSTEM_POWER",
"VirtualRails":true, "VirtualRails":true,
"Formula":"WEIGHTED_AVG", "Formula":"WEIGHTED_AVG",
"Combination":["S1S_VDD_CAM", "S4S_VDD2H_MEM", "S5S_VDDQ_MEM", "S8S_VDD_G3D_L2", "S9S_VDD_AOC", "L2S_PLL_MIPI_UFS", "L9S_GNSS_CORE", "L21S_VDD2L_MEM", "VSYS_PWR_DISPLAY", "VSYS_PWR_WLAN_BT", "S1M_VDD_MIF", "S5M_VDD_INT", "S6M_LLDO1", "S7M_VDD_TPU", "S8M_LLDO2", "VSYS_PWR_MODEM"], "Combination":["S1S_VDD_CAM", "S2S_VDD_G3D", "S4S_VDD2H_MEM", "S5S_VDDQ_MEM", "S9S_VDD_AOC", "L2S_PLL_MIPI_UFS", "L21S_VDD2L_MEM", "VSYS_PWR_DISPLAY", "VSYS_PWR_WLAN_BT", "S1M_VDD_MIF", "S2M_VDD_CPUCL1", "S3M_VDD_CPUCL2", "S4M_VDD_CPUCL0", "S5M_VDD_INT", "S6M_LLDO1", "S7M_VDD_TPU", "S8M_LLDO2", "VSYS_PWR_MODEM"],
"Coefficient":[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0], "Coefficient":[1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
"PowerSampleDelay":7000, "PowerSampleDelay":7000,
"PowerSampleCount":5 "PowerSampleCount":5
} }

File diff suppressed because it is too large Load diff

Binary file not shown.