Merge Android U (ab/10368041)

Bug: 291102124
Merged-In: Ic2c4b15ec5e48d9f8d1edc3528d26b1451349e5f
Change-Id: I326626d13b3301e42d09149535c079c3a31ca283
This commit is contained in:
Xin Li 2023-08-14 15:34:13 -07:00
commit 3390e0eddd
77 changed files with 3967 additions and 1031 deletions

3
OWNERS
View file

@ -1 +1,4 @@
per-file powerhint-*.json = jychen@google.com,jenhaochen@google.com,wvw@google.com,joaodias@google.com per-file powerhint-*.json = jychen@google.com,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 *.mk,*/BoardConfig.mk=file:device/google/gs-common:master:/OWNERS

View file

@ -0,0 +1,76 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Copyright (c) 2023, The Linux Foundation. All rights reserved. -->
<!-- -->
<!-- Redistribution and use in source and binary forms, with or without -->
<!-- modification, are permitted provided that the following conditions are -->
<!-- met: -->
<!-- * Redistributions of source code must retain the above copyright -->
<!-- notice, this list of conditions and the following disclaimer. -->
<!-- * Redistributions in binary form must reproduce the above -->
<!-- copyright notice, this list of conditions and the following -->
<!-- disclaimer in the documentation and/or other materials provided -->
<!-- with the distribution. -->
<!-- * Neither the name of The Linux Foundation nor the names of its -->
<!-- contributors may be used to endorse or promote products derived -->
<!-- from this software without specific prior written permission. -->
<!-- -->
<!-- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -->
<!-- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -->
<!-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -->
<!-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -->
<!-- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -->
<!-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -->
<!-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -->
<!-- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -->
<!-- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
<!-- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
<audio_platform_configuration>
<product_lists>
<product name="Blackbird">
<id value="18d1:5033" />
</product>
<product name="Condor">
<id value="18d1:5034" />
</product>
<product name="Condor_Sprint">
<id value="18d1:5038" />
</product>
<product name="Condor_Sprint2">
<id value="18d1:5036" />
</product>
</product_lists>
<features>
<feature name="ThermalThrottle=Type:SKIN,Name:VIRTUAL-SKIN" />
<feature
name="BatteryThrottle=Type:BCL_VOLTAGE,Name:BCL_AUDIO_BAACL,Strategy:MediaSpeakerAndScreenOn" />
<feature
name="PlaybackThermalThrottle=PollWaitMs:20000,ThermistorName:VIRTUAL-SKIN,ThermistorType:SKIN,ThrottlingSeverity:MODERATE" />
</features>
<!-- The voip_db_mapping: format is "device="x" value="f1,f2..." -->
<!-- device should be "handset","speaker","usb","bt","bt_hearing_aid" or "digital_dock" -->
<voip_db_mapping>
<voip_path device="usb" value="0.01,0.02,0.04,0.1,0.21,0.47,1.0" />
</voip_db_mapping>
<!-- The device_builder: format is "type="x" codec_name="y" argu="z". name and argu are optional. -->
<device_builder>
<device type="bt" />
<device type="usb" argu="MaxSamplingRate=96000,UnsupportedFormat=S24_LE" />
<device type="speaker" codec_name="cs35l41" argu="SpeakerNum=4,Rotation,AcousticShockProtection" />
</device_builder>
<!-- The spatial_capture_conditions: format is "use_case="x" audio_source="y" -->
<!-- use_case defines in aidl/audio/usecase/use_case.h, audio_source is definied in aidl interfaces. -->
<spatial_capture_conditions>
<conditions use_case="primary-capture" audio_source="MIC,CAMCORDER,VOICE_RECOGNITION" />
</spatial_capture_conditions>
<!-- The tuner_builder: format is "type="x" codec_name="y" argu="z". argu is optional. -->
<tuner_builder>
<tuner type="playback" name="waves" argu="Sink=SPK ThermistorsName=VIRTUAL-SKIN" />
<tuner type="telephony" name="fortemedia" argu="VoIP_DLCHs=SPK:2,USB:2 VoIP_Rate=32000 BOOST_USB_SWB_CLK=y CCA=y" />
<tuner type="capture" name="gs_capture" />
</tuner_builder>
</audio_platform_configuration>

View file

@ -0,0 +1,201 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Copyright (C) 2020 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.
-->
<audioPolicyConfiguration version="7.0" xmlns:xi="http://www.w3.org/2001/XInclude">
<globalConfiguration speaker_drc_enabled="false" call_screen_mode_supported="true" />
<modules>
<!-- Primary Audio HAL -->
<module name="primary" halVersion="2.0">
<attachedDevices>
<item>Speaker</item>
<item>Speaker Safe</item>
<item>Earpiece</item>
<item>Built-In Mic</item>
<item>Built-In Back Mic</item>
<item>Telephony Tx</item>
<item>Voice Call And Telephony Rx</item>
<item>Echo Ref In</item>
</attachedDevices>
<defaultOutputDevice>Speaker</defaultOutputDevice>
<mixPorts>
<mixPort name="primary output" role="source"
flags="AUDIO_OUTPUT_FLAG_PRIMARY AUDIO_OUTPUT_FLAG_FAST"
recommendedMuteDurationMs="40">
<profile name="" format="AUDIO_FORMAT_PCM_FLOAT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</mixPort>
<mixPort name="deep buffer" role="source" flags="AUDIO_OUTPUT_FLAG_DEEP_BUFFER">
<profile name="" format="AUDIO_FORMAT_PCM_FLOAT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</mixPort>
<mixPort name="compressed offload" role="source"
flags="AUDIO_OUTPUT_FLAG_DIRECT AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD AUDIO_OUTPUT_FLAG_NON_BLOCKING AUDIO_OUTPUT_FLAG_GAPLESS_OFFLOAD">
<profile name="" format="AUDIO_FORMAT_MP3"
samplingRates="8000 16000 24000 32000 44100 48000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_MONO" />
<profile name="" format="AUDIO_FORMAT_AAC_LC"
samplingRates="8000 16000 24000 32000 44100 48000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_MONO" />
<profile name="" format="AUDIO_FORMAT_AAC_HE_V1"
samplingRates="8000 16000 24000 32000 44100 48000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_MONO" />
<profile name="" format="AUDIO_FORMAT_AAC_HE_V2"
samplingRates="8000 16000 24000 32000 44100 48000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_MONO" />
</mixPort>
<mixPort name="haptic" role="source">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO_HAPTIC_A" />
</mixPort>
<mixPort name="immersive_out" role="source" flags="AUDIO_OUTPUT_FLAG_SPATIALIZER">
<profile name="" format="AUDIO_FORMAT_PCM_32_BIT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</mixPort>
<mixPort name="incall playback" role="source"
flags="AUDIO_OUTPUT_FLAG_INCALL_MUSIC">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</mixPort>
<mixPort name="voip_rx" role="source"
flags="AUDIO_OUTPUT_FLAG_VOIP_RX">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</mixPort>
<!-- <mixPort name="mmap playback" role="source"
flags="AUDIO_OUTPUT_FLAG_DIRECT AUDIO_OUTPUT_FLAG_MMAP_NOIRQ">
<profile name="" format="AUDIO_FORMAT_PCM_FLOAT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</mixPort>
<mixPort name="raw" role="source" flags="AUDIO_OUTPUT_FLAG_RAW AUDIO_OUTPUT_FLAG_FAST">
<profile name="" format="AUDIO_FORMAT_PCM_32_BIT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</mixPort> -->
<mixPort name="primary input" role="sink">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000"
channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO AUDIO_CHANNEL_INDEX_MASK_3" />
</mixPort>
<mixPort name="voip_tx" role="sink"
flags="AUDIO_INPUT_FLAG_VOIP_TX">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_MONO" />
</mixPort>
<mixPort name="fast input" role="sink"
flags="AUDIO_INPUT_FLAG_RAW AUDIO_INPUT_FLAG_FAST">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000"
channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO" />
</mixPort>
<mixPort name="hotword input" role="sink" flags="AUDIO_INPUT_FLAG_HW_HOTWORD">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="16000"
channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO" />
</mixPort>
<!-- <mixPort name="mmap capture" role="sink" flags="AUDIO_INPUT_FLAG_MMAP_NOIRQ">
<profile name="" format="AUDIO_FORMAT_PCM_32_BIT"
samplingRates="48000"
channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO" />
</mixPort> -->
</mixPorts>
<devicePorts>
<!-- Output devices declaration, i.e. Sink DEVICE PORT -->
<devicePort tagName="Earpiece" type="AUDIO_DEVICE_OUT_EARPIECE" role="sink" />
<devicePort tagName="Speaker" type="AUDIO_DEVICE_OUT_SPEAKER" role="sink" />
<devicePort tagName="Speaker Safe" type="AUDIO_DEVICE_OUT_SPEAKER_SAFE" role="sink" />
<devicePort tagName="Wired Headset" type="AUDIO_DEVICE_OUT_WIRED_HEADSET"
role="sink" />
<devicePort tagName="Wired Headphones" type="AUDIO_DEVICE_OUT_WIRED_HEADPHONE"
role="sink" />
<devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" role="sink" />
<devicePort tagName="BT SCO Headset" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET"
role="sink" />
<devicePort tagName="BT SCO Car Kit" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT"
role="sink" />
<devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink" />
<devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET"
role="sink" />
<devicePort tagName="Aux Digital" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink" />
<devicePort tagName="Telephony Tx" type="AUDIO_DEVICE_OUT_TELEPHONY_TX" role="sink" />
<!-- Input devices declaration, i.e. Source DEVICE PORT -->
<devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source" />
<devicePort tagName="Built-In Back Mic" type="AUDIO_DEVICE_IN_BACK_MIC"
role="source" />
<devicePort tagName="Wired Headset Mic" type="AUDIO_DEVICE_IN_WIRED_HEADSET"
role="source" />
<devicePort tagName="BT SCO Headset Mic"
type="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET" role="source" />
<devicePort tagName="BT A2DP Out" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP" role="sink"
encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</devicePort>
<devicePort tagName="BT A2DP Headphones"
type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES" role="sink"
encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</devicePort>
<devicePort tagName="BT A2DP Speaker" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER"
role="sink"
encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</devicePort>
<devicePort tagName="BT BLE Headset" type="AUDIO_DEVICE_OUT_BLE_HEADSET" role="sink"
encodedFormats="AUDIO_FORMAT_LC3">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</devicePort>
<devicePort tagName="BT BLE Speaker" type="AUDIO_DEVICE_OUT_BLE_SPEAKER" role="sink"
encodedFormats="AUDIO_FORMAT_LC3">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</devicePort>
<devicePort tagName="BLE Headset Mic" type="AUDIO_DEVICE_IN_BLE_HEADSET"
role="source">
</devicePort>
<devicePort tagName="USB Device In" type="AUDIO_DEVICE_IN_USB_DEVICE" role="source" />
<devicePort tagName="USB Headset In" type="AUDIO_DEVICE_IN_USB_HEADSET"
role="source" />
<!-- AUDIO_DEVICE_IN_VOICE_CALL and AUDIO_DEVICE_IN_TELEPHONY_RX are in the same
value -->
<devicePort tagName="Voice Call And Telephony Rx" type="AUDIO_DEVICE_IN_VOICE_CALL"
role="source" />
<devicePort tagName="Echo Ref In" type="AUDIO_DEVICE_IN_ECHO_REFERENCE"
role="source" />
</devicePorts>
<!-- route declaration, i.e. list all available sources for a given sink -->
<routes>
<route type="mix" sink="Earpiece"
sources="primary output,deep buffer,haptic,voip_rx,compressed offload" />
<route type="mix" sink="Speaker"
sources="primary output,deep buffer,haptic,voip_rx,compressed offload" />
<route type="mix" sink="Telephony Tx" sources="incall playback" />
<route type="mix" sink="primary input"
sources="Built-In Mic,Built-In Back Mic" />
<route type="mix" sink="voip_tx"
sources="Built-In Mic,Built-In Back Mic" />
<route type="mix" sink="fast input"
sources="Built-In Mic,Built-In Back Mic" />
<route type="mix" sink="hotword input" sources="Built-In Mic" />
</routes>
</module>
</modules>
<!-- End of Modules section -->
<!-- Volume section -->
<xi:include href="audio_policy_volumes.xml" />
<xi:include href="default_volume_tables.xml" />
<!-- End of Volume section -->
</audioPolicyConfiguration>

View file

@ -0,0 +1,227 @@
<?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>
-->
<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,-4700</point>
<point>33,-3500</point>
<point>66,-2350</point>
<point>100,-1250</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,-3350</point>
<point>33,-2100</point>
<point>66,-1000</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"
ref="DEFAULT_DEVICE_CATEGORY_SPEAKER_VOLUME_CURVE"/>
<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,-4800</point>
<point>33,-2050</point>
<point>66,-800</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,-3800</point>
<point>33,-2600</point>
<point>66,-1400</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,-4700</point>
<point>33,-3500</point>
<point>66,-2350</point>
<point>100,-1250</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,-5500</point>
<point>33,-3650</point>
<point>66,-2700</point>
<point>100,-1800</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>

View file

@ -0,0 +1,862 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Copyright (c) 2022, The Linux Foundation. All rights reserved. -->
<!-- -->
<!-- Redistribution and use in source and binary forms, with or without -->
<!-- modification, are permitted provided that the following conditions are -->
<!-- met: -->
<!-- * Redistributions of source code must retain the above copyright -->
<!-- notice, this list of conditions and the following disclaimer. -->
<!-- * Redistributions in binary form must reproduce the above -->
<!-- copyright notice, this list of conditions and the following -->
<!-- disclaimer in the documentation and/or other materials provided -->
<!-- with the distribution. -->
<!-- * Neither the name of The Linux Foundation nor the names of its -->
<!-- contributors may be used to endorse or promote products derived -->
<!-- from this software without specific prior written permission. -->
<!-- -->
<!-- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -->
<!-- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -->
<!-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -->
<!-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -->
<!-- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -->
<!-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -->
<!-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -->
<!-- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -->
<!-- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
<!-- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
<mixer>
<!-- Initial default value of ALSA command -->
<!-- PCM timeout -->
<ctl name="PCM Stream Wait Time in MSec" value="100" />
<ctl name="Voice PCM Stream Wait Time in MSec" value="500" />
<!-- Enable it when AOC is ready to trim delay and padding -->
<ctl name="Gapless Offload Enable" value="1" />
<!-- TDM 0 setting -->
<ctl name="TDM_0_RX Chan" value="Four" />
<ctl name="TDM_0_RX Format" value="S32_LE" />
<ctl name="TDM_0_RX Sample Rate" value="SR_48K" />
<ctl name="TDM_0_TX Chan" value="Four" />
<ctl name="TDM_0_TX Format" value="S32_LE" />
<ctl name="TDM_0_TX Sample Rate" value="SR_48K" />
<!-- Haptic setting -->
<ctl name="Haptics Source" value="PCM" />
<ctl name="HAPTIC_RX Format" value="S32_LE" />
<ctl name="HAPTIC_RX SlotFmt" value="S32_LE" />
<ctl name="HAPTIC_RX Chan" value="Four" />
<ctl name="HAPTIC_RX nSlot" value="Four" />
<ctl name="RX Slots" id="0" value="2" />
<ctl name="RX Slots" id="1" value="3" />
<!-- Cirrus default 96K -->
<ctl name="Default 96K" value="0" />
<ctl name="R Default 96K" value="0" />
<!-- Cirrus Booster Amp TDM slot assignment-->
<!-- RX slot -->
<ctl name="ASPRX1 Slot Position" value="0" />
<ctl name="ASPRX2 Slot Position" value="1" />
<ctl name="R ASPRX1 Slot Position" value="1" />
<ctl name="R ASPRX2 Slot Position" value="0" />
<!-- TX slot -->
<ctl name="ASPTX1 Slot Position" value="0" />
<ctl name="R ASPTX1 Slot Position" value="1" />
<ctl name="ASPTX2 Slot Position" value="2" />
<ctl name="R ASPTX2 Slot Position" value="3" />
<ctl name="ASPTX3 Slot Position" value="4" />
<ctl name="R ASPTX3 Slot Position" value="5" />
<ctl name="ASPTX4 Slot Position" value="6" />
<ctl name="R ASPTX4 Slot Position" value="7" />
<!-- Cirrus Booster Amp DRE and VBST config-->
<ctl name="VBSTMON Output Switch" value="1" />
<ctl name="R VBSTMON Output Switch" value="1" />
<ctl name="DRE DRE Switch" value="1" />
<ctl name="R DRE DRE Switch" value="1" />
<!-- Cirrus Booster Amp Output Gain -->
<ctl name="AMP PCM Gain" value="17" />
<ctl name="R AMP PCM Gain" value="17" />
<ctl name="Digital PCM Volume" value="817" />
<ctl name="R Digital PCM Volume" value="817" />
<!-- Cirrus Booster Amp Power -->
<ctl name="Main AMP Enable Switch" value="0" />
<ctl name="R Main AMP Enable Switch" value="0" />
<!-- Cirrus Booster mode -->
<ctl name="PCM Source" value="DSP" />
<ctl name="R PCM Source" value="DSP" />
<ctl name="DSP1 Firmware" value="Protection" />
<ctl name="R DSP1 Firmware" value="Protection" />
<ctl name="DSP RX1 Source" value="ASPRX1" />
<ctl name="DSP RX2 Source" value="ASPRX1" />
<ctl name="R DSP RX1 Source" value="ASPRX1" />
<ctl name="R DSP RX2 Source" value="ASPRX1" />
<ctl name="Boost Peak Current Limit" value="3.50A" />
<ctl name="R Boost Peak Current Limit" value="3.50A" />
<!-- Cirrus ASP TX source -->
<ctl name="ASP TX1 Source" value="VMON" />
<ctl name="R ASP TX1 Source" value="VMON" />
<ctl name="ASP TX2 Source" value="IMON" />
<ctl name="R ASP TX2 Source" value="IMON" />
<ctl name="ASP TX3 Source" value="Zero" />
<ctl name="R ASP TX3 Source" value="Zero" />
<ctl name="ASP TX4 Source" value="Zero" />
<ctl name="R ASP TX4 Source" value="Zero" />
<!-- Cirrus fast switch init -->
<ctl name="Fast Use Case Switch Enable" value="0" />
<ctl name="Fast Use Case Delta File" value="fast_switch5.txt" />
<ctl name="R Fast Use Case Switch Enable" value="0" />
<ctl name="R Fast Use Case Delta File" value="fast_switch5.txt" />
<!-- default EP volume -->
<ctl name="PCM Playback Switch" value="1" />
<ctl name="PCM Playback Volume" value="10" />
<!-- audio RX route initial/default value -->
<ctl name="TDM_0_RX Mixer EP1" value="0" />
<ctl name="TDM_0_RX Mixer EP2" value="0" />
<ctl name="TDM_0_RX Mixer EP3" value="0" />
<ctl name="TDM_0_RX Mixer EP4" value="0" />
<ctl name="TDM_0_RX Mixer EP5" value="0" />
<ctl name="TDM_0_RX Mixer EP6" value="0" />
<ctl name="TDM_0_RX Mixer EP7" value="0" />
<ctl name="TDM_0_RX Mixer EP8" value="0" />
<ctl name="TDM_0_RX Mixer NoHost1" value="0" />
<ctl name="TDM_0_RX Mixer VOIP" value="0" />
<ctl name="TDM_0_RX Mixer RAW" value="0" />
<ctl name="TDM_0_RX Mixer IMSV" value="0" />
<ctl name="TDM_1_RX Mixer EP1" value="0" />
<ctl name="TDM_1_RX Mixer EP2" value="0" />
<ctl name="TDM_1_RX Mixer EP3" value="0" />
<ctl name="TDM_1_RX Mixer EP4" value="0" />
<ctl name="TDM_1_RX Mixer EP5" value="0" />
<ctl name="TDM_1_RX Mixer EP6" value="0" />
<ctl name="TDM_1_RX Mixer EP7" value="0" />
<ctl name="TDM_1_RX Mixer EP8" value="0" />
<ctl name="TDM_1_RX Mixer NoHost1" value="0" />
<ctl name="USB_RX Mixer EP1" value="0" />
<ctl name="USB_RX Mixer EP2" value="0" />
<ctl name="USB_RX Mixer EP3" value="0" />
<ctl name="USB_RX Mixer EP4" value="0" />
<ctl name="USB_RX Mixer EP5" value="0" />
<ctl name="USB_RX Mixer EP6" value="0" />
<ctl name="USB_RX Mixer EP7" value="0" />
<ctl name="USB_RX Mixer NoHost1" value="0" />
<ctl name="USB_RX Mixer VOIP" value="0" />
<ctl name="USB_RX Mixer HIFI" value="0" />
<ctl name="USB_RX Mixer RAW" value="0" />
<ctl name="USB_RX Mixer IMSV" value="0" />
<ctl name="BT_RX Mixer EP1" value="0" />
<ctl name="BT_RX Mixer EP2" value="0" />
<ctl name="BT_RX Mixer EP3" value="0" />
<ctl name="BT_RX Mixer EP4" value="0" />
<ctl name="BT_RX Mixer EP5" value="0" />
<ctl name="BT_RX Mixer EP6" value="0" />
<ctl name="BT_RX Mixer EP7" value="0" />
<ctl name="BT_RX Mixer NoHost1" value="0" />
<ctl name="BT_RX Mixer VOIP" value="0" />
<ctl name="BT_RX Mixer RAW" value="0" />
<ctl name="BT_RX Mixer IMSV" value="0" />
<ctl name="INCALL_RX Mixer EP1" value="0" />
<ctl name="INCALL_RX Mixer EP2" value="0" />
<ctl name="INCALL_RX Mixer EP3" value="0" />
<ctl name="INCALL_RX Mixer EP4" value="0" />
<ctl name="INCALL_RX Mixer EP5" value="0" />
<ctl name="INCALL_RX Mixer EP6" value="0" />
<ctl name="INCALL_RX Mixer EP7" value="0" />
<ctl name="INCALL_RX Mixer NoHost1" value="0" />
<ctl name="SINK_IDS" id="0" value="-1" />
<ctl name="SINK_IDS" id="1" value="-1" />
<!-- audio TX route initial/default value -->
<ctl name="EP1 TX Mixer TDM_0_TX" value="0" />
<ctl name="EP2 TX Mixer TDM_0_TX" value="0" />
<ctl name="EP3 TX Mixer TDM_0_TX" value="0" />
<ctl name="EP4 TX Mixer TDM_0_TX" value="0" />
<ctl name="EP5 TX Mixer TDM_0_TX" value="0" />
<ctl name="EP6 TX Mixer TDM_0_TX" value="0" />
<ctl name="NoHost1 TX Mixer TDM_0_TX" value="0" />
<ctl name="EP1 TX Mixer TDM_1_TX" value="0" />
<ctl name="EP2 TX Mixer TDM_1_TX" value="0" />
<ctl name="EP3 TX Mixer TDM_1_TX" value="0" />
<ctl name="EP4 TX Mixer TDM_1_TX" value="0" />
<ctl name="EP5 TX Mixer TDM_1_TX" value="0" />
<ctl name="EP6 TX Mixer TDM_1_TX" value="0" />
<ctl name="NoHost1 TX Mixer TDM_1_TX" value="0" />
<ctl name="EP1 TX Mixer INTERNAL_MIC_TX" value="0" />
<ctl name="EP2 TX Mixer INTERNAL_MIC_TX" value="0" />
<ctl name="EP3 TX Mixer INTERNAL_MIC_TX" value="0" />
<ctl name="EP4 TX Mixer INTERNAL_MIC_TX" value="0" />
<ctl name="EP5 TX Mixer INTERNAL_MIC_TX" value="0" />
<ctl name="EP6 TX Mixer INTERNAL_MIC_TX" value="0" />
<ctl name="NoHost1 TX Mixer INTERNAL_MIC_TX" value="0" />
<ctl name="VOIP TX Mixer INTERNAL_MIC_TX" value="0" />
<ctl name="EP1 TX Mixer BT_TX" value="0" />
<ctl name="EP2 TX Mixer BT_TX" value="0" />
<ctl name="EP3 TX Mixer BT_TX" value="0" />
<ctl name="EP4 TX Mixer BT_TX" value="0" />
<ctl name="EP5 TX Mixer BT_TX" value="0" />
<ctl name="EP6 TX Mixer BT_TX" value="0" />
<ctl name="NoHost1 TX Mixer BT_TX" value="0" />
<ctl name="VOIP TX Mixer BT_TX" value="0" />
<ctl name="EP1 TX Mixer USB_TX" value="0" />
<ctl name="EP2 TX Mixer USB_TX" value="0" />
<ctl name="EP3 TX Mixer USB_TX" value="0" />
<ctl name="EP4 TX Mixer USB_TX" value="0" />
<ctl name="EP5 TX Mixer USB_TX" value="0" />
<ctl name="EP6 TX Mixer USB_TX" value="0" />
<ctl name="NoHost1 TX Mixer USB_TX" value="0" />
<ctl name="VOIP TX Mixer USB_TX" value="0" />
<ctl name="EP1 TX Mixer INCALL_TX" value="0" />
<ctl name="EP2 TX Mixer INCALL_TX" value="0" />
<ctl name="EP3 TX Mixer INCALL_TX" value="0" />
<ctl name="EP4 TX Mixer INCALL_TX" value="0" />
<ctl name="EP5 TX Mixer INCALL_TX" value="0" />
<ctl name="EP6 TX Mixer INCALL_TX" value="0" />
<ctl name="NoHost1 TX Mixer INCALL_TX" value="0" />
<ctl name="EP4 TX Mixer I2S_2_TX" value="0" />
<!-- AoC Mic setting -->
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC HW Gain At High Power Mode (cB)" value="0" />
<ctl name="MIC Record Soft Gain (dB)" value="-40" />
<!-- USB setting v2 -->
<ctl name="USB Bus ID v2" value="2" />
<ctl name="USB Dev ID v2" value="2" />
<ctl name="USB Playback EP ID v2" value="1" />
<ctl name="USB Playback FORMAT v2" value="0" />
<ctl name="USB Playback SR v2" value="48000" />
<ctl name="USB Playback CH v2" value="2" />
<ctl name="USB Playback BW v2" value="24" />
<ctl name="USB Capture EP ID v2" value="1" />
<ctl name="USB Capture FORMAT v2" value="0" />
<ctl name="USB Capture SR v2" value="48000" />
<ctl name="USB Capture CH v2" value="1" />
<ctl name="USB Capture BW v2" value="16" />
<ctl name="AoC Modem Downlink ASRC Mode" value="ASP_ON" />
<ctl name="Voice Call Mic Source" value="Builtin_MIC" />
<ctl name="Audio Capture Eraser Enable" value="0" />
<!-- audio PDM mic default state -->
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="-1" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="-1" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="-1" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="Audio Capture Mic Source" value="Builtin_MIC" />
<!-- sidetone controls -->
<ctl name="Sidetone Enable" value="0" />
<ctl name="Sidetone Volume" value="-96" />
<ctl name="Sidetone Selected Mic" value="0" />
<ctl name="Sidetone EQ Stage Number" value="1" />
<!-- IEEE 754, value is in float -->
<ctl name="Sidetone Biquad0" id="0" value="0" />
<ctl name="Sidetone Biquad0" id="1" value="0" />
<ctl name="Sidetone Biquad0" id="2" value="0" />
<ctl name="Sidetone Biquad0" id="3" value="0" />
<ctl name="Sidetone Biquad0" id="4" value="0" />
<ctl name="Sidetone Biquad0" id="5" value="0" />
<ctl name="Sidetone Biquad1" id="0" value="0" />
<ctl name="Sidetone Biquad1" id="1" value="0" />
<ctl name="Sidetone Biquad1" id="2" value="0" />
<ctl name="Sidetone Biquad1" id="3" value="0" />
<ctl name="Sidetone Biquad1" id="4" value="0" />
<ctl name="Sidetone Biquad1" id="5" value="0" />
<ctl name="Sidetone Biquad2" id="0" value="0" />
<ctl name="Sidetone Biquad2" id="1" value="0" />
<ctl name="Sidetone Biquad2" id="2" value="0" />
<ctl name="Sidetone Biquad2" id="3" value="0" />
<ctl name="Sidetone Biquad2" id="4" value="0" />
<ctl name="Sidetone Biquad2" id="5" value="0" />
<ctl name="Sidetone Biquad3" id="0" value="0" />
<ctl name="Sidetone Biquad3" id="1" value="0" />
<ctl name="Sidetone Biquad3" id="2" value="0" />
<ctl name="Sidetone Biquad3" id="3" value="0" />
<ctl name="Sidetone Biquad3" id="4" value="0" />
<ctl name="Sidetone Biquad3" id="5" value="0" />
<ctl name="Sidetone Biquad4" id="0" value="0" />
<ctl name="Sidetone Biquad4" id="1" value="0" />
<ctl name="Sidetone Biquad4" id="2" value="0" />
<ctl name="Sidetone Biquad4" id="3" value="0" />
<ctl name="Sidetone Biquad4" id="4" value="0" />
<ctl name="Sidetone Biquad4" id="5" value="0" />
<ctl name="Incall Capture Stream0" value="Off" />
<ctl name="Incall Capture Stream1" value="Off" />
<ctl name="Incall Capture Stream2" value="Off" />
<!-- These two controls control the muting function of mics and sinks during the voice call. -->
<!-- They would be enabled by HAL. -->
<ctl name="Incall Sink Mute" value="0" />
<ctl name="Incall Mic Mute" value="0" />
<ctl name="Compress Offload Volume" value="1000" />
<ctl name="Decoder Reference Enable" value="0" />
<ctl name="LVM Enable" value="0" />
<!-- sidetone dynamic control -->
<path name="sidetone-for handset">
<!-- 1065353216 = 0x3f800000 = 1.0 -->
<ctl name="Sidetone Biquad0" id="0" value="1065353216" />
<ctl name="Sidetone Biquad0" id="1" value="1065353216" />
<ctl name="Sidetone Biquad0" id="2" value="0" />
<ctl name="Sidetone Biquad0" id="3" value="0" />
<ctl name="Sidetone Biquad0" id="4" value="0" />
<ctl name="Sidetone Biquad0" id="5" value="0" />
<ctl name="Sidetone Biquad1" id="0" value="1065353216" />
<ctl name="Sidetone Biquad1" id="1" value="1065353216" />
<ctl name="Sidetone Biquad1" id="2" value="0" />
<ctl name="Sidetone Biquad1" id="3" value="0" />
<ctl name="Sidetone Biquad1" id="4" value="0" />
<ctl name="Sidetone Biquad1" id="5" value="0" />
<ctl name="Sidetone Biquad2" id="0" value="1065353216" />
<ctl name="Sidetone Biquad2" id="1" value="1065353216" />
<ctl name="Sidetone Biquad2" id="2" value="0" />
<ctl name="Sidetone Biquad2" id="3" value="0" />
<ctl name="Sidetone Biquad2" id="4" value="0" />
<ctl name="Sidetone Biquad2" id="5" value="0" />
<ctl name="Sidetone Biquad3" id="0" value="1065353216" />
<ctl name="Sidetone Biquad3" id="1" value="1065353216" />
<ctl name="Sidetone Biquad3" id="2" value="0" />
<ctl name="Sidetone Biquad3" id="3" value="0" />
<ctl name="Sidetone Biquad3" id="4" value="0" />
<ctl name="Sidetone Biquad3" id="5" value="0" />
<ctl name="Sidetone Biquad4" id="0" value="1065353216" />
<ctl name="Sidetone Biquad4" id="1" value="1065353216" />
<ctl name="Sidetone Biquad4" id="2" value="0" />
<ctl name="Sidetone Biquad4" id="3" value="0" />
<ctl name="Sidetone Biquad4" id="4" value="0" />
<ctl name="Sidetone Biquad4" id="5" value="0" />
<ctl name="Sidetone EQ Stage Number" value="5" />
<ctl name="Sidetone Volume" value="-90" />
<ctl name="Sidetone Enable" value="1" />
</path>
<!-- audio playback dynamic route -->
<path name="primary-playback -> speaker">
<ctl name="TDM_0_RX Mixer EP2" value="1" />
</path>
<path name="primary-playback-0 -> speaker">
<path name="primary-playback -> speaker" />
</path>
<path name="primary-playback-0 -> speaker-earpiece">
<path name="primary-playback -> speaker" />
</path>
<path name="primary-playback-0 -> speaker-safe">
<path name="primary-playback -> speaker" />
</path>
<path name="primary-playback -> bt">
<ctl name="BT_RX Mixer EP2" value="1" />
</path>
<path name="primary-playback -> usb-headset">
<ctl name="USB_RX Mixer EP2" value="1" />
</path>
<path name="raw-playback -> speaker">
<ctl name="TDM_0_RX Mixer RAW" value="1" />
</path>
<path name="raw-playback-0 -> speaker">
<path name="raw-playback -> speaker" />
</path>
<path name="raw-playback-0 -> speaker-earpiece">
<path name="raw-playback -> speaker" />
</path>
<path name="raw-playback-0 -> speaker-safe">
<path name="raw-playback -> speaker" />
</path>
<path name="raw-playback -> bt">
<ctl name="BT_RX Mixer RAW" value="1" />
</path>
<path name="raw-playback -> usb-headset">
<ctl name="USB_RX Mixer RAW" value="1" />
</path>
<path name="deep-buffer-playback -> speaker">
<ctl name="TDM_0_RX Mixer EP6" value="1" />
</path>
<path name="deep-buffer-playback-0 -> speaker">
<path name="deep-buffer-playback -> speaker" />
</path>
<path name="deep-buffer-playback-0 -> speaker-earpiece">
<path name="deep-buffer-playback -> speaker" />
</path>
<path name="deep-buffer-playback-0 -> speaker-safe">
<path name="deep-buffer-playback -> speaker" />
</path>
<path name="deep-buffer-playback -> bt">
<ctl name="BT_RX Mixer EP6" value="1" />
</path>
<path name="deep-buffer-playback -> usb-headset">
<ctl name="USB_RX Mixer EP6" value="1" />
</path>
<path name="compress-offload-playback">
<ctl name="LVM Enable" value="1" />
</path>
<path name="compress-offload-playback -> speaker">
<path name="compress-offload-playback" />
<ctl name="TDM_0_RX Mixer EP7" value="1" />
</path>
<path name="compress-offload-playback-0 -> speaker">
<path name="compress-offload-playback -> speaker" />
</path>
<path name="compress-offload-playback-0 -> speaker-earpiece">
<path name="compress-offload-playback -> speaker" />
</path>
<path name="compress-offload-playback-0 -> speaker-safe">
<path name="compress-offload-playback -> speaker" />
</path>
<path name="compress-offload-playback -> bt">
<ctl name="BT_RX Mixer EP7" value="1" />
</path>
<path name="compress-offload-playback -> usb-headset">
<ctl name="USB_RX Mixer EP7" value="1" />
</path>
<path name="mmap-playback -> speaker">
<ctl name="TDM_0_RX Mixer EP1" value="1" />
</path>
<path name="mmap-playback-0 -> speaker">
<path name="mmap-playback -> speaker" />
</path>
<path name="mmap-playback-0 -> speaker-earpiece">
<path name="mmap-playback -> speaker" />
</path>
<path name="mmap-playback-0 -> speaker-safe">
<path name="mmap-playback -> speaker" />
</path>
<path name="mmap-playback -> bt">
<ctl name="BT_RX Mixer EP1" value="1" />
</path>
<path name="mmap-playback -> usb-headset">
<ctl name="USB_RX Mixer EP1" value="1" />
</path>
<path name="hifi-playback -> usb-headset">
<ctl name="USB_RX Mixer HIFI" value="1" />
</path>
<path name="voip-playback -> speaker">
<ctl name="TDM_0_RX Mixer VOIP" value="1" />
</path>
<path name="voip-playback-0 -> speaker">
<path name="voip-playback -> speaker" />
</path>
<path name="voip-playback-0 -> speaker-earpiece">
<path name="voip-playback -> speaker" />
</path>
<path name="voip-playback-0 -> speaker-safe">
<path name="voip-playback -> speaker" />
</path>
<path name="voip-playback -> bt">
<ctl name="BT_RX Mixer VOIP" value="1" />
</path>
<path name="voip-playback -> usb-headset">
<ctl name="USB_RX Mixer VOIP" value="1" />
</path>
<path name="immersive-playback -> speaker">
<ctl name="TDM_0_RX Mixer IMSV" value="1" />
</path>
<path name="immersive-playback-0 -> speaker">
<path name="immersive-playback -> speaker" />
</path>
<path name="immersive-playback-0 -> speaker-earpiece">
<path name="immersive-playback -> speaker" />
</path>
<path name="immersive-playback-0 -> speaker-safe">
<path name="immersive-playback -> speaker" />
</path>
<path name="immersive-playback -> bt">
<ctl name="BT_RX Mixer IMSV" value="1" />
</path>
<path name="immersive-playback -> usb-headset">
<ctl name="USB_RX Mixer IMSV" value="1" />
</path>
<path name="haptic-playback -> speaker">
<ctl name="TDM_0_RX Mixer EP3" value="1" />
<ctl name="TDM_0_RX Mixer EP8" value="1" />
</path>
<path name="haptic-playback-0 -> speaker">
<path name="haptic-playback -> speaker" />
</path>
<path name="haptic-playback-0 -> speaker-earpiece">
<path name="haptic-playback -> speaker" />
</path>
<path name="haptic-playback-0 -> speaker-safe">
<path name="haptic-playback -> speaker" />
</path>
<path name="haptic-playback -> bt">
<ctl name="BT_RX Mixer EP3" value="1" />
<ctl name="TDM_0_RX Mixer EP8" value="1" />
</path>
<path name="haptic-playback -> usb-headset">
<ctl name="USB_RX Mixer EP3" value="1" />
<ctl name="TDM_0_RX Mixer EP8" value="1" />
</path>
<!-- audio capture dynamic route -->
<path name="microphones -> primary-capture-0">
<ctl name="EP1 TX Mixer INTERNAL_MIC_TX" value="1" />
</path>
<path name="back-microphones -> primary-capture-0">
<ctl name="EP1 TX Mixer INTERNAL_MIC_TX" value="1" />
</path>
<path name="usb-headset-mic -> primary-capture-0">
<ctl name="EP1 TX Mixer USB_TX" value="1" />
</path>
<path name="microphones -> voip-capture-0">
<ctl name="VOIP TX Mixer INTERNAL_MIC_TX" value="1" />
</path>
<path name="back-microphones -> voip-capture-0">
<ctl name="VOIP TX Mixer INTERNAL_MIC_TX" value="1" />
</path>
<path name="usb-headset-mic -> voip-capture-0">
<ctl name="VOIP TX Mixer USB_TX" value="1" />
</path>
<path name="bt-mic -> voip-capture-0">
<ctl name="VOIP TX Mixer BT_TX" value="1" />
</path>
<path name="microphones -> fast-capture-0">
<ctl name="EP3 TX Mixer INTERNAL_MIC_TX" value="1" />
</path>
<path name="back-microphones -> fast-capture-0">
<ctl name="EP3 TX Mixer INTERNAL_MIC_TX" value="1" />
</path>
<path name="usb-headset-mic -> fast-capture-0">
<ctl name="EP3 TX Mixer USB_TX" value="1" />
</path>
<path name="bt-mic -> fast-capture-0">
<ctl name="EP3 TX Mixer BT_TX" value="1" />
</path>
<path name="microphones -> sound-trigger-capture-0">
</path>
<!-- voice-call dynamic route -->
<path name="voice-call-downlink-0 -> speaker">
<ctl name="TDM_0_RX Mixer EP5" value="1" />
</path>
<path name="voice-call-downlink-0 -> speaker-earpiece">
<ctl name="TDM_0_RX Mixer EP5" value="1" />
</path>
<path name="voice-call-downlink-0 -> bt">
<ctl name="BT_RX Mixer EP5" value="1" />
</path>
<path name="voice-call-downlink-0 -> usb-headphone">
<ctl name="USB_RX Mixer EP5" value="1" />
</path>
<path name="voice-call-downlink-0 -> null-sink">
<ctl name="INCALL_RX Mixer EP5" value="1" />
</path>
<path name="microphones -> voice-call-uplink-0">
<ctl name="EP4 TX Mixer INTERNAL_MIC_TX" value="1" />
</path>
<path name="back-microphones -> voice-call-uplink-0">
<ctl name="EP4 TX Mixer INTERNAL_MIC_TX" value="1" />
</path>
<path name="usb-headset-mic -> voice-call-uplink-0">
<ctl name="EP4 TX Mixer USB_TX" value="1" />
</path>
<path name="bt-mic -> voice-call-uplink-0">
<ctl name="EP4 TX Mixer BT_TX" value="1" />
</path>
<path name="null-source -> voice-call-uplink-0">
<ctl name="EP4 TX Mixer INCALL_TX" value="1" />
</path>
<path name="hostless-ulC spk-vi">
<ctl name="NoHost1 TX Mixer TDM_0_TX" value="1" />
</path>
<path name="telephony-rx -> in-call-capture-0" />
<path name="telephony-rx -> in-call-capture-1" />
<path name="telephony-rx -> in-call-capture-2" />
<path name="microphones -> mmap-capture-0">
<ctl name="EP2 TX Mixer INTERNAL_MIC_TX" value="1" />
</path>
<path name="usb-headset-mic -> mmap-capture-0">
<ctl name="EP2 TX Mixer USB_TX" value="1" />
</path>
<path name="bt-mic -> mmap-capture-0">
<ctl name="EP2 TX Mixer BT_TX" value="1" />
</path>
<!-- codec setting -->
<!-- Rx device -->
<path name="speaker-earpiece">
<ctl name="PCM Source" value="ASP" />
<ctl name="AMP PCM Gain" value="6" />
<ctl name="Main AMP Enable Switch" value="1" />
</path>
<path name="speaker-earpiece (VOICE)">
<ctl name="Boost Peak Current Limit" value="3.50A" />
<ctl name="PCM Source" value="ASP" />
<ctl name="AMP PCM Gain" value="7" />
<ctl name="Main AMP Enable Switch" value="1" />
</path>
<path name="speaker">
<ctl name="Boost Peak Current Limit" value="2.50A" />
<ctl name="R Boost Peak Current Limit" value="2.50A" />
<ctl name="Main AMP Enable Switch" value="1" />
<ctl name="R Main AMP Enable Switch" value="1" />
<ctl name="Fast Use Case Delta File" value="fast_switch3.txt" />
<ctl name="Fast Use Case Switch Enable" value="1" />
<ctl name="R Fast Use Case Delta File" value="fast_switch4.txt" />
<ctl name="R Fast Use Case Switch Enable" value="1" />
</path>
<path name="speaker (VOICE)">
<ctl name="R Boost Peak Current Limit" value="3.50A" />
<ctl name="Boost Peak Current Limit" value="3.50A" />
<ctl name="ASPTX1 Slot Position" value="1" />
<ctl name="R ASPTX1 Slot Position" value="0" />
<!--<ctl
name="R DSP RX2 Source" value="ASPRX2"/>-->
<ctl name="R Main AMP Enable Switch" value="1" />
<ctl name="Main AMP Enable Switch" value="1" />
<!-- load Enable FIR -->
<ctl name="Fast Use Case Delta File" value="fast_switch1.txt" />
<ctl name="Fast Use Case Switch Enable" value="1" />
<ctl name="R Fast Use Case Delta File" value="fast_switch2.txt" />
<ctl name="R Fast Use Case Switch Enable" value="1" />
<ctl name="Digital PCM Volume" value="800" />
</path>
<path name="speaker-safe">
<ctl name="R Boost Peak Current Limit" value="3.50A" />
<ctl name="R Main AMP Enable Switch" value="1" />
<!-- load Bypass FIR -->
<ctl name="R Fast Use Case Delta File" value="fast_switch4.txt" />
<ctl name="R Fast Use Case Switch Enable" value="1" />
</path>
<!-- Tx device -->
<path name="microphones">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC Record Soft Gain (dB)" value="22" />
</path>
<path name="microphones (VOICE)">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC HW Gain At High Power Mode (cB)" value="130" />
<ctl name="MIC Record Soft Gain (dB)" value="0" />
</path>
<path name="back-microphones">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC Record Soft Gain (dB)" value="22" />
</path>
<path name="back-microphones (VOICE)">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC HW Gain At High Power Mode (cB)" value="130" />
<ctl name="MIC Record Soft Gain (dB)" value="0" />
</path>
<path name="microphones (CAMCORDER)">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0"/>
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3"/>
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2"/>
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1"/>
<ctl name="MIC DC Blocker" value="1"/>
<ctl name="MIC Record Soft Gain (dB)" value="0"/>
</path>
<path name="back-microphones (CAMCORDER)">
<path name="microphones (CAMCORDER)" />
</path>
<path name="camcorder-mic">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC Record Soft Gain (dB)" value="0" />
</path>
<path name="voice-recog-mic">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC Record Soft Gain (dB)" value="22" />
</path>
<path name="voice-recog-aec-mic">
<ctl name="Audio Capture Eraser Enable" value="1" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="Audio Capture Mic Source" value="ERASER" />
<ctl name="MIC Record Soft Gain (dB)" value="0" />
</path>
<path name="unprocessed-mic">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC Record Soft Gain (dB)" value="5" />
</path>
<path name="unprocessed-dual-mic">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC Record Soft Gain (dB)" value="5" />
</path>
<path name="unprocessed-triple-mic">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC Record Soft Gain (dB)" value="5" />
</path>
<path name="bt-mic">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="Audio Capture Mic Source" value="BT_MIC" />
<ctl name="Voice Call Mic Source" value="BT_MIC" />
<ctl name="MIC Record Soft Gain (dB)" value="0" />
</path>
<path name="usb-headset-mic">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="Audio Capture Mic Source" value="USB_MIC" />
<ctl name="Voice Call Mic Source" value="USB_MIC" />
<ctl name="MIC Record Soft Gain (dB)" value="0" />
</path>
<!-- cs35l41 specific path to load firmware in cs35l41.c -->
<path name="cs35l41-load-protection-firmware-start">
<!-- Enable it after get the protection firmware -->
<ctl name="DSP Booted" value="0" />
<ctl name="R DSP Booted" value="0" />
<ctl name="DSP1 Preload Switch" value="0" />
<ctl name="R DSP1 Preload Switch" value="0" />
</path>
<path name="cs35l41-load-protection-firmware-end">
<!-- Enable it after get the protection firmware -->
<ctl name="DSP1 Preload Switch" value="1" />
<ctl name="R DSP1 Preload Switch" value="1" />
</path>
<!-- cs35l41 specific path to load firmware in cs35l41.c end-->
</mixer>

View file

@ -16,6 +16,18 @@
AUDIO_TABLE_FOLDER := cheetah AUDIO_TABLE_FOLDER := cheetah
# Enable this to build AIDL
# BUILD_AUDIO_AIDL_VERSION := true
ifeq ($(BUILD_AUDIO_AIDL_VERSION),true)
# AIDL HAL configs are in the *config_aidl* folder
PRODUCT_COPY_FILES += \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/aidl_config/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/aidl_config/audio_platform_configuration_aidl.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_configuration_aidl.xml \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/aidl_config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/aidl_config/mixer_paths_aidl.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_aidl.xml
else
# HIDL HAL configs are in the *config* folder
# Platform Configuration for AudioHAL / SoundTriggerHAL # Platform Configuration for AudioHAL / SoundTriggerHAL
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/pantah/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/pantah/audio/$(AUDIO_TABLE_FOLDER)/config/audio_policy_configuration_bluetooth_legacy_hal.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml \
@ -34,6 +46,7 @@ PRODUCT_COPY_FILES += \
# Mixer Path Configuration for AudioHAL # Mixer Path Configuration for AudioHAL
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/config/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml device/google/pantah/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)/cs35l41/fw SPK_FIRMWARE_PATH := $(AUDIO_TABLE_FOLDER)/cs35l41/fw
@ -44,6 +57,7 @@ PRODUCT_COPY_FILES += $(call copy-files,$(wildcard $(SPK_FIRMWARE_FULL_PATH)/*)
# Audio tuning # Audio tuning
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/tuning/bluenote/recording.gatf:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/recording.gatf \ device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/tuning/bluenote/recording.gatf:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/recording.gatf \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/tuning/bluenote/smartfeature.gstf:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/smartfeature.gstf \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia_stereo/BLUETOOTH.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/BLUETOOTH.dat \ device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia_stereo/BLUETOOTH.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/BLUETOOTH.dat \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia_stereo/HANDSFREE.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/HANDSFREE.dat \ device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia_stereo/HANDSFREE.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/HANDSFREE.dat \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia_stereo/HANDSET.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/HANDSET.dat \ device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia_stereo/HANDSET.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/HANDSET.dat \

View file

@ -304,7 +304,7 @@
<device_handle> <device_handle>
<handler libname="audio_bt_aoc.so"/> <handler libname="audio_bt_aoc.so"/>
<handler libname="audio_usb_aoc.so" argu="MaxSamplingRate=96000,UnsupportedFormat=S24_LE"/> <handler libname="audio_usb_aoc.so" argu="MaxSamplingRate=192000,UnsupportedFormat=S24_LE,MaxCapPacketInterval=125,MaxCapSampleRate=192000,MaxCapBitWidth=32,MaxCapChannel=2,EnableHifi192kMultichannel=0"/>
</device_handle> </device_handle>
<external_module> <external_module>

Binary file not shown.

View file

@ -295,7 +295,7 @@
<device_handle> <device_handle>
<handler libname="audio_bt_aoc.so"/> <handler libname="audio_bt_aoc.so"/>
<handler libname="audio_usb_aoc.so" argu="MaxSamplingRate=96000,UnsupportedFormat=S24_LE"/> <handler libname="audio_usb_aoc.so" argu="MaxSamplingRate=192000,UnsupportedFormat=S24_LE,MaxCapPacketInterval=125,MaxCapSampleRate=192000,MaxCapBitWidth=32,MaxCapChannel=2,EnableHifi192kMultichannel=0"/>
</device_handle> </device_handle>
<external_module> <external_module>

View file

@ -0,0 +1,76 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Copyright (c) 2023, The Linux Foundation. All rights reserved. -->
<!-- -->
<!-- Redistribution and use in source and binary forms, with or without -->
<!-- modification, are permitted provided that the following conditions are -->
<!-- met: -->
<!-- * Redistributions of source code must retain the above copyright -->
<!-- notice, this list of conditions and the following disclaimer. -->
<!-- * Redistributions in binary form must reproduce the above -->
<!-- copyright notice, this list of conditions and the following -->
<!-- disclaimer in the documentation and/or other materials provided -->
<!-- with the distribution. -->
<!-- * Neither the name of The Linux Foundation nor the names of its -->
<!-- contributors may be used to endorse or promote products derived -->
<!-- from this software without specific prior written permission. -->
<!-- -->
<!-- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -->
<!-- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -->
<!-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -->
<!-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -->
<!-- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -->
<!-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -->
<!-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -->
<!-- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -->
<!-- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
<!-- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
<audio_platform_configuration>
<product_lists>
<product name="Blackbird">
<id value="18d1:5033" />
</product>
<product name="Condor">
<id value="18d1:5034" />
</product>
<product name="Condor_Sprint">
<id value="18d1:5038" />
</product>
<product name="Condor_Sprint2">
<id value="18d1:5036" />
</product>
</product_lists>
<features>
<feature name="ThermalThrottle=Type:SKIN,Name:VIRTUAL-SKIN" />
<feature
name="BatteryThrottle=Type:BCL_VOLTAGE,Name:BCL_AUDIO_BAACL,Strategy:MediaSpeakerAndScreenOn" />
<feature
name="PlaybackThermalThrottle=PollWaitMs:20000,ThermistorName:VIRTUAL-SKIN,ThermistorType:SKIN,ThrottlingSeverity:MODERATE" />
</features>
<!-- The voip_db_mapping: format is "device="x" value="f1,f2..." -->
<!-- device should be "handset","speaker","usb","bt","bt_hearing_aid" or "digital_dock" -->
<voip_db_mapping>
<voip_path device="usb" value="0.01,0.02,0.04,0.1,0.21,0.47,1.0" />
</voip_db_mapping>
<!-- The device_builder: format is "type="x" codec_name="y" argu="z". name and argu are optional. -->
<device_builder>
<device type="bt" />
<device type="usb" argu="MaxSamplingRate=96000,UnsupportedFormat=S24_LE" />
<device type="speaker" codec_name="cs35l41" argu="SpeakerNum=4,Rotation,AcousticShockProtection" />
</device_builder>
<!-- The spatial_capture_conditions: format is "use_case="x" audio_source="y" -->
<!-- use_case defines in aidl/audio/usecase/use_case.h, audio_source is definied in aidl interfaces. -->
<spatial_capture_conditions>
<conditions use_case="primary-capture" audio_source="MIC,CAMCORDER,VOICE_RECOGNITION" />
</spatial_capture_conditions>
<!-- The tuner_builder: format is "type="x" codec_name="y" argu="z". argu is optional. -->
<tuner_builder>
<tuner type="playback" name="waves" argu="Sink=SPK ThermistorsName=VIRTUAL-SKIN" />
<tuner type="telephony" name="fortemedia" argu="VoIP_DLCHs=SPK:2,USB:2 VoIP_Rate=32000 BOOST_USB_SWB_CLK=y CCA=y" />
<tuner type="capture" name="gs_capture" />
</tuner_builder>
</audio_platform_configuration>

View file

@ -0,0 +1,203 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Copyright (C) 2020 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.
-->
<audioPolicyConfiguration version="7.0" xmlns:xi="http://www.w3.org/2001/XInclude">
<globalConfiguration speaker_drc_enabled="false" call_screen_mode_supported="true" />
<modules>
<!-- Primary Audio HAL -->
<module name="primary" halVersion="2.0">
<attachedDevices>
<item>Speaker</item>
<item>Speaker Safe</item>
<item>Earpiece</item>
<item>Built-In Mic</item>
<item>Built-In Back Mic</item>
<item>Telephony Tx</item>
<item>Voice Call And Telephony Rx</item>
<item>Echo Ref In</item>
</attachedDevices>
<defaultOutputDevice>Speaker</defaultOutputDevice>
<mixPorts>
<mixPort name="primary output" role="source"
flags="AUDIO_OUTPUT_FLAG_PRIMARY AUDIO_OUTPUT_FLAG_FAST"
recommendedMuteDurationMs="40">
<profile name="" format="AUDIO_FORMAT_PCM_FLOAT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</mixPort>
<mixPort name="deep buffer" role="source" flags="AUDIO_OUTPUT_FLAG_DEEP_BUFFER">
<profile name="" format="AUDIO_FORMAT_PCM_FLOAT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</mixPort>
<mixPort name="compressed offload" role="source"
flags="AUDIO_OUTPUT_FLAG_DIRECT AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD AUDIO_OUTPUT_FLAG_NON_BLOCKING AUDIO_OUTPUT_FLAG_GAPLESS_OFFLOAD">
<profile name="" format="AUDIO_FORMAT_MP3"
samplingRates="8000 16000 24000 32000 44100 48000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_MONO" />
<profile name="" format="AUDIO_FORMAT_AAC_LC"
samplingRates="8000 16000 24000 32000 44100 48000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_MONO" />
<profile name="" format="AUDIO_FORMAT_AAC_HE_V1"
samplingRates="8000 16000 24000 32000 44100 48000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_MONO" />
<profile name="" format="AUDIO_FORMAT_AAC_HE_V2"
samplingRates="8000 16000 24000 32000 44100 48000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO AUDIO_CHANNEL_OUT_MONO" />
</mixPort>
<mixPort name="haptic" role="source">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO_HAPTIC_A" />
</mixPort>
<mixPort name="immersive_out" role="source" flags="AUDIO_OUTPUT_FLAG_SPATIALIZER">
<profile name="" format="AUDIO_FORMAT_PCM_32_BIT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</mixPort>
<mixPort name="incall playback" role="source"
flags="AUDIO_OUTPUT_FLAG_INCALL_MUSIC">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000"
channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</mixPort>
<mixPort name="voip_rx" role="source"
flags="AUDIO_OUTPUT_FLAG_VOIP_RX">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</mixPort>
<!-- <mixPort name="mmap playback" role="source"
flags="AUDIO_OUTPUT_FLAG_DIRECT AUDIO_OUTPUT_FLAG_MMAP_NOIRQ">
<profile name="" format="AUDIO_FORMAT_PCM_FLOAT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</mixPort>
<mixPort name="raw" role="source"
flags="AUDIO_OUTPUT_FLAG_RAW AUDIO_OUTPUT_FLAG_FAST">
<profile name="" format="AUDIO_FORMAT_PCM_32_BIT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</mixPort> -->
<mixPort name="primary input" role="sink">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000"
channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO AUDIO_CHANNEL_INDEX_MASK_3" />
</mixPort>
<mixPort name="voip_tx" role="sink"
flags="AUDIO_INPUT_FLAG_VOIP_TX">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_MONO" />
</mixPort>
<mixPort name="fast input" role="sink"
flags="AUDIO_INPUT_FLAG_RAW AUDIO_INPUT_FLAG_FAST">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000"
channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO" />
</mixPort>
<mixPort name="hotword input" role="sink" flags="AUDIO_INPUT_FLAG_HW_HOTWORD">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="16000"
channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO" />
</mixPort>
<!-- <mixPort name="mmap capture" role="sink" flags="AUDIO_INPUT_FLAG_MMAP_NOIRQ">
<profile name="" format="AUDIO_FORMAT_PCM_32_BIT"
samplingRates="48000"
channelMasks="AUDIO_CHANNEL_IN_MONO AUDIO_CHANNEL_IN_STEREO" />
</mixPort> -->
</mixPorts>
<devicePorts>
<!-- Output devices declaration, i.e. Sink DEVICE PORT -->
<devicePort tagName="Earpiece" type="AUDIO_DEVICE_OUT_EARPIECE" role="sink" />
<devicePort tagName="Speaker" type="AUDIO_DEVICE_OUT_SPEAKER" role="sink" />
<devicePort tagName="Speaker Safe" type="AUDIO_DEVICE_OUT_SPEAKER_SAFE" role="sink" />
<devicePort tagName="Wired Headset" type="AUDIO_DEVICE_OUT_WIRED_HEADSET"
role="sink" />
<devicePort tagName="Wired Headphones" type="AUDIO_DEVICE_OUT_WIRED_HEADPHONE"
role="sink" />
<devicePort tagName="BT SCO" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO" role="sink" />
<devicePort tagName="BT SCO Headset" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET"
role="sink" />
<devicePort tagName="BT SCO Car Kit" type="AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT"
role="sink" />
<devicePort tagName="USB Device Out" type="AUDIO_DEVICE_OUT_USB_DEVICE" role="sink" />
<devicePort tagName="USB Headset Out" type="AUDIO_DEVICE_OUT_USB_HEADSET"
role="sink" />
<devicePort tagName="Aux Digital" type="AUDIO_DEVICE_OUT_AUX_DIGITAL" role="sink" />
<devicePort tagName="Telephony Tx" type="AUDIO_DEVICE_OUT_TELEPHONY_TX" role="sink" />
<!-- Input devices declaration, i.e. Source DEVICE PORT -->
<devicePort tagName="Built-In Mic" type="AUDIO_DEVICE_IN_BUILTIN_MIC" role="source" />
<devicePort tagName="Built-In Back Mic" type="AUDIO_DEVICE_IN_BACK_MIC"
role="source" />
<devicePort tagName="Wired Headset Mic" type="AUDIO_DEVICE_IN_WIRED_HEADSET"
role="source" />
<devicePort tagName="BT SCO Headset Mic"
type="AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET" role="source" />
<devicePort tagName="BT A2DP Out" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP" role="sink"
encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</devicePort>
<devicePort tagName="BT A2DP Headphones"
type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES" role="sink"
encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</devicePort>
<devicePort tagName="BT A2DP Speaker" type="AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_SPEAKER"
role="sink"
encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="44100 48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</devicePort>
<devicePort tagName="BT BLE Headset" type="AUDIO_DEVICE_OUT_BLE_HEADSET" role="sink"
encodedFormats="AUDIO_FORMAT_LC3">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</devicePort>
<devicePort tagName="BT BLE Speaker" type="AUDIO_DEVICE_OUT_BLE_SPEAKER" role="sink"
encodedFormats="AUDIO_FORMAT_LC3">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO" />
</devicePort>
<devicePort tagName="BLE Headset Mic" type="AUDIO_DEVICE_IN_BLE_HEADSET"
role="source">
</devicePort>
<devicePort tagName="USB Device In" type="AUDIO_DEVICE_IN_USB_DEVICE" role="source" />
<devicePort tagName="USB Headset In" type="AUDIO_DEVICE_IN_USB_HEADSET"
role="source" />
<!-- AUDIO_DEVICE_IN_VOICE_CALL and AUDIO_DEVICE_IN_TELEPHONY_RX are in the same
value -->
<devicePort tagName="Voice Call And Telephony Rx" type="AUDIO_DEVICE_IN_VOICE_CALL"
role="source" />
<devicePort tagName="Echo Ref In" type="AUDIO_DEVICE_IN_ECHO_REFERENCE"
role="source" />
</devicePorts>
<!-- route declaration, i.e. list all available sources for a given sink -->
<routes>
<route type="mix" sink="Earpiece"
sources="primary output,deep buffer,haptic,voip_rx,compressed offload" />
<route type="mix" sink="Speaker"
sources="primary output,deep buffer,haptic,voip_rx,compressed offload" />
<route type="mix" sink="Telephony Tx" sources="incall playback" />
<route type="mix" sink="primary input"
sources="Built-In Mic,Built-In Back Mic" />
<route type="mix" sink="voip_tx"
sources="Built-In Mic,Built-In Back Mic" />
<route type="mix" sink="fast input"
sources="Built-In Mic,Built-In Back Mic" />
<route type="mix" sink="hotword input" sources="Built-In Mic" />
</routes>
</module>
</modules>
<!-- End of Modules section -->
<!-- Volume section -->
<xi:include href="audio_policy_volumes.xml" />
<xi:include href="default_volume_tables.xml" />
<!-- End of Volume section -->
</audioPolicyConfiguration>

View file

@ -0,0 +1,227 @@
<?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>
-->
<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,-4700</point>
<point>33,-3500</point>
<point>66,-2350</point>
<point>100,-1250</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,-3350</point>
<point>33,-2100</point>
<point>66,-1000</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"
ref="DEFAULT_DEVICE_CATEGORY_SPEAKER_VOLUME_CURVE"/>
<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,-4800</point>
<point>33,-2050</point>
<point>66,-800</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,-3800</point>
<point>33,-2600</point>
<point>66,-1400</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,-4700</point>
<point>33,-3500</point>
<point>66,-2350</point>
<point>100,-1250</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,-5500</point>
<point>33,-3650</point>
<point>66,-2700</point>
<point>100,-1800</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>

View file

@ -0,0 +1,862 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Copyright (c) 2022, The Linux Foundation. All rights reserved. -->
<!-- -->
<!-- Redistribution and use in source and binary forms, with or without -->
<!-- modification, are permitted provided that the following conditions are -->
<!-- met: -->
<!-- * Redistributions of source code must retain the above copyright -->
<!-- notice, this list of conditions and the following disclaimer. -->
<!-- * Redistributions in binary form must reproduce the above -->
<!-- copyright notice, this list of conditions and the following -->
<!-- disclaimer in the documentation and/or other materials provided -->
<!-- with the distribution. -->
<!-- * Neither the name of The Linux Foundation nor the names of its -->
<!-- contributors may be used to endorse or promote products derived -->
<!-- from this software without specific prior written permission. -->
<!-- -->
<!-- THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED -->
<!-- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -->
<!-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT -->
<!-- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS -->
<!-- BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -->
<!-- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -->
<!-- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR -->
<!-- BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -->
<!-- OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN -->
<!-- IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -->
<mixer>
<!-- Initial default value of ALSA command -->
<!-- PCM timeout -->
<ctl name="PCM Stream Wait Time in MSec" value="100" />
<ctl name="Voice PCM Stream Wait Time in MSec" value="500" />
<!-- Enable it when AOC is ready to trim delay and padding -->
<ctl name="Gapless Offload Enable" value="1" />
<!-- TDM 0 setting -->
<ctl name="TDM_0_RX Chan" value="Four" />
<ctl name="TDM_0_RX Format" value="S32_LE" />
<ctl name="TDM_0_RX Sample Rate" value="SR_48K" />
<ctl name="TDM_0_TX Chan" value="Four" />
<ctl name="TDM_0_TX Format" value="S32_LE" />
<ctl name="TDM_0_TX Sample Rate" value="SR_48K" />
<!-- Haptic setting -->
<ctl name="Haptics Source" value="PCM" />
<ctl name="HAPTIC_RX Format" value="S32_LE" />
<ctl name="HAPTIC_RX SlotFmt" value="S32_LE" />
<ctl name="HAPTIC_RX Chan" value="Four" />
<ctl name="HAPTIC_RX nSlot" value="Four" />
<ctl name="RX Slots" id="0" value="2" />
<ctl name="RX Slots" id="1" value="3" />
<!-- Cirrus default 96K -->
<ctl name="Default 96K" value="0" />
<ctl name="R Default 96K" value="0" />
<!-- Cirrus Booster Amp TDM slot assignment-->
<!-- RX slot -->
<ctl name="ASPRX1 Slot Position" value="0" />
<ctl name="ASPRX2 Slot Position" value="1" />
<ctl name="R ASPRX1 Slot Position" value="1" />
<ctl name="R ASPRX2 Slot Position" value="0" />
<!-- TX slot -->
<ctl name="ASPTX1 Slot Position" value="0" />
<ctl name="R ASPTX1 Slot Position" value="1" />
<ctl name="ASPTX2 Slot Position" value="2" />
<ctl name="R ASPTX2 Slot Position" value="3" />
<ctl name="ASPTX3 Slot Position" value="4" />
<ctl name="R ASPTX3 Slot Position" value="5" />
<ctl name="ASPTX4 Slot Position" value="6" />
<ctl name="R ASPTX4 Slot Position" value="7" />
<!-- Cirrus Booster Amp DRE and VBST config-->
<ctl name="VBSTMON Output Switch" value="1" />
<ctl name="R VBSTMON Output Switch" value="1" />
<ctl name="DRE DRE Switch" value="1" />
<ctl name="R DRE DRE Switch" value="1" />
<!-- Cirrus Booster Amp Output Gain -->
<ctl name="AMP PCM Gain" value="17" />
<ctl name="R AMP PCM Gain" value="17" />
<ctl name="Digital PCM Volume" value="817" />
<ctl name="R Digital PCM Volume" value="817" />
<!-- Cirrus Booster Amp Power -->
<ctl name="Main AMP Enable Switch" value="0" />
<ctl name="R Main AMP Enable Switch" value="0" />
<!-- Cirrus Booster mode -->
<ctl name="PCM Source" value="DSP" />
<ctl name="R PCM Source" value="DSP" />
<ctl name="DSP1 Firmware" value="Protection" />
<ctl name="R DSP1 Firmware" value="Protection" />
<ctl name="DSP RX1 Source" value="ASPRX1" />
<ctl name="DSP RX2 Source" value="ASPRX1" />
<ctl name="R DSP RX1 Source" value="ASPRX1" />
<ctl name="R DSP RX2 Source" value="ASPRX1" />
<ctl name="Boost Peak Current Limit" value="3.50A" />
<ctl name="R Boost Peak Current Limit" value="3.50A" />
<!-- Cirrus ASP TX source -->
<ctl name="ASP TX1 Source" value="VMON" />
<ctl name="R ASP TX1 Source" value="VMON" />
<ctl name="ASP TX2 Source" value="IMON" />
<ctl name="R ASP TX2 Source" value="IMON" />
<ctl name="ASP TX3 Source" value="Zero" />
<ctl name="R ASP TX3 Source" value="Zero" />
<ctl name="ASP TX4 Source" value="Zero" />
<ctl name="R ASP TX4 Source" value="Zero" />
<!-- Cirrus fast switch init -->
<ctl name="Fast Use Case Switch Enable" value="0" />
<ctl name="Fast Use Case Delta File" value="fast_switch5.txt" />
<ctl name="R Fast Use Case Switch Enable" value="0" />
<ctl name="R Fast Use Case Delta File" value="fast_switch5.txt" />
<!-- default EP volume -->
<ctl name="PCM Playback Switch" value="1" />
<ctl name="PCM Playback Volume" value="10" />
<!-- audio RX route initial/default value -->
<ctl name="TDM_0_RX Mixer EP1" value="0" />
<ctl name="TDM_0_RX Mixer EP2" value="0" />
<ctl name="TDM_0_RX Mixer EP3" value="0" />
<ctl name="TDM_0_RX Mixer EP4" value="0" />
<ctl name="TDM_0_RX Mixer EP5" value="0" />
<ctl name="TDM_0_RX Mixer EP6" value="0" />
<ctl name="TDM_0_RX Mixer EP7" value="0" />
<ctl name="TDM_0_RX Mixer EP8" value="0" />
<ctl name="TDM_0_RX Mixer NoHost1" value="0" />
<ctl name="TDM_0_RX Mixer VOIP" value="0" />
<ctl name="TDM_0_RX Mixer RAW" value="0" />
<ctl name="TDM_0_RX Mixer IMSV" value="0" />
<ctl name="TDM_1_RX Mixer EP1" value="0" />
<ctl name="TDM_1_RX Mixer EP2" value="0" />
<ctl name="TDM_1_RX Mixer EP3" value="0" />
<ctl name="TDM_1_RX Mixer EP4" value="0" />
<ctl name="TDM_1_RX Mixer EP5" value="0" />
<ctl name="TDM_1_RX Mixer EP6" value="0" />
<ctl name="TDM_1_RX Mixer EP7" value="0" />
<ctl name="TDM_1_RX Mixer EP8" value="0" />
<ctl name="TDM_1_RX Mixer NoHost1" value="0" />
<ctl name="USB_RX Mixer EP1" value="0" />
<ctl name="USB_RX Mixer EP2" value="0" />
<ctl name="USB_RX Mixer EP3" value="0" />
<ctl name="USB_RX Mixer EP4" value="0" />
<ctl name="USB_RX Mixer EP5" value="0" />
<ctl name="USB_RX Mixer EP6" value="0" />
<ctl name="USB_RX Mixer EP7" value="0" />
<ctl name="USB_RX Mixer NoHost1" value="0" />
<ctl name="USB_RX Mixer VOIP" value="0" />
<ctl name="USB_RX Mixer HIFI" value="0" />
<ctl name="USB_RX Mixer RAW" value="0" />
<ctl name="USB_RX Mixer IMSV" value="0" />
<ctl name="BT_RX Mixer EP1" value="0" />
<ctl name="BT_RX Mixer EP2" value="0" />
<ctl name="BT_RX Mixer EP3" value="0" />
<ctl name="BT_RX Mixer EP4" value="0" />
<ctl name="BT_RX Mixer EP5" value="0" />
<ctl name="BT_RX Mixer EP6" value="0" />
<ctl name="BT_RX Mixer EP7" value="0" />
<ctl name="BT_RX Mixer NoHost1" value="0" />
<ctl name="BT_RX Mixer VOIP" value="0" />
<ctl name="BT_RX Mixer RAW" value="0" />
<ctl name="BT_RX Mixer IMSV" value="0" />
<ctl name="INCALL_RX Mixer EP1" value="0" />
<ctl name="INCALL_RX Mixer EP2" value="0" />
<ctl name="INCALL_RX Mixer EP3" value="0" />
<ctl name="INCALL_RX Mixer EP4" value="0" />
<ctl name="INCALL_RX Mixer EP5" value="0" />
<ctl name="INCALL_RX Mixer EP6" value="0" />
<ctl name="INCALL_RX Mixer EP7" value="0" />
<ctl name="INCALL_RX Mixer NoHost1" value="0" />
<ctl name="SINK_IDS" id="0" value="-1" />
<ctl name="SINK_IDS" id="1" value="-1" />
<!-- audio TX route initial/default value -->
<ctl name="EP1 TX Mixer TDM_0_TX" value="0" />
<ctl name="EP2 TX Mixer TDM_0_TX" value="0" />
<ctl name="EP3 TX Mixer TDM_0_TX" value="0" />
<ctl name="EP4 TX Mixer TDM_0_TX" value="0" />
<ctl name="EP5 TX Mixer TDM_0_TX" value="0" />
<ctl name="EP6 TX Mixer TDM_0_TX" value="0" />
<ctl name="NoHost1 TX Mixer TDM_0_TX" value="0" />
<ctl name="EP1 TX Mixer TDM_1_TX" value="0" />
<ctl name="EP2 TX Mixer TDM_1_TX" value="0" />
<ctl name="EP3 TX Mixer TDM_1_TX" value="0" />
<ctl name="EP4 TX Mixer TDM_1_TX" value="0" />
<ctl name="EP5 TX Mixer TDM_1_TX" value="0" />
<ctl name="EP6 TX Mixer TDM_1_TX" value="0" />
<ctl name="NoHost1 TX Mixer TDM_1_TX" value="0" />
<ctl name="EP1 TX Mixer INTERNAL_MIC_TX" value="0" />
<ctl name="EP2 TX Mixer INTERNAL_MIC_TX" value="0" />
<ctl name="EP3 TX Mixer INTERNAL_MIC_TX" value="0" />
<ctl name="EP4 TX Mixer INTERNAL_MIC_TX" value="0" />
<ctl name="EP5 TX Mixer INTERNAL_MIC_TX" value="0" />
<ctl name="EP6 TX Mixer INTERNAL_MIC_TX" value="0" />
<ctl name="NoHost1 TX Mixer INTERNAL_MIC_TX" value="0" />
<ctl name="VOIP TX Mixer INTERNAL_MIC_TX" value="0" />
<ctl name="EP1 TX Mixer BT_TX" value="0" />
<ctl name="EP2 TX Mixer BT_TX" value="0" />
<ctl name="EP3 TX Mixer BT_TX" value="0" />
<ctl name="EP4 TX Mixer BT_TX" value="0" />
<ctl name="EP5 TX Mixer BT_TX" value="0" />
<ctl name="EP6 TX Mixer BT_TX" value="0" />
<ctl name="NoHost1 TX Mixer BT_TX" value="0" />
<ctl name="VOIP TX Mixer BT_TX" value="0" />
<ctl name="EP1 TX Mixer USB_TX" value="0" />
<ctl name="EP2 TX Mixer USB_TX" value="0" />
<ctl name="EP3 TX Mixer USB_TX" value="0" />
<ctl name="EP4 TX Mixer USB_TX" value="0" />
<ctl name="EP5 TX Mixer USB_TX" value="0" />
<ctl name="EP6 TX Mixer USB_TX" value="0" />
<ctl name="NoHost1 TX Mixer USB_TX" value="0" />
<ctl name="VOIP TX Mixer USB_TX" value="0" />
<ctl name="EP1 TX Mixer INCALL_TX" value="0" />
<ctl name="EP2 TX Mixer INCALL_TX" value="0" />
<ctl name="EP3 TX Mixer INCALL_TX" value="0" />
<ctl name="EP4 TX Mixer INCALL_TX" value="0" />
<ctl name="EP5 TX Mixer INCALL_TX" value="0" />
<ctl name="EP6 TX Mixer INCALL_TX" value="0" />
<ctl name="NoHost1 TX Mixer INCALL_TX" value="0" />
<ctl name="EP4 TX Mixer I2S_2_TX" value="0" />
<!-- AoC Mic setting -->
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC HW Gain At High Power Mode (cB)" value="0" />
<ctl name="MIC Record Soft Gain (dB)" value="-40" />
<!-- USB setting v2 -->
<ctl name="USB Bus ID v2" value="2" />
<ctl name="USB Dev ID v2" value="2" />
<ctl name="USB Playback EP ID v2" value="1" />
<ctl name="USB Playback FORMAT v2" value="0" />
<ctl name="USB Playback SR v2" value="48000" />
<ctl name="USB Playback CH v2" value="2" />
<ctl name="USB Playback BW v2" value="24" />
<ctl name="USB Capture EP ID v2" value="1" />
<ctl name="USB Capture FORMAT v2" value="0" />
<ctl name="USB Capture SR v2" value="48000" />
<ctl name="USB Capture CH v2" value="1" />
<ctl name="USB Capture BW v2" value="16" />
<ctl name="AoC Modem Downlink ASRC Mode" value="ASP_ON" />
<ctl name="Voice Call Mic Source" value="Builtin_MIC" />
<ctl name="Audio Capture Eraser Enable" value="0" />
<!-- audio PDM mic default state -->
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="-1" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="-1" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="-1" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="Audio Capture Mic Source" value="Builtin_MIC" />
<!-- sidetone controls -->
<ctl name="Sidetone Enable" value="0" />
<ctl name="Sidetone Volume" value="-96" />
<ctl name="Sidetone Selected Mic" value="0" />
<ctl name="Sidetone EQ Stage Number" value="1" />
<!-- IEEE 754, value is in float -->
<ctl name="Sidetone Biquad0" id="0" value="0" />
<ctl name="Sidetone Biquad0" id="1" value="0" />
<ctl name="Sidetone Biquad0" id="2" value="0" />
<ctl name="Sidetone Biquad0" id="3" value="0" />
<ctl name="Sidetone Biquad0" id="4" value="0" />
<ctl name="Sidetone Biquad0" id="5" value="0" />
<ctl name="Sidetone Biquad1" id="0" value="0" />
<ctl name="Sidetone Biquad1" id="1" value="0" />
<ctl name="Sidetone Biquad1" id="2" value="0" />
<ctl name="Sidetone Biquad1" id="3" value="0" />
<ctl name="Sidetone Biquad1" id="4" value="0" />
<ctl name="Sidetone Biquad1" id="5" value="0" />
<ctl name="Sidetone Biquad2" id="0" value="0" />
<ctl name="Sidetone Biquad2" id="1" value="0" />
<ctl name="Sidetone Biquad2" id="2" value="0" />
<ctl name="Sidetone Biquad2" id="3" value="0" />
<ctl name="Sidetone Biquad2" id="4" value="0" />
<ctl name="Sidetone Biquad2" id="5" value="0" />
<ctl name="Sidetone Biquad3" id="0" value="0" />
<ctl name="Sidetone Biquad3" id="1" value="0" />
<ctl name="Sidetone Biquad3" id="2" value="0" />
<ctl name="Sidetone Biquad3" id="3" value="0" />
<ctl name="Sidetone Biquad3" id="4" value="0" />
<ctl name="Sidetone Biquad3" id="5" value="0" />
<ctl name="Sidetone Biquad4" id="0" value="0" />
<ctl name="Sidetone Biquad4" id="1" value="0" />
<ctl name="Sidetone Biquad4" id="2" value="0" />
<ctl name="Sidetone Biquad4" id="3" value="0" />
<ctl name="Sidetone Biquad4" id="4" value="0" />
<ctl name="Sidetone Biquad4" id="5" value="0" />
<ctl name="Incall Capture Stream0" value="Off" />
<ctl name="Incall Capture Stream1" value="Off" />
<ctl name="Incall Capture Stream2" value="Off" />
<!-- These two controls control the muting function of mics and sinks during the voice call. -->
<!-- They would be enabled by HAL. -->
<ctl name="Incall Sink Mute" value="0" />
<ctl name="Incall Mic Mute" value="0" />
<ctl name="Compress Offload Volume" value="1000" />
<ctl name="Decoder Reference Enable" value="0" />
<ctl name="LVM Enable" value="0" />
<!-- sidetone dynamic control -->
<path name="sidetone-for handset">
<!-- 1065353216 = 0x3f800000 = 1.0 -->
<ctl name="Sidetone Biquad0" id="0" value="1065353216" />
<ctl name="Sidetone Biquad0" id="1" value="1065353216" />
<ctl name="Sidetone Biquad0" id="2" value="0" />
<ctl name="Sidetone Biquad0" id="3" value="0" />
<ctl name="Sidetone Biquad0" id="4" value="0" />
<ctl name="Sidetone Biquad0" id="5" value="0" />
<ctl name="Sidetone Biquad1" id="0" value="1065353216" />
<ctl name="Sidetone Biquad1" id="1" value="1065353216" />
<ctl name="Sidetone Biquad1" id="2" value="0" />
<ctl name="Sidetone Biquad1" id="3" value="0" />
<ctl name="Sidetone Biquad1" id="4" value="0" />
<ctl name="Sidetone Biquad1" id="5" value="0" />
<ctl name="Sidetone Biquad2" id="0" value="1065353216" />
<ctl name="Sidetone Biquad2" id="1" value="1065353216" />
<ctl name="Sidetone Biquad2" id="2" value="0" />
<ctl name="Sidetone Biquad2" id="3" value="0" />
<ctl name="Sidetone Biquad2" id="4" value="0" />
<ctl name="Sidetone Biquad2" id="5" value="0" />
<ctl name="Sidetone Biquad3" id="0" value="1065353216" />
<ctl name="Sidetone Biquad3" id="1" value="1065353216" />
<ctl name="Sidetone Biquad3" id="2" value="0" />
<ctl name="Sidetone Biquad3" id="3" value="0" />
<ctl name="Sidetone Biquad3" id="4" value="0" />
<ctl name="Sidetone Biquad3" id="5" value="0" />
<ctl name="Sidetone Biquad4" id="0" value="1065353216" />
<ctl name="Sidetone Biquad4" id="1" value="1065353216" />
<ctl name="Sidetone Biquad4" id="2" value="0" />
<ctl name="Sidetone Biquad4" id="3" value="0" />
<ctl name="Sidetone Biquad4" id="4" value="0" />
<ctl name="Sidetone Biquad4" id="5" value="0" />
<ctl name="Sidetone EQ Stage Number" value="5" />
<ctl name="Sidetone Volume" value="-90" />
<ctl name="Sidetone Enable" value="1" />
</path>
<!-- audio playback dynamic route -->
<path name="primary-playback -> speaker">
<ctl name="TDM_0_RX Mixer EP2" value="1" />
</path>
<path name="primary-playback-0 -> speaker">
<path name="primary-playback -> speaker" />
</path>
<path name="primary-playback-0 -> speaker-earpiece">
<path name="primary-playback -> speaker" />
</path>
<path name="primary-playback-0 -> speaker-safe">
<path name="primary-playback -> speaker" />
</path>
<path name="primary-playback -> bt">
<ctl name="BT_RX Mixer EP2" value="1" />
</path>
<path name="primary-playback -> usb-headset">
<ctl name="USB_RX Mixer EP2" value="1" />
</path>
<path name="raw-playback -> speaker">
<ctl name="TDM_0_RX Mixer RAW" value="1" />
</path>
<path name="raw-playback-0 -> speaker">
<path name="raw-playback -> speaker" />
</path>
<path name="raw-playback-0 -> speaker-earpiece">
<path name="raw-playback -> speaker" />
</path>
<path name="raw-playback-0 -> speaker-safe">
<path name="raw-playback -> speaker" />
</path>
<path name="raw-playback -> bt">
<ctl name="BT_RX Mixer RAW" value="1" />
</path>
<path name="raw-playback -> usb-headset">
<ctl name="USB_RX Mixer RAW" value="1" />
</path>
<path name="deep-buffer-playback -> speaker">
<ctl name="TDM_0_RX Mixer EP6" value="1" />
</path>
<path name="deep-buffer-playback-0 -> speaker">
<path name="deep-buffer-playback -> speaker" />
</path>
<path name="deep-buffer-playback-0 -> speaker-earpiece">
<path name="deep-buffer-playback -> speaker" />
</path>
<path name="deep-buffer-playback-0 -> speaker-safe">
<path name="deep-buffer-playback -> speaker" />
</path>
<path name="deep-buffer-playback -> bt">
<ctl name="BT_RX Mixer EP6" value="1" />
</path>
<path name="deep-buffer-playback -> usb-headset">
<ctl name="USB_RX Mixer EP6" value="1" />
</path>
<path name="compress-offload-playback">
<ctl name="LVM Enable" value="1" />
</path>
<path name="compress-offload-playback -> speaker">
<path name="compress-offload-playback" />
<ctl name="TDM_0_RX Mixer EP7" value="1" />
</path>
<path name="compress-offload-playback-0 -> speaker">
<path name="compress-offload-playback -> speaker" />
</path>
<path name="compress-offload-playback-0 -> speaker-earpiece">
<path name="compress-offload-playback -> speaker" />
</path>
<path name="compress-offload-playback-0 -> speaker-safe">
<path name="compress-offload-playback -> speaker" />
</path>
<path name="compress-offload-playback -> bt">
<ctl name="BT_RX Mixer EP7" value="1" />
</path>
<path name="compress-offload-playback -> usb-headset">
<ctl name="USB_RX Mixer EP7" value="1" />
</path>
<path name="mmap-playback -> speaker">
<ctl name="TDM_0_RX Mixer EP1" value="1" />
</path>
<path name="mmap-playback-0 -> speaker">
<path name="mmap-playback -> speaker" />
</path>
<path name="mmap-playback-0 -> speaker-earpiece">
<path name="mmap-playback -> speaker" />
</path>
<path name="mmap-playback-0 -> speaker-safe">
<path name="mmap-playback -> speaker" />
</path>
<path name="mmap-playback -> bt">
<ctl name="BT_RX Mixer EP1" value="1" />
</path>
<path name="mmap-playback -> usb-headset">
<ctl name="USB_RX Mixer EP1" value="1" />
</path>
<path name="hifi-playback -> usb-headset">
<ctl name="USB_RX Mixer HIFI" value="1" />
</path>
<path name="voip-playback -> speaker">
<ctl name="TDM_0_RX Mixer VOIP" value="1" />
</path>
<path name="voip-playback-0 -> speaker">
<path name="voip-playback -> speaker" />
</path>
<path name="voip-playback-0 -> speaker-earpiece">
<path name="voip-playback -> speaker" />
</path>
<path name="voip-playback-0 -> speaker-safe">
<path name="voip-playback -> speaker" />
</path>
<path name="voip-playback -> bt">
<ctl name="BT_RX Mixer VOIP" value="1" />
</path>
<path name="voip-playback -> usb-headset">
<ctl name="USB_RX Mixer VOIP" value="1" />
</path>
<path name="immersive-playback -> speaker">
<ctl name="TDM_0_RX Mixer IMSV" value="1" />
</path>
<path name="immersive-playback-0 -> speaker">
<path name="immersive-playback -> speaker" />
</path>
<path name="immersive-playback-0 -> speaker-earpiece">
<path name="immersive-playback -> speaker" />
</path>
<path name="immersive-playback-0 -> speaker-safe">
<path name="immersive-playback -> speaker" />
</path>
<path name="immersive-playback -> bt">
<ctl name="BT_RX Mixer IMSV" value="1" />
</path>
<path name="immersive-playback -> usb-headset">
<ctl name="USB_RX Mixer IMSV" value="1" />
</path>
<path name="haptic-playback -> speaker">
<ctl name="TDM_0_RX Mixer EP3" value="1" />
<ctl name="TDM_0_RX Mixer EP8" value="1" />
</path>
<path name="haptic-playback-0 -> speaker">
<path name="haptic-playback -> speaker" />
</path>
<path name="haptic-playback-0 -> speaker-earpiece">
<path name="haptic-playback -> speaker" />
</path>
<path name="haptic-playback-0 -> speaker-safe">
<path name="haptic-playback -> speaker" />
</path>
<path name="haptic-playback -> bt">
<ctl name="BT_RX Mixer EP3" value="1" />
<ctl name="TDM_0_RX Mixer EP8" value="1" />
</path>
<path name="haptic-playback -> usb-headset">
<ctl name="USB_RX Mixer EP3" value="1" />
<ctl name="TDM_0_RX Mixer EP8" value="1" />
</path>
<!-- audio capture dynamic route -->
<path name="microphones -> primary-capture-0">
<ctl name="EP1 TX Mixer INTERNAL_MIC_TX" value="1" />
</path>
<path name="back-microphones -> primary-capture-0">
<ctl name="EP1 TX Mixer INTERNAL_MIC_TX" value="1" />
</path>
<path name="usb-headset-mic -> primary-capture-0">
<ctl name="EP1 TX Mixer USB_TX" value="1" />
</path>
<path name="microphones -> voip-capture-0">
<ctl name="VOIP TX Mixer INTERNAL_MIC_TX" value="1" />
</path>
<path name="back-microphones -> voip-capture-0">
<ctl name="VOIP TX Mixer INTERNAL_MIC_TX" value="1" />
</path>
<path name="usb-headset-mic -> voip-capture-0">
<ctl name="VOIP TX Mixer USB_TX" value="1" />
</path>
<path name="bt-mic -> voip-capture-0">
<ctl name="VOIP TX Mixer BT_TX" value="1" />
</path>
<path name="microphones -> fast-capture-0">
<ctl name="EP3 TX Mixer INTERNAL_MIC_TX" value="1" />
</path>
<path name="back-microphones -> fast-capture-0">
<ctl name="EP3 TX Mixer INTERNAL_MIC_TX" value="1" />
</path>
<path name="usb-headset-mic -> fast-capture-0">
<ctl name="EP3 TX Mixer USB_TX" value="1" />
</path>
<path name="bt-mic -> fast-capture-0">
<ctl name="EP3 TX Mixer BT_TX" value="1" />
</path>
<path name="microphones -> sound-trigger-capture-0">
</path>
<!-- voice-call dynamic route -->
<path name="voice-call-downlink-0 -> speaker">
<ctl name="TDM_0_RX Mixer EP5" value="1" />
</path>
<path name="voice-call-downlink-0 -> speaker-earpiece">
<ctl name="TDM_0_RX Mixer EP5" value="1" />
</path>
<path name="voice-call-downlink-0 -> bt">
<ctl name="BT_RX Mixer EP5" value="1" />
</path>
<path name="voice-call-downlink-0 -> usb-headphone">
<ctl name="USB_RX Mixer EP5" value="1" />
</path>
<path name="voice-call-downlink-0 -> null-sink">
<ctl name="INCALL_RX Mixer EP5" value="1" />
</path>
<path name="microphones -> voice-call-uplink-0">
<ctl name="EP4 TX Mixer INTERNAL_MIC_TX" value="1" />
</path>
<path name="back-microphones -> voice-call-uplink-0">
<ctl name="EP4 TX Mixer INTERNAL_MIC_TX" value="1" />
</path>
<path name="usb-headset-mic -> voice-call-uplink-0">
<ctl name="EP4 TX Mixer USB_TX" value="1" />
</path>
<path name="bt-mic -> voice-call-uplink-0">
<ctl name="EP4 TX Mixer BT_TX" value="1" />
</path>
<path name="null-source -> voice-call-uplink-0">
<ctl name="EP4 TX Mixer INCALL_TX" value="1" />
</path>
<path name="hostless-ulC spk-vi">
<ctl name="NoHost1 TX Mixer TDM_0_TX" value="1" />
</path>
<path name="telephony-rx -> in-call-capture-0" />
<path name="telephony-rx -> in-call-capture-1" />
<path name="telephony-rx -> in-call-capture-2" />
<path name="microphones -> mmap-capture-0">
<ctl name="EP2 TX Mixer INTERNAL_MIC_TX" value="1" />
</path>
<path name="usb-headset-mic -> mmap-capture-0">
<ctl name="EP2 TX Mixer USB_TX" value="1" />
</path>
<path name="bt-mic -> mmap-capture-0">
<ctl name="EP2 TX Mixer BT_TX" value="1" />
</path>
<!-- codec setting -->
<!-- Rx device -->
<path name="speaker-earpiece">
<ctl name="PCM Source" value="ASP" />
<ctl name="AMP PCM Gain" value="6" />
<ctl name="Main AMP Enable Switch" value="1" />
</path>
<path name="speaker-earpiece (VOICE)">
<ctl name="Boost Peak Current Limit" value="3.50A" />
<ctl name="PCM Source" value="ASP" />
<ctl name="AMP PCM Gain" value="7" />
<ctl name="Main AMP Enable Switch" value="1" />
</path>
<path name="speaker">
<ctl name="Boost Peak Current Limit" value="2.50A" />
<ctl name="R Boost Peak Current Limit" value="2.50A" />
<ctl name="Main AMP Enable Switch" value="1" />
<ctl name="R Main AMP Enable Switch" value="1" />
<ctl name="Fast Use Case Delta File" value="fast_switch3.txt" />
<ctl name="Fast Use Case Switch Enable" value="1" />
<ctl name="R Fast Use Case Delta File" value="fast_switch4.txt" />
<ctl name="R Fast Use Case Switch Enable" value="1" />
</path>
<path name="speaker (VOICE)">
<ctl name="R Boost Peak Current Limit" value="3.50A" />
<ctl name="Boost Peak Current Limit" value="3.50A" />
<ctl name="ASPTX1 Slot Position" value="1" />
<ctl name="R ASPTX1 Slot Position" value="0" />
<!--<ctl
name="R DSP RX2 Source" value="ASPRX2"/>-->
<ctl name="R Main AMP Enable Switch" value="1" />
<ctl name="Main AMP Enable Switch" value="1" />
<!-- load Enable FIR -->
<ctl name="Fast Use Case Delta File" value="fast_switch1.txt" />
<ctl name="Fast Use Case Switch Enable" value="1" />
<ctl name="R Fast Use Case Delta File" value="fast_switch2.txt" />
<ctl name="R Fast Use Case Switch Enable" value="1" />
<ctl name="Digital PCM Volume" value="800" />
</path>
<path name="speaker-safe">
<ctl name="R Boost Peak Current Limit" value="3.50A" />
<ctl name="R Main AMP Enable Switch" value="1" />
<!-- load Bypass FIR -->
<ctl name="R Fast Use Case Delta File" value="fast_switch4.txt" />
<ctl name="R Fast Use Case Switch Enable" value="1" />
</path>
<!-- Tx device -->
<path name="microphones">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC Record Soft Gain (dB)" value="22" />
</path>
<path name="microphones (VOICE)">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC HW Gain At High Power Mode (cB)" value="130" />
<ctl name="MIC Record Soft Gain (dB)" value="0" />
</path>
<path name="back-microphones">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC Record Soft Gain (dB)" value="22" />
</path>
<path name="back-microphones (VOICE)">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC HW Gain At High Power Mode (cB)" value="130" />
<ctl name="MIC Record Soft Gain (dB)" value="0" />
</path>
<path name="microphones (CAMCORDER)">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0"/>
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3"/>
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2"/>
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1"/>
<ctl name="MIC DC Blocker" value="1"/>
<ctl name="MIC Record Soft Gain (dB)" value="0"/>
</path>
<path name="back-microphones (CAMCORDER)">
<path name="microphones (CAMCORDER)" />
</path>
<path name="camcorder-mic">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC Record Soft Gain (dB)" value="0" />
</path>
<path name="voice-recog-mic">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC Record Soft Gain (dB)" value="22" />
</path>
<path name="voice-recog-aec-mic">
<ctl name="Audio Capture Eraser Enable" value="1" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="Audio Capture Mic Source" value="ERASER" />
<ctl name="MIC Record Soft Gain (dB)" value="0" />
</path>
<path name="unprocessed-mic">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC Record Soft Gain (dB)" value="5" />
</path>
<path name="unprocessed-dual-mic">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC Record Soft Gain (dB)" value="5" />
</path>
<path name="unprocessed-triple-mic">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="MIC DC Blocker" value="1" />
<ctl name="MIC Record Soft Gain (dB)" value="5" />
</path>
<path name="bt-mic">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="Audio Capture Mic Source" value="BT_MIC" />
<ctl name="Voice Call Mic Source" value="BT_MIC" />
<ctl name="MIC Record Soft Gain (dB)" value="0" />
</path>
<path name="usb-headset-mic">
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="0" value="0" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="1" value="3" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="2" value="2" />
<ctl name="BUILDIN MIC ID CAPTURE LIST" id="3" value="-1" />
<ctl name="Audio Capture Mic Source" value="USB_MIC" />
<ctl name="Voice Call Mic Source" value="USB_MIC" />
<ctl name="MIC Record Soft Gain (dB)" value="0" />
</path>
<!-- cs35l41 specific path to load firmware in cs35l41.c -->
<path name="cs35l41-load-protection-firmware-start">
<!-- Enable it after get the protection firmware -->
<ctl name="DSP Booted" value="0" />
<ctl name="R DSP Booted" value="0" />
<ctl name="DSP1 Preload Switch" value="0" />
<ctl name="R DSP1 Preload Switch" value="0" />
</path>
<path name="cs35l41-load-protection-firmware-end">
<!-- Enable it after get the protection firmware -->
<ctl name="DSP1 Preload Switch" value="1" />
<ctl name="R DSP1 Preload Switch" value="1" />
</path>
<!-- cs35l41 specific path to load firmware in cs35l41.c end-->
</mixer>

View file

@ -16,6 +16,18 @@
AUDIO_TABLE_FOLDER := panther AUDIO_TABLE_FOLDER := panther
# Enable this to build AIDL
# BUILD_AUDIO_AIDL_VERSION := true
ifeq ($(BUILD_AUDIO_AIDL_VERSION),true)
# AIDL HAL configs are in the *aidl_config* folder
PRODUCT_COPY_FILES += \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/aidl_config/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/aidl_config/audio_platform_configuration_aidl.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_configuration_aidl.xml \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/aidl_config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/aidl_config/mixer_paths_aidl.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_aidl.xml
else
# HIDL HAL configs are in the *config* folder
# Platform Configuration for AudioHAL / SoundTriggerHAL # Platform Configuration for AudioHAL / SoundTriggerHAL
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/pantah/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/pantah/audio/$(AUDIO_TABLE_FOLDER)/config/audio_policy_configuration_bluetooth_legacy_hal.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml \
@ -34,6 +46,7 @@ PRODUCT_COPY_FILES += \
# Mixer Path Configuration for AudioHAL # Mixer Path Configuration for AudioHAL
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/config/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml device/google/pantah/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)/cs35l41/fw SPK_FIRMWARE_PATH := $(AUDIO_TABLE_FOLDER)/cs35l41/fw
@ -44,6 +57,7 @@ PRODUCT_COPY_FILES += $(call copy-files,$(wildcard $(SPK_FIRMWARE_FULL_PATH)/*)
# Audio tuning # Audio tuning
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/tuning/bluenote/recording.gatf:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/recording.gatf \ device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/tuning/bluenote/recording.gatf:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/recording.gatf \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/tuning/bluenote/smartfeature.gstf:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/smartfeature.gstf \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia_stereo/BLUETOOTH.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/BLUETOOTH.dat \ device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia_stereo/BLUETOOTH.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/BLUETOOTH.dat \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia_stereo/HANDSFREE.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/HANDSFREE.dat \ device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia_stereo/HANDSFREE.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/HANDSFREE.dat \
device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia_stereo/HANDSET.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/HANDSET.dat \ device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/tuning/fortemedia_stereo/HANDSET.dat:$(TARGET_COPY_OUT_VENDOR)/etc/aoc/HANDSET.dat \

View file

@ -304,7 +304,7 @@
<device_handle> <device_handle>
<handler libname="audio_bt_aoc.so"/> <handler libname="audio_bt_aoc.so"/>
<handler libname="audio_usb_aoc.so" argu="MaxSamplingRate=96000,UnsupportedFormat=S24_LE"/> <handler libname="audio_usb_aoc.so" argu="MaxSamplingRate=192000,UnsupportedFormat=S24_LE,MaxCapPacketInterval=125,MaxCapSampleRate=192000,MaxCapBitWidth=32,MaxCapChannel=2,EnableHifi192kMultichannel=0"/>
</device_handle> </device_handle>
<external_module> <external_module>

Binary file not shown.

View file

@ -295,7 +295,7 @@
<device_handle> <device_handle>
<handler libname="audio_bt_aoc.so"/> <handler libname="audio_bt_aoc.so"/>
<handler libname="audio_usb_aoc.so" argu="MaxSamplingRate=96000,UnsupportedFormat=S24_LE"/> <handler libname="audio_usb_aoc.so" argu="MaxSamplingRate=192000,UnsupportedFormat=S24_LE,MaxCapPacketInterval=125,MaxCapSampleRate=192000,MaxCapBitWidth=32,MaxCapChannel=2,EnableHifi192kMultichannel=0"/>
</device_handle> </device_handle>
<external_module> <external_module>

View file

@ -44,6 +44,8 @@
<scenario encode="OneChanStereo_16_2" decode="OneChanMono_16_2"/> <scenario encode="OneChanStereo_16_2" decode="OneChanMono_16_2"/>
<scenario encode="TwoChanStereo_16_2" decode="OneChanMono_16_2"/> <scenario encode="TwoChanStereo_16_2" decode="OneChanMono_16_2"/>
<scenario encode="OneChanMono_16_2" decode="OneChanMono_16_2"/> <scenario encode="OneChanMono_16_2" decode="OneChanMono_16_2"/>
<scenario encode="TwoChanStereo_32_2" decode="OneChanMono_32_2"/>
<scenario encode="OneChanMono_32_2" decode="OneChanMono_32_2"/>
</scenarioList> </scenarioList>
<configurationList> <configurationList>
<configuration name="OneChanMono_16_1" codecConfiguration="LC3_16k_1" strategyConfiguration="MONO_ONE_CIS_PER_DEVICE"/> <configuration name="OneChanMono_16_1" codecConfiguration="LC3_16k_1" strategyConfiguration="MONO_ONE_CIS_PER_DEVICE"/>
@ -56,6 +58,8 @@
<configuration name="TwoChanStereo_24_2" codecConfiguration="LC3_24k_2" strategyConfiguration="STEREO_TWO_CISES_PER_DEVICE"/> <configuration name="TwoChanStereo_24_2" codecConfiguration="LC3_24k_2" strategyConfiguration="STEREO_TWO_CISES_PER_DEVICE"/>
<configuration name="OneChanStereo_24_2" codecConfiguration="LC3_24k_2" strategyConfiguration="STEREO_ONE_CIS_PER_DEVICE"/> <configuration name="OneChanStereo_24_2" codecConfiguration="LC3_24k_2" strategyConfiguration="STEREO_ONE_CIS_PER_DEVICE"/>
<configuration name="OneChanMono_48_4" codecConfiguration="LC3_48k_4" strategyConfiguration="MONO_ONE_CIS_PER_DEVICE"/> <configuration name="OneChanMono_48_4" codecConfiguration="LC3_48k_4" strategyConfiguration="MONO_ONE_CIS_PER_DEVICE"/>
<configuration name="TwoChanStereo_32_2" codecConfiguration="LC3_32k_2" strategyConfiguration="STEREO_TWO_CISES_PER_DEVICE"/>
<configuration name="OneChanMono_32_2" codecConfiguration="LC3_32k_2" strategyConfiguration="MONO_ONE_CIS_PER_DEVICE"/>
<configuration name="TwoChanStereo_48_4" codecConfiguration="LC3_48k_4" strategyConfiguration="STEREO_TWO_CISES_PER_DEVICE"/> <configuration name="TwoChanStereo_48_4" codecConfiguration="LC3_48k_4" strategyConfiguration="STEREO_TWO_CISES_PER_DEVICE"/>
<configuration name="OneChanStereo_48_4" codecConfiguration="LC3_48k_4" strategyConfiguration="STEREO_ONE_CIS_PER_DEVICE"/> <configuration name="OneChanStereo_48_4" codecConfiguration="LC3_48k_4" strategyConfiguration="STEREO_ONE_CIS_PER_DEVICE"/>
</configurationList> </configurationList>
@ -63,6 +67,7 @@
<codecConfiguration name="LC3_16k_1" codec="LC3" samplingFrequency="16000" frameDurationUs="7500" octetsPerCodecFrame="30"/> <codecConfiguration name="LC3_16k_1" codec="LC3" samplingFrequency="16000" frameDurationUs="7500" octetsPerCodecFrame="30"/>
<codecConfiguration name="LC3_16k_2" codec="LC3" samplingFrequency="16000" frameDurationUs="10000" octetsPerCodecFrame="40"/> <codecConfiguration name="LC3_16k_2" codec="LC3" samplingFrequency="16000" frameDurationUs="10000" octetsPerCodecFrame="40"/>
<codecConfiguration name="LC3_24k_2" codec="LC3" samplingFrequency="24000" frameDurationUs="10000" octetsPerCodecFrame="60"/> <codecConfiguration name="LC3_24k_2" codec="LC3" samplingFrequency="24000" frameDurationUs="10000" octetsPerCodecFrame="60"/>
<codecConfiguration name="LC3_32k_2" codec="LC3" samplingFrequency="32000" frameDurationUs="10000" octetsPerCodecFrame="80"/>
<codecConfiguration name="LC3_48k_4" codec="LC3" samplingFrequency="48000" frameDurationUs="10000" octetsPerCodecFrame="120"/> <codecConfiguration name="LC3_48k_4" codec="LC3" samplingFrequency="48000" frameDurationUs="10000" octetsPerCodecFrame="120"/>
</codecConfigurationList> </codecConfigurationList>
<strategyConfigurationList> <strategyConfigurationList>

View file

@ -1,56 +0,0 @@
<manifest version="1.0" type="device">
<hal format="hidl">
<name>android.hardware.bluetooth</name>
<transport>hwbinder</transport>
<version>1.1</version>
<interface>
<name>IBluetoothHci</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>hardware.google.bluetooth.bt_channel_avoidance</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IBTChannelAvoidance</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>hardware.google.bluetooth.sar</name>
<transport>hwbinder</transport>
<version>1.1</version>
<interface>
<name>IBluetoothSar</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>hardware.google.bluetooth.ext</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IBluetoothExt</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>hardware.google.bluetooth.ccc</name>
<transport>hwbinder</transport>
<version>1.1</version>
<interface>
<name>IBluetoothCcc</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>hardware.google.bluetooth.ewp</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IBluetoothEwp</name>
<instance>default</instance>
</interface>
</hal>
</manifest>

View file

@ -13,6 +13,13 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# #
# Enable load module in parallel
BOARD_BOOTCONFIG += androidboot.load_modules_parallel=true
# The modules which need to be loaded in sequential
BOARD_KERNEL_CMDLINE += exynos_drm.load_sequential=1
TARGET_BOARD_INFO_FILE := device/google/pantah/board-info.txt TARGET_BOARD_INFO_FILE := device/google/pantah/board-info.txt
TARGET_BOOTLOADER_BOARD_NAME := cheetah TARGET_BOOTLOADER_BOARD_NAME := cheetah
TARGET_SCREEN_DENSITY := 560 TARGET_SCREEN_DENSITY := 560

View file

@ -183,9 +183,6 @@
<!-- 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.335</item>
<!-- the number of the max cached processes in the system. -->
<integer name="config_customizedMaxCachedProcesses">64</integer>
<integer-array name="config_ambientThresholdLevels"> <integer-array name="config_ambientThresholdLevels">
<item>2</item> <item>2</item>
<item>3</item> <item>3</item>
@ -298,4 +295,17 @@
Note: This should be only enabled on devices with high confidence on power measurement. Note: This should be only enabled on devices with high confidence on power measurement.
--> -->
<bool name="config_bg_current_drain_auto_restrict_abusive_apps">true</bool> <bool name="config_bg_current_drain_auto_restrict_abusive_apps">true</bool>
<!-- 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 120.63086 0 C 111.97487 9.2518493e-17 103.41184 -0.00022182194 94.755859 0.091796875 C 86.099865 0.18380821 77.536566 0.46005475 68.972656 1.65625 C 51.568581 4.0486395 35.637425 10.122024 22.929688 22.912109 C 10.129864 35.610181 3.9606178 51.529084 1.5664062 68.919922 C 0.36930055 77.477315 0.092085137 86.034182 0 94.683594 L 0 3025.3164 C 0.092089816 3033.9658 0.3692987 3042.5227 1.5664062 3051.0801 C 3.9606216 3068.471 10.129872 3084.3898 22.929688 3097.0879 C 35.637432 3109.878 51.568582 3115.9514 68.972656 3118.3438 C 77.53656 3119.5398 86.099868 3119.8162 94.755859 3119.9082 C 103.41184 3120.0002 111.97487 3120 120.63086 3120 L 1319.3691 3120 C 1328.0252 3120 1336.5881 3120.0002 1345.2441 3119.9082 C 1353.9001 3119.8162 1362.4635 3119.5398 1371.0273 3118.3438 C 1388.4314 3115.9514 1404.3625 3109.878 1417.0703 3097.0879 C 1429.8701 3084.3898 1436.0412 3068.471 1438.4355 3051.0801 C 1439.6326 3042.5227 1439.9079 3033.9658 1440 3025.3164 L 1440 94.683594 C 1439.9079 86.03418 1439.6326 77.477314 1438.4355 68.919922 C 1436.0412 51.529083 1429.8701 35.610181 1417.0703 22.912109 C 1404.3625 10.122024 1388.4314 4.0486392 1371.0273 1.65625 C 1362.4635 0.4600554 1353.9001 0.18380669 1345.2441 0.091796875 C 1336.5881 -0.00022294096 1328.0251 0 1319.3691 0 L 120.63086 0 z</string>
</resources> </resources>

View file

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
**
** Copyright 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.
*/
-->
<irq-device-map>
<device name="rtc-alarm0">
<subsystem>Alarm</subsystem>
</device>
<device name="dhdpcie_host_wake">
<subsystem>Wifi</subsystem>
</device>
<device name="cp2ap_wakeup">
<subsystem>Cellular_data</subsystem>
</device>
<device name="MAILBOX_AOCF12APx1100">
<subsystem>Sound_trigger</subsystem>
</device>
<device name="MAILBOX_AOCA322APx100">
<subsystem>Sensor</subsystem>
</device>
</irq-device-map>

View file

@ -44,8 +44,5 @@
<!-- Padding for the lock icon on the keyguard. In pixels - should not scale with display size. --> <!-- Padding for the lock icon on the keyguard. In pixels - should not scale with display size. -->
<dimen name="lock_icon_padding">60px</dimen> <dimen name="lock_icon_padding">60px</dimen>
<!-- Alpha in duration in ms for the auth ripple to become fully vislble. If set to 0, it is immediately visible. -->
<integer name="auth_ripple_alpha_in_duration">0</integer>
</resources> </resources>

View file

@ -21,4 +21,15 @@
<item>GE2AE</item> <item>GE2AE</item>
<item>GFE4J</item> <item>GFE4J</item>
</string-array> </string-array>
<bool name="tag_intent_app_pref_supported">true</bool>
<!-- NFC Antenna Location API -->
<integer name="device_width">75</integer>
<integer name="device_height">160</integer>
<bool name="device_foldable">false</bool>
<integer-array name="antenna_x">
<item>38</item>
</integer-array>
<integer-array name="antenna_y">
<item>100</item>
</integer-array>
</resources> </resources>

View file

@ -0,0 +1,18 @@
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/pantah:device_google_pantah_license"
// to get the below license kinds:
// SPDX-license-identifier-Apache-2.0
default_applicable_licenses: [
"//device/google/pantah/cheetah:device_google_pantah_license",
],
}
runtime_resource_overlay {
name: "UwbOverlayC10",
theme: "UwbOverlayC10",
certificate: "platform",
sdk_version: "current",
product_specific: true
}

View file

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2022 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.
-->
<!-- Pixel specific uwb overlays -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.uwb.resources.pixel"
android:versionCode="1"
android:versionName="1.0">
<application android:hasCode="false" />
<overlay
android:targetPackage="com.android.uwb.resources"
android:targetName="UwbCustomization"
android:isStatic="true"
android:priority="0"/>
</manifest>

View file

@ -0,0 +1,3 @@
# People who can approve changes for submission
include platform/packages/modules/Uwb:/OWNERS
victorliu@google.com

View file

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
* Copyright (C) 2022 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>
<!-- When true, the filter engine will alter UWB values to improve accuracy. -->
<bool name="enable_filters">true</bool>
<!-- Enables elevation estimation. Strongly recommended for hardware that doesn't support
elevation. This helps produce better predictions from pose changes, and improves the quality
of the AoA primer. -->
<bool name="enable_primer_est_elevation">false</bool>
<!-- Enables the AoA conversion primer. This is needed on hardware that does not convert AoA
to spherical coordinates, including hardware that does not support elevation.-->
<bool name="enable_primer_aoa">true</bool>
</resources>

View file

@ -56,6 +56,7 @@
<!-- True if the firmware supports connected MAC randomization --> <!-- True if the firmware supports connected MAC randomization -->
<bool name="config_wifi_connected_mac_randomization_supported">true</bool> <bool name="config_wifi_connected_mac_randomization_supported">true</bool>
<bool name="config_wifiAllowNonPersistentMacRandomizationOnOpenSsids">true</bool>
<!-- True if the firmware supports p2p MAC randomization --> <!-- True if the firmware supports p2p MAC randomization -->
<bool name="config_wifi_p2p_mac_randomization_supported">true</bool> <bool name="config_wifi_p2p_mac_randomization_supported">true</bool>
@ -150,4 +151,18 @@
<!-- Enable WPA2 to WPA3 auto-upgrade offload to capable Driver/Firmware --> <!-- Enable WPA2 to WPA3 auto-upgrade offload to capable Driver/Firmware -->
<bool translatable="false" name="config_wifiSaeUpgradeOffloadEnabled">true</bool> <bool translatable="false" name="config_wifiSaeUpgradeOffloadEnabled">true</bool>
<!-- Boolean indicating whether DTIM multiplier configuration is enabled. DTIM multiplier value
is when the system is in the suspended mode -->
<bool translatable="false" name="config_wifiDtimMultiplierConfigEnabled">true</bool>
<!-- Enable the feature of adjusting link layer stats polling interval based on
device mobility state and client mode RSSI monitoring. -->
<bool translatable="false" name="config_wifiAdjustPollRssiIntervalEnabled">true</bool>
<!-- Boolean indicating whether the framework updates country from scan results when there is
no telephony country code. This is applied to all generic cases and might require the
regulatory approval (for example, FCC pre-approval is required according to "594280 D01
Software Configuration Control v02r01").-->
<bool translatable="false" name ="config_wifiUpdateCountryCodeFromScanResultGeneric">true</bool>
</resources> </resources>

View file

@ -15,7 +15,7 @@ on early-boot
wait_for_prop vendor.common.modules.ready 1 wait_for_prop vendor.common.modules.ready 1
start insmod_sh_cloudripper start insmod_sh_cloudripper
service insmod_sh_cloudripper /vendor/bin/init.insmod.sh /vendor/etc/init.insmod.cloudripper.cfg service insmod_sh_cloudripper /vendor/bin/insmod.sh /vendor/etc/init.insmod.cloudripper.cfg
class main class main
user root user root
group root system group root system
@ -51,3 +51,37 @@ on post-fs-data
setprop wifi.direct.interface p2p-dev-wlan0 setprop wifi.direct.interface p2p-dev-wlan0
setprop wifi.aware.interface aware_nmi0 setprop wifi.aware.interface aware_nmi0
# Haptics
on property:vendor.all.modules.ready=1
mkdir /mnt/vendor/persist/haptics 0770 system system
chmod 770 /mnt/vendor/persist/haptics
chmod 440 /mnt/vendor/persist/haptics/cs40l26.cal
chmod 440 /mnt/vendor/persist/haptics/cs40l26_dual.cal
chown system system /mnt/vendor/persist/haptics
chown system system /mnt/vendor/persist/haptics/cs40l26.cal
chown system system /mnt/vendor/persist/haptics/cs40l26_dual.cal
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/calibration/f0_stored
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/calibration/q_stored
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/calibration/redc_stored
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/vibe_state
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/num_waves
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/f0_offset
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/owt_free_space
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/f0_comp_enable
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/redc_comp_enable
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/delay_before_stop_playback_us
chown system system /sys/bus/i2c/devices/i2c-cs40l26a-dual/calibration/f0_stored
chown system system /sys/bus/i2c/devices/i2c-cs40l26a-dual/calibration/q_stored
chown system system /sys/bus/i2c/devices/i2c-cs40l26a-dual/calibration/redc_stored
chown system system /sys/bus/i2c/devices/i2c-cs40l26a-dual/default/vibe_state
chown system system /sys/bus/i2c/devices/i2c-cs40l26a-dual/default/num_waves
chown system system /sys/bus/i2c/devices/i2c-cs40l26a-dual/default/f0_offset
chown system system /sys/bus/i2c/devices/i2c-cs40l26a-dual/default/owt_free_space
chown system system /sys/bus/i2c/devices/i2c-cs40l26a-dual/default/f0_comp_enable
chown system system /sys/bus/i2c/devices/i2c-cs40l26a-dual/default/redc_comp_enable
chown system system /sys/bus/i2c/devices/i2c-cs40l26a-dual/default/delay_before_stop_playback_us
enable vendor.vibrator.cs40l26
enable vendor.vibrator.cs40l26-dual

View file

@ -13,7 +13,7 @@ on early-boot
wait_for_prop vendor.common.modules.ready 1 wait_for_prop vendor.common.modules.ready 1
start insmod_sh_pantah start insmod_sh_pantah
service insmod_sh_pantah /vendor/bin/init.insmod.sh /vendor/etc/init.insmod.${ro.hardware}.cfg service insmod_sh_pantah /vendor/bin/insmod.sh /vendor/etc/init.insmod.${ro.hardware}.cfg
class main class main
user root user root
group root system group root system
@ -24,24 +24,6 @@ on property:vendor.mfgapi.touchpanel.permission=1
chmod 0600 /sys/devices/virtual/sec/tsp/cmd chmod 0600 /sys/devices/virtual/sec/tsp/cmd
chown system system /sys/devices/virtual/sec/tsp/cmd chown system system /sys/devices/virtual/sec/tsp/cmd
# Fingerprint
on post-fs-data
chown system system /dev/goodix_fp
exec_background - system shell -- /vendor/bin/trusty_apploader /vendor/firmware/g7.app
# Overrides fingerprint antispoof if following persist sysprops are set
on boot && property:ro.build.type=userdebug && \
property:persist.vendor.fingerprint.disable.fake.override=0
setprop vendor.fingerprint.disable.fake ${persist.vendor.fingerprint.disable.fake.override}
on boot && property:ro.build.type=userdebug && \
property:persist.vendor.fingerprint.disable.fake.override=1
setprop vendor.fingerprint.disable.fake ${persist.vendor.fingerprint.disable.fake.override}
on boot && property:ro.build.type=userdebug && \
property:persist.vendor.fingerprint.disable.fake.override=100
setprop vendor.fingerprint.disable.fake ${persist.vendor.fingerprint.disable.fake.override}
# WiFi # WiFi
on post-fs-data on post-fs-data
setprop wifi.direct.interface p2p-dev-wlan0 setprop wifi.direct.interface p2p-dev-wlan0
@ -87,31 +69,23 @@ on property:ro.boot.hardware.revision=PROTO1.0
on property:ro.boot.hardware.revision=PROTO1.1 on property:ro.boot.hardware.revision=PROTO1.1
setprop vendor.thermal.config "thermal_info_config_proto.json" setprop vendor.thermal.config "thermal_info_config_proto.json"
# Touch # Haptics
on property:vendor.device.modules.ready=1 on property:vendor.all.modules.ready=1
chown system system /proc/focaltech_touch/Channel_Num mkdir /mnt/vendor/persist/haptics 0770 system system
chown system system /proc/focaltech_touch/FW_Version chmod 770 /mnt/vendor/persist/haptics
chown system system /proc/focaltech_touch/INT_PIN chmod 440 /mnt/vendor/persist/haptics/cs40l26.cal
chown system system /proc/focaltech_touch/force_active chown system system /mnt/vendor/persist/haptics
chown system system /proc/focaltech_touch/Reset_Pin chown system system /mnt/vendor/persist/haptics/cs40l26.cal
chown system system /proc/focaltech_touch/fw_grip
chown system system /proc/focaltech_touch/fw_palm
chown system system /proc/focaltech_touch/heatmap_onoff
chown system system /proc/focaltech_touch/mf_mode
chown system system /proc/focaltech_touch/selftest/Baseline
chown system system /proc/focaltech_touch/selftest/Noise
chown system system /proc/focaltech_touch/selftest/Panel_Differ
chown system system /proc/focaltech_touch/selftest/Rawdata
chown system system /proc/focaltech_touch/selftest/Rawdata_Uniformity
chown system system /proc/focaltech_touch/selftest/Scap_CB
chown system system /proc/focaltech_touch/selftest/Scap_Rawdata
chown system system /proc/focaltech_touch/selftest/Short
chown system system /proc/focaltech_touch/selftest/Strength
# Override SF and RE uclamps to 0 on boot after being set elsewhere, for adpf cpu hints chown system system /sys/bus/i2c/devices/i2c-cs40l26a/calibration/f0_stored
on property:sys.boot_completed=1 chown system system /sys/bus/i2c/devices/i2c-cs40l26a/calibration/q_stored
trigger override-sf-uclamp chown system system /sys/bus/i2c/devices/i2c-cs40l26a/calibration/redc_stored
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/vibe_state
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/num_waves
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/f0_offset
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/owt_free_space
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/f0_comp_enable
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/redc_comp_enable
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/delay_before_stop_playback_us
on override-sf-uclamp enable vendor.vibrator.cs40l26
write /proc/vendor_sched/rt_uclamp_min 0
write /proc/vendor_sched/sf_uclamp_min 0

View file

@ -6,13 +6,6 @@ on property:vendor.device.modules.ready=1
# Start the twoshay touch service # Start the twoshay touch service
start twoshay start twoshay
# Toggle glove_mode according to touch_sensitivity_mode
on property:persist.vendor.touch_sensitivity_mode=0 && property:sys.boot_completed=1
write /proc/focaltech_touch/high_sensitivity 0
on property:persist.vendor.touch_sensitivity_mode=1 && property:sys.boot_completed=1
write /proc/focaltech_touch/high_sensitivity 1
# For Japan sku, always enforce camera shutter sound # For Japan sku, always enforce camera shutter sound
# Since this property is read by the audio server in system service, # Since this property is read by the audio server in system service,
# it should be written by the system init. # it should be written by the system init.

View file

@ -15,7 +15,7 @@ on early-boot
wait_for_prop vendor.common.modules.ready 1 wait_for_prop vendor.common.modules.ready 1
start insmod_sh_ravenclaw start insmod_sh_ravenclaw
service insmod_sh_ravenclaw /vendor/bin/init.insmod.sh /vendor/etc/init.insmod.ravenclaw.cfg service insmod_sh_ravenclaw /vendor/bin/insmod.sh /vendor/etc/init.insmod.ravenclaw.cfg
class main class main
user root user root
group root system group root system

View file

@ -29,9 +29,9 @@ DEVICE_PACKAGE_OVERLAYS += device/google/pantah/cheetah/overlay
include device/google/pantah/audio/cheetah/audio-tables.mk include device/google/pantah/audio/cheetah/audio-tables.mk
include device/google/gs201/device-shipping-common.mk include device/google/gs201/device-shipping-common.mk
include hardware/google/pixel/vibrator/cs40l26/device.mk include hardware/google/pixel/vibrator/cs40l26/device.mk
include device/google/gs101/bluetooth/bluetooth.mk include device/google/gs-common/bcmbt/bluetooth.mk
include device/google/gs-common/touch/syna/syna.mk
DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/pantah/device_framework_matrix_product.xml
ifeq ($(filter factory_cheetah, $(TARGET_PRODUCT)),) ifeq ($(filter factory_cheetah, $(TARGET_PRODUCT)),)
include device/google/pantah/uwb/uwb_calibration.mk include device/google/pantah/uwb/uwb_calibration.mk
endif endif
@ -144,13 +144,6 @@ PRODUCT_COPY_FILES += \
device/google/pantah/powerhint-cheetah-a0.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint-a0.json device/google/pantah/powerhint-cheetah-a0.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint-a0.json
# Bluetooth HAL # Bluetooth HAL
DEVICE_MANIFEST_FILE += \
device/google/pantah/bluetooth/manifest_bluetooth.xml
PRODUCT_SOONG_NAMESPACES += \
vendor/broadcom/bluetooth
PRODUCT_PACKAGES += \
android.hardware.bluetooth@1.1-service.bcmbtlinux \
bt_vendor.conf
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/pantah/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf device/google/pantah/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf
PRODUCT_PROPERTY_OVERRIDES += \ PRODUCT_PROPERTY_OVERRIDES += \
@ -158,10 +151,6 @@ PRODUCT_PROPERTY_OVERRIDES += \
persist.bluetooth.a2dp_offload.disabled=false \ persist.bluetooth.a2dp_offload.disabled=false \
persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-opus persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-opus
# Spatial Audio
PRODUCT_PACKAGES += \
libspatialaudio
# Bluetooth hci_inject test tool # Bluetooth hci_inject test tool
PRODUCT_PACKAGES_DEBUG += \ PRODUCT_PACKAGES_DEBUG += \
hci_inject hci_inject
@ -184,6 +173,55 @@ PRODUCT_COPY_FILES += \
PRODUCT_PACKAGES_DEBUG += \ PRODUCT_PACKAGES_DEBUG += \
sar_test sar_test
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.firmware.selection=BCM.hcd
# Bluetooth AAC VBR
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.a2dp_aac.vbr_supported=true
# 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=262238
else
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.bqr.event_mask=94
endif
# Bluetooth LE Audio
PRODUCT_PRODUCT_PROPERTIES += \
ro.bluetooth.leaudio_offload.supported=true \
persist.bluetooth.leaudio_offload.disabled=false \
ro.bluetooth.leaudio_switcher.supported=true \
bluetooth.profile.bap.unicast.client.enabled?=true \
bluetooth.profile.csip.set_coordinator.enabled?=true \
bluetooth.profile.hap.client.enabled?=true \
bluetooth.profile.mcp.server.enabled?=true \
bluetooth.profile.ccp.server.enabled?=true \
bluetooth.profile.vcp.controller.enabled?=true \
# Bluetooth LE Audio CIS handover to SCO
# Set the property only if the controller doesn't support CIS and SCO
# simultaneously. More details in b/242908683.
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.leaudio.notify.idle.during.call=true
# LE Auido Offload Capabilities setting
PRODUCT_COPY_FILES += \
device/google/pantah/bluetooth/le_audio_codec_capabilities.xml:$(TARGET_COPY_OUT_VENDOR)/etc/le_audio_codec_capabilities.xml
# Bluetooth EWP test tool
PRODUCT_PACKAGES_DEBUG += \
ewp_tool
# default BDADDR for EVB only
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"
# Spatial Audio
PRODUCT_PACKAGES += \
libspatialaudio
# declare use of spatial audio # declare use of spatial audio
PRODUCT_PROPERTY_OVERRIDES += \ PRODUCT_PROPERTY_OVERRIDES += \
ro.audio.spatializer_enabled=true ro.audio.spatializer_enabled=true
@ -222,10 +260,6 @@ PRODUCT_PROPERTY_OVERRIDES += \
# ro.hardware.keystore=software \ # ro.hardware.keystore=software \
# ro.hardware.gatekeeper=software # ro.hardware.gatekeeper=software
# default BDADDR for EVB only
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"
# PowerStats HAL # PowerStats HAL
PRODUCT_SOONG_NAMESPACES += \ PRODUCT_SOONG_NAMESPACES += \
device/google/pantah/powerstats/cheetah \ device/google/pantah/powerstats/cheetah \
@ -240,8 +274,8 @@ else
include device/google/gs101/fingerprint/udfps_factory.mk include device/google/gs101/fingerprint/udfps_factory.mk
endif endif
# WiFi Overlay
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
UwbOverlayC10 \
WifiOverlay2022_C10 WifiOverlay2022_C10
PRODUCT_SOONG_NAMESPACES += device/google/pantah/cheetah/ PRODUCT_SOONG_NAMESPACES += device/google/pantah/cheetah/
@ -272,11 +306,12 @@ PRODUCT_VENDOR_PROPERTIES += \
# Increment the SVN for any official public releases # Increment the SVN for any official public releases
PRODUCT_VENDOR_PROPERTIES += \ PRODUCT_VENDOR_PROPERTIES += \
ro.vendor.build.svn=21 ro.vendor.build.svn=26
# DCK properties based on target # DCK properties based on target
PRODUCT_PROPERTY_OVERRIDES += \ PRODUCT_PROPERTY_OVERRIDES += \
ro.gms.dck.eligible_wcc=3 ro.gms.dck.eligible_wcc=3 \
ro.gms.dck.se_capability=1
# Set support hide display cutout feature # Set support hide display cutout feature
PRODUCT_PRODUCT_PROPERTIES += \ PRODUCT_PRODUCT_PROPERTIES += \
@ -292,20 +327,6 @@ PRODUCT_PACKAGES += \
SettingsOverlayGE2AE \ SettingsOverlayGE2AE \
SettingsOverlayGP4BC SettingsOverlayGP4BC
# Bluetooth LE Audio
PRODUCT_PRODUCT_PROPERTIES += \
ro.bluetooth.leaudio_offload.supported=true \
persist.bluetooth.leaudio_offload.disabled=false \
ro.bluetooth.leaudio_switcher.supported=true
# LE Auido Offload Capabilities setting
PRODUCT_COPY_FILES += \
device/google/pantah/bluetooth/le_audio_codec_capabilities.xml:$(TARGET_COPY_OUT_VENDOR)/etc/le_audio_codec_capabilities.xml
# Bluetooth EWP test tool
PRODUCT_PACKAGES_DEBUG += \
ewp_tool
# userdebug specific # userdebug specific
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
@ -318,24 +339,11 @@ PRODUCT_VENDOR_PROPERTIES += \
persist.vendor.udfps.lhbm_controlled_in_hal_supported=true persist.vendor.udfps.lhbm_controlled_in_hal_supported=true
# Vibrator HAL # Vibrator HAL
ACTUATOR_MODEL := luxshare_ict_081545
PRODUCT_VENDOR_PROPERTIES += \ PRODUCT_VENDOR_PROPERTIES += \
ro.vendor.vibrator.hal.chirp.enabled=1 ro.vendor.vibrator.hal.chirp.enabled=0 \
ro.vendor.vibrator.hal.device.mass=0.214 \
PRODUCT_PRODUCT_PROPERTIES += \ ro.vendor.vibrator.hal.loc.coeff=2.7
persist.bluetooth.firmware.selection=BCM.hcd
# Bluetooth AAC VBR
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.a2dp_aac.vbr_supported=true
# 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=262238
else
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.bqr.event_mask=94
endif
# Keyboard bottom and side padding in dp for portrait mode and height ratio # Keyboard bottom and side padding in dp for portrait mode and height ratio
PRODUCT_PRODUCT_PROPERTIES += \ PRODUCT_PRODUCT_PROPERTIES += \
@ -366,7 +374,3 @@ PRODUCT_PRODUCT_PROPERTIES += \
# Device features # Device features
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
# Enable adpf cpu hint session for SurfaceFlinger
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
debug.sf.enable_adpf_cpu_hint=true

View file

@ -25,9 +25,10 @@ $(call inherit-product-if-exists, vendor/google_devices/pantah/proprietary/cloud
include device/google/gs201/device-shipping-common.mk include device/google/gs201/device-shipping-common.mk
include device/google/pantah/audio/cloudripper/audio-tables.mk include device/google/pantah/audio/cloudripper/audio-tables.mk
include hardware/google/pixel/vibrator/cs40l26/device.mk include hardware/google/pixel/vibrator/cs40l26/device.mk
include device/google/gs101/bluetooth/bluetooth.mk include device/google/gs-common/bcmbt/bluetooth.mk
include device/google/gs-common/gps/brcm/cbd_gps.mk
include device/google/gs-common/touch/syna/syna.mk
DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/pantah/device_framework_matrix_product.xml
# go/lyric-soong-variables # go/lyric-soong-variables
$(call soong_config_set,lyric,camera_hardware,cloudripper) $(call soong_config_set,lyric,camera_hardware,cloudripper)
$(call soong_config_set,lyric,tuning_product,cloudripper) $(call soong_config_set,lyric,tuning_product,cloudripper)
@ -96,19 +97,19 @@ PRODUCT_COPY_FILES += \
device/google/pantah/powerhint-cloudripper.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json device/google/pantah/powerhint-cloudripper.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
# Bluetooth HAL # Bluetooth HAL
DEVICE_MANIFEST_FILE += \
device/google/pantah/bluetooth/manifest_bluetooth.xml
PRODUCT_SOONG_NAMESPACES += \
vendor/broadcom/bluetooth
PRODUCT_PACKAGES += \
android.hardware.bluetooth@1.1-service.bcmbtlinux \
bt_vendor.conf
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/pantah/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf device/google/pantah/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-opus persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-opus
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.firmware.selection=BCM.hcd
# default BDADDR for EVB only
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"
# Spatial Audio # Spatial Audio
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
@ -145,10 +146,6 @@ PRODUCT_PACKAGES += \
# ro.hardware.keystore=software \ # ro.hardware.keystore=software \
# ro.hardware.gatekeeper=software # ro.hardware.gatekeeper=software
# default BDADDR for EVB only
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"
# PowerStats HAL # PowerStats HAL
PRODUCT_SOONG_NAMESPACES += \ PRODUCT_SOONG_NAMESPACES += \
device/google/pantah/powerstats/cloudripper device/google/pantah/powerstats/cloudripper
@ -185,9 +182,6 @@ PRODUCT_PROPERTY_OVERRIDES += \
PRODUCT_VENDOR_PROPERTIES += \ PRODUCT_VENDOR_PROPERTIES += \
vendor.zram.size=3g vendor.zram.size=3g
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.firmware.selection=BCM.hcd
# Device features # Device features
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml

View file

@ -29,9 +29,9 @@ DEVICE_PACKAGE_OVERLAYS += device/google/pantah/panther/overlay
include device/google/pantah/audio/panther/audio-tables.mk include device/google/pantah/audio/panther/audio-tables.mk
include device/google/gs201/device-shipping-common.mk include device/google/gs201/device-shipping-common.mk
include hardware/google/pixel/vibrator/cs40l26/device.mk include hardware/google/pixel/vibrator/cs40l26/device.mk
include device/google/gs101/bluetooth/bluetooth.mk include device/google/gs-common/bcmbt/bluetooth.mk
include device/google/gs-common/touch/focaltech/focaltech.mk
DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/pantah/device_framework_matrix_product.xml
# go/lyric-soong-variables # go/lyric-soong-variables
$(call soong_config_set,lyric,camera_hardware,panther) $(call soong_config_set,lyric,camera_hardware,panther)
$(call soong_config_set,lyric,tuning_product,panther) $(call soong_config_set,lyric,tuning_product,panther)
@ -124,14 +124,11 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/pantah/powerhint-panther-a0.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint-a0.json device/google/pantah/powerhint-panther-a0.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint-a0.json
# Bluetooth HAL # Spatial Audio
DEVICE_MANIFEST_FILE += \
device/google/pantah/bluetooth/manifest_bluetooth.xml
PRODUCT_SOONG_NAMESPACES += \
vendor/broadcom/bluetooth
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
android.hardware.bluetooth@1.1-service.bcmbtlinux \ libspatialaudio
bt_vendor.conf
# Bluetooth HAL
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/pantah/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf device/google/pantah/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf
PRODUCT_PROPERTY_OVERRIDES += \ PRODUCT_PROPERTY_OVERRIDES += \
@ -139,10 +136,6 @@ PRODUCT_PROPERTY_OVERRIDES += \
persist.bluetooth.a2dp_offload.disabled=false \ persist.bluetooth.a2dp_offload.disabled=false \
persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-opus persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-opus
# Spatial Audio
PRODUCT_PACKAGES += \
libspatialaudio
# Bluetooth hci_inject test tool # Bluetooth hci_inject test tool
PRODUCT_PACKAGES_DEBUG += \ PRODUCT_PACKAGES_DEBUG += \
hci_inject hci_inject
@ -164,6 +157,51 @@ PRODUCT_COPY_FILES += \
# Bluetooth SAR test tool # Bluetooth SAR test tool
PRODUCT_PACKAGES_DEBUG += \ PRODUCT_PACKAGES_DEBUG += \
sar_test sar_test
# default BDADDR for EVB only
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"
# Bluetooth LE Audio
PRODUCT_PRODUCT_PROPERTIES += \
ro.bluetooth.leaudio_offload.supported=true \
persist.bluetooth.leaudio_offload.disabled=false \
ro.bluetooth.leaudio_switcher.supported=true \
bluetooth.profile.bap.unicast.client.enabled?=true \
bluetooth.profile.csip.set_coordinator.enabled?=true \
bluetooth.profile.hap.client.enabled?=true \
bluetooth.profile.mcp.server.enabled?=true \
bluetooth.profile.ccp.server.enabled?=true \
bluetooth.profile.vcp.controller.enabled?=true \
# Bluetooth LE Audio CIS handover to SCO
# Set the property only if the controller doesn't support CIS and SCO
# simultaneously. More details in b/242908683.
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.leaudio.notify.idle.during.call=true
# LE Auido Offload Capabilities setting
PRODUCT_COPY_FILES += \
device/google/pantah/bluetooth/le_audio_codec_capabilities.xml:$(TARGET_COPY_OUT_VENDOR)/etc/le_audio_codec_capabilities.xml
# Bluetooth EWP test tool
PRODUCT_PACKAGES_DEBUG += \
ewp_tool
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.firmware.selection=BCM.hcd
# Bluetooth AAC VBR
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.a2dp_aac.vbr_supported=true
# 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=262238
else
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.bqr.event_mask=94
endif
# declare use of spatial audio # declare use of spatial audio
PRODUCT_PROPERTY_OVERRIDES += \ PRODUCT_PROPERTY_OVERRIDES += \
@ -203,10 +241,6 @@ PRODUCT_PROPERTY_OVERRIDES += \
# ro.hardware.keystore=software \ # ro.hardware.keystore=software \
# ro.hardware.gatekeeper=software # ro.hardware.gatekeeper=software
# default BDADDR for EVB only
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"
# PowerStats HAL # PowerStats HAL
PRODUCT_SOONG_NAMESPACES += \ PRODUCT_SOONG_NAMESPACES += \
device/google/pantah/powerstats/panther \ device/google/pantah/powerstats/panther \
@ -257,11 +291,13 @@ PRODUCT_VENDOR_PROPERTIES += \
# Increment the SVN for any official public releases # Increment the SVN for any official public releases
PRODUCT_VENDOR_PROPERTIES += \ PRODUCT_VENDOR_PROPERTIES += \
ro.vendor.build.svn=21 ro.vendor.build.svn=26
# DCK properties based on target # DCK properties based on target
PRODUCT_PROPERTY_OVERRIDES += \ PRODUCT_PROPERTY_OVERRIDES += \
ro.gms.dck.eligible_wcc=2 ro.gms.dck.eligible_wcc=2 \
ro.gms.dck.se_capability=1
# Set support hide display cutout feature # Set support hide display cutout feature
PRODUCT_PRODUCT_PROPERTIES += \ PRODUCT_PRODUCT_PROPERTIES += \
@ -278,20 +314,6 @@ PRODUCT_PACKAGES += \
SettingsOverlayGVU6C \ SettingsOverlayGVU6C \
SettingsOverlayGVU6C_VN SettingsOverlayGVU6C_VN
# Bluetooth LE Audio
PRODUCT_PRODUCT_PROPERTIES += \
ro.bluetooth.leaudio_offload.supported=true \
persist.bluetooth.leaudio_offload.disabled=false \
ro.bluetooth.leaudio_switcher.supported=true
# LE Auido Offload Capabilities setting
PRODUCT_COPY_FILES += \
device/google/pantah/bluetooth/le_audio_codec_capabilities.xml:$(TARGET_COPY_OUT_VENDOR)/etc/le_audio_codec_capabilities.xml
# Bluetooth EWP test tool
PRODUCT_PACKAGES_DEBUG += \
ewp_tool
# userdebug specific # userdebug specific
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
@ -304,25 +326,11 @@ PRODUCT_VENDOR_PROPERTIES += \
persist.vendor.udfps.lhbm_controlled_in_hal_supported=true persist.vendor.udfps.lhbm_controlled_in_hal_supported=true
# Vibrator HAL # Vibrator HAL
ACTUATOR_MODEL := luxshare_ict_081545
PRODUCT_VENDOR_PROPERTIES += \ PRODUCT_VENDOR_PROPERTIES += \
ro.vendor.vibrator.hal.chirp.enabled=1 ro.vendor.vibrator.hal.chirp.enabled=0 \
ro.vendor.vibrator.hal.device.mass=0.195 \
PRODUCT_PRODUCT_PROPERTIES += \ ro.vendor.vibrator.hal.loc.coeff=2.65
persist.bluetooth.firmware.selection=BCM.hcd
# Bluetooth AAC VBR
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.a2dp_aac.vbr_supported=true
# 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=262238
else
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.bqr.event_mask=94
endif
# Keyboard bottom padding in dp for portrait mode and height ratio # Keyboard bottom padding in dp for portrait mode and height ratio
PRODUCT_PRODUCT_PROPERTIES += \ PRODUCT_PRODUCT_PROPERTIES += \
ro.com.google.ime.kb_pad_port_b=8 \ ro.com.google.ime.kb_pad_port_b=8 \
@ -350,7 +358,3 @@ PRODUCT_PRODUCT_PROPERTIES += \
# Device features # Device features
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
# Enable adpf cpu hint session for SurfaceFlinger
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
debug.sf.enable_adpf_cpu_hint=true

View file

@ -25,9 +25,9 @@ $(call inherit-product-if-exists, vendor/google_devices/pantah/proprietary/raven
include device/google/gs201/device-shipping-common.mk include device/google/gs201/device-shipping-common.mk
include device/google/pantah/audio/ravenclaw/audio-tables.mk include device/google/pantah/audio/ravenclaw/audio-tables.mk
include hardware/google/pixel/vibrator/cs40l26/device.mk include hardware/google/pixel/vibrator/cs40l26/device.mk
include device/google/gs101/bluetooth/bluetooth.mk include device/google/gs-common/bcmbt/bluetooth.mk
include device/google/gs-common/touch/lsi/lsi.mk
DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/pantah/device_framework_matrix_product.xml
ifeq ($(filter factory_ravenclaw, $(TARGET_PRODUCT)),) ifeq ($(filter factory_ravenclaw, $(TARGET_PRODUCT)),)
include device/google/gs101/uwb/uwb.mk include device/google/gs101/uwb/uwb.mk
include device/google/pantah/uwb/uwb_calibration.mk include device/google/pantah/uwb/uwb_calibration.mk
@ -94,19 +94,17 @@ PRODUCT_COPY_FILES += \
device/google/pantah/powerhint-ravenclaw.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json device/google/pantah/powerhint-ravenclaw.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
# Bluetooth HAL # Bluetooth HAL
DEVICE_MANIFEST_FILE += \
device/google/pantah/bluetooth/manifest_bluetooth.xml
PRODUCT_SOONG_NAMESPACES += \
vendor/broadcom/bluetooth
PRODUCT_PACKAGES += \
android.hardware.bluetooth@1.1-service.bcmbtlinux \
bt_vendor.conf
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
device/google/pantah/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf device/google/pantah/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-opus persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-opus
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.firmware.selection=BCM.hcd
# default BDADDR for EVB only
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"
# Keymaster HAL # Keymaster HAL
#LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service
@ -138,10 +136,6 @@ PRODUCT_PROPERTY_OVERRIDES += \
# ro.hardware.keystore=software \ # ro.hardware.keystore=software \
# ro.hardware.gatekeeper=software # ro.hardware.gatekeeper=software
# default BDADDR for EVB only
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"
# PowerStats HAL # PowerStats HAL
PRODUCT_SOONG_NAMESPACES += \ PRODUCT_SOONG_NAMESPACES += \
device/google/pantah/powerstats/ravenclaw device/google/pantah/powerstats/ravenclaw
@ -182,9 +176,6 @@ endif
PRODUCT_VENDOR_PROPERTIES += \ PRODUCT_VENDOR_PROPERTIES += \
vendor.zram.size=3g vendor.zram.size=3g
PRODUCT_PRODUCT_PROPERTIES += \
persist.bluetooth.firmware.selection=BCM.hcd
# Device features # Device features
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml

View file

@ -1,10 +0,0 @@
<compatibility-matrix version="1.0" type="framework" level="7">
<hal format="hidl">
<name>hardware.google.bluetooth.ccc</name>
<version>1.1</version>
<interface>
<name>IBluetoothCcc</name>
<instance>default</instance>
</interface>
</hal>
</compatibility-matrix>

View file

@ -9,8 +9,7 @@
modprobe|bcmdhd4389.ko modprobe|bcmdhd4389.ko
modprobe|snd-soc-cs35l41-spi.ko modprobe|snd-soc-cs35l41-spi.ko
modprobe|syna_touch.ko modprobe|syna_touch.ko
modprobe|cl_dsp.ko modprobe|cs40l26-i2c.ko
modprobe|input-cs40l26-i2c.ko
modprobe|snd-soc-cs40l26.ko modprobe|snd-soc-cs40l26.ko
# All device specific modules loaded # All device specific modules loaded

View file

@ -10,8 +10,7 @@ modprobe|bcmdhd4389.ko
modprobe|snd-soc-cs35l41-i2c.ko modprobe|snd-soc-cs35l41-i2c.ko
modprobe|ftm5.ko modprobe|ftm5.ko
modprobe|sec_touch.ko modprobe|sec_touch.ko
modprobe|cl_dsp.ko modprobe|cs40l26-i2c.ko
modprobe|input-cs40l26-i2c.ko
modprobe|snd-soc-cs40l26.ko modprobe|snd-soc-cs40l26.ko
# All device specific modules loaded # All device specific modules loaded

View file

@ -9,8 +9,7 @@
modprobe|bcmdhd4389.ko modprobe|bcmdhd4389.ko
modprobe|snd-soc-cs35l41-spi.ko modprobe|snd-soc-cs35l41-spi.ko
modprobe|focal_touch.ko modprobe|focal_touch.ko
modprobe|cl_dsp.ko modprobe|cs40l26-i2c.ko
modprobe|input-cs40l26-i2c.ko
modprobe|snd-soc-cs40l26.ko modprobe|snd-soc-cs40l26.ko
# All device specific modules loaded # All device specific modules loaded

View file

@ -88,6 +88,7 @@
EnableOnChipStopNotification="2" EnableOnChipStopNotification="2"
PowerMode="3" PowerMode="3"
MinGpsWeekNumber="2216" MinGpsWeekNumber="2216"
OnChipAccMask="50"
/> />
<gll_features <gll_features

View file

@ -88,6 +88,7 @@
EnableOnChipStopNotification="2" EnableOnChipStopNotification="2"
PowerMode="3" PowerMode="3"
MinGpsWeekNumber="2216" MinGpsWeekNumber="2216"
OnChipAccMask="50"
/> />
<gll_features <gll_features

View file

@ -88,6 +88,7 @@
EnableOnChipStopNotification="2" EnableOnChipStopNotification="2"
PowerMode="3" PowerMode="3"
MinGpsWeekNumber="2216" MinGpsWeekNumber="2216"
OnChipAccMask="50"
/> />
<gll_features <gll_features

View file

@ -87,6 +87,7 @@
EnableOnChipStopNotification="0" EnableOnChipStopNotification="0"
PowerMode="3" PowerMode="3"
MinGpsWeekNumber="2216" MinGpsWeekNumber="2216"
OnChipAccMask="50"
/> />
<gll_features <gll_features

View file

@ -87,6 +87,7 @@
EnableOnChipStopNotification="0" EnableOnChipStopNotification="0"
PowerMode="3" PowerMode="3"
MinGpsWeekNumber="2216" MinGpsWeekNumber="2216"
OnChipAccMask="50"
/> />
<gll_features <gll_features

View file

@ -87,6 +87,7 @@
EnableOnChipStopNotification="0" EnableOnChipStopNotification="0"
PowerMode="3" PowerMode="3"
MinGpsWeekNumber="2216" MinGpsWeekNumber="2216"
OnChipAccMask="50"
/> />
<gll_features <gll_features

View file

@ -13,9 +13,21 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# #
# Enable load module in parallel
BOARD_BOOTCONFIG += androidboot.load_modules_parallel=true
# The modules which need to be loaded in sequential
BOARD_KERNEL_CMDLINE += exynos_drm.load_sequential=1
ifdef PHONE_CAR_BOARD_PRODUCT
include device/google_car/$(PHONE_CAR_BOARD_PRODUCT)/BoardConfig.mk
else
TARGET_SCREEN_DENSITY := 420
endif
TARGET_BOARD_INFO_FILE := device/google/pantah/board-info.txt TARGET_BOARD_INFO_FILE := device/google/pantah/board-info.txt
TARGET_BOOTLOADER_BOARD_NAME := panther TARGET_BOOTLOADER_BOARD_NAME := panther
TARGET_SCREEN_DENSITY := 420
BOARD_USES_GENERIC_AUDIO := true BOARD_USES_GENERIC_AUDIO := true
USES_DEVICE_GOOGLE_CLOUDRIPPER := true USES_DEVICE_GOOGLE_CLOUDRIPPER := true
BOARD_KERNEL_CMDLINE += swiotlb=noforce BOARD_KERNEL_CMDLINE += swiotlb=noforce

View file

@ -205,9 +205,6 @@
<!-- 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.335</item>
<!-- the number of the max cached processes in the system. -->
<integer name="config_customizedMaxCachedProcesses">64</integer>
<integer-array name="config_ambientThresholdLevels"> <integer-array name="config_ambientThresholdLevels">
<item>2</item> <item>2</item>
<item>3</item> <item>3</item>
@ -315,4 +312,17 @@
Note: This should be only enabled on devices with high confidence on power measurement. Note: This should be only enabled on devices with high confidence on power measurement.
--> -->
<bool name="config_bg_current_drain_auto_restrict_abusive_apps">true</bool> <bool name="config_bg_current_drain_auto_restrict_abusive_apps">true</bool>
<!-- 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 75.769531 0 C 70.332709 -9.2518493e-18 64.952449 0.00079919532 59.515625 0.05859375 C 54.078801 0.11638831 48.699297 0.28968642 43.320312 1.0410156 C 32.388827 2.5436742 22.384063 6.3571816 14.402344 14.390625 C 6.3627864 22.366274 2.486224 32.36589 0.98242188 43.289062 C 0.23052083 48.663956 0.057838542 54.038015 0 59.470703 L 0 2340.5293 C 0.057838884 2345.962 0.23052038 2351.336 0.98242188 2356.7109 C 2.4862239 2367.6341 6.3627861 2377.6338 14.402344 2385.6094 C 22.384063 2393.6429 32.388834 2397.4563 43.320312 2398.959 C 48.699302 2399.7103 54.078805 2399.8834 59.515625 2399.9414 C 64.952444 2399.9994 70.332714 2400 75.769531 2400 L 1004.2305 2400 C 1009.6673 2400 1015.0476 2399.9994 1020.4844 2399.9414 C 1025.9213 2399.8834 1031.3008 2399.7103 1036.6797 2398.959 C 1047.6113 2397.4563 1057.6159 2393.6429 1065.5977 2385.6094 C 1073.6371 2377.6338 1077.5138 2367.6341 1079.0176 2356.7109 C 1079.7695 2351.336 1079.9422 2345.962 1080 2340.5293 L 1080 59.470703 C 1079.9422 54.038015 1079.7695 48.663956 1079.0176 43.289062 C 1077.5138 32.36589 1073.637 22.366274 1065.5977 14.390625 C 1057.6159 6.3571811 1047.6112 2.5436742 1036.6797 1.0410156 C 1031.3007 0.28968666 1025.9213 0.11639363 1020.4844 0.05859375 C 1015.0476 0.00080386558 1009.6673 0 1004.2305 0 L 75.769531 0 z</string>
</resources> </resources>

View file

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
**
** Copyright 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.
*/
-->
<irq-device-map>
<device name="rtc-alarm0">
<subsystem>Alarm</subsystem>
</device>
<device name="dhdpcie_host_wake">
<subsystem>Wifi</subsystem>
</device>
<device name="cp2ap_wakeup">
<subsystem>Cellular_data</subsystem>
</device>
<device name="MAILBOX_AOCF12APx1100">
<subsystem>Sound_trigger</subsystem>
</device>
<device name="MAILBOX_AOCA322APx100">
<subsystem>Sensor</subsystem>
</device>
</irq-device-map>

View file

@ -49,10 +49,6 @@
<!-- Padding for the lock icon on the keyguard. In pixels - should not scale with display size. --> <!-- Padding for the lock icon on the keyguard. In pixels - should not scale with display size. -->
<dimen name="lock_icon_padding">48px</dimen> <dimen name="lock_icon_padding">48px</dimen>
<!-- Alpha in duration in ms for the auth ripple to become fully vislble.
If set to 0, it is immediately visible, which is desired for devices supporting UDFPS. -->
<integer name="auth_ripple_alpha_in_duration">0</integer>
<!-- Movement should not be more than 1mm --> <!-- Movement should not be more than 1mm -->
<dimen name="udfps_burn_in_offset_y">16px</dimen> <dimen name="udfps_burn_in_offset_y">16px</dimen>
</resources> </resources>

View file

@ -21,4 +21,15 @@
<item>GVU6C</item> <item>GVU6C</item>
<item>G03Z5</item> <item>G03Z5</item>
</string-array> </string-array>
<bool name="tag_intent_app_pref_supported">true</bool>
<!-- NFC Antenna Location API -->
<integer name="device_width">70</integer>
<integer name="device_height">150</integer>
<bool name="device_foldable">false</bool>
<integer-array name="antenna_x">
<item>38</item>
</integer-array>
<integer-array name="antenna_y">
<item>97</item>
</integer-array>
</resources> </resources>

View file

@ -59,6 +59,7 @@
<!-- True if the firmware supports p2p MAC randomization --> <!-- True if the firmware supports p2p MAC randomization -->
<bool name="config_wifi_p2p_mac_randomization_supported">true</bool> <bool name="config_wifi_p2p_mac_randomization_supported">true</bool>
<bool name="config_wifiAllowNonPersistentMacRandomizationOnOpenSsids">true</bool>
<!-- True if the firmware supports ap MAC randomization --> <!-- True if the firmware supports ap MAC randomization -->
<bool name="config_wifi_ap_mac_randomization_supported">true</bool> <bool name="config_wifi_ap_mac_randomization_supported">true</bool>
@ -151,4 +152,17 @@
<!-- Enable WPA2 to WPA3 auto-upgrade offload to capable Driver/Firmware --> <!-- Enable WPA2 to WPA3 auto-upgrade offload to capable Driver/Firmware -->
<bool translatable="false" name="config_wifiSaeUpgradeOffloadEnabled">true</bool> <bool translatable="false" name="config_wifiSaeUpgradeOffloadEnabled">true</bool>
<!-- Boolean indicating whether DTIM multiplier configuration is enabled. DTIM multiplier value
is when the system is in the suspended mode -->
<bool translatable="false" name="config_wifiDtimMultiplierConfigEnabled">true</bool>
<!-- Enable the feature of adjusting link layer stats polling interval based on
device mobility state and client mode RSSI monitoring. -->
<bool translatable="false" name="config_wifiAdjustPollRssiIntervalEnabled">true</bool>
<!-- Boolean indicating whether the framework updates country from scan results when there is
no telephony country code. This is applied to all generic cases and might require the
regulatory approval (for example, FCC pre-approval is required according to "594280 D01
Software Configuration Control v02r01").-->
<bool translatable="false" name ="config_wifiUpdateCountryCodeFromScanResultGeneric">true</bool>
</resources> </resources>

View file

@ -137,6 +137,16 @@
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "CPUDVFSHeadroom",
"Path": "/proc/vendor_sched/dvfs_headroom",
"Values": [
"1280",
"1100"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{ {
"Name": "MIFTargetLoad", "Name": "MIFTargetLoad",
"Path": "/sys/class/devfreq/17000010.devfreq_mif/interactive/target_load", "Path": "/sys/class/devfreq/17000010.devfreq_mif/interactive/target_load",
@ -151,7 +161,7 @@
"Name": "CAMUClampBoost", "Name": "CAMUClampBoost",
"Path": "/proc/vendor_sched/cam_uclamp_min", "Path": "/proc/vendor_sched/cam_uclamp_min",
"Values": [ "Values": [
"612", "765",
"0" "0"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -160,9 +170,9 @@
"Name": "TAUClampBoost", "Name": "TAUClampBoost",
"Path": "/proc/vendor_sched/ta_uclamp_min", "Path": "/proc/vendor_sched/ta_uclamp_min",
"Values": [ "Values": [
"612", "765",
"1", "1",
"63" "79"
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
@ -179,8 +189,8 @@
"Name": "MLUclampBoost", "Name": "MLUclampBoost",
"Path": "/proc/vendor_sched/nnapi_uclamp_min", "Path": "/proc/vendor_sched/nnapi_uclamp_min",
"Values": [ "Values": [
"180", "225",
"650" "813"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
@ -662,7 +672,7 @@
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 5000, "Duration": 5000,
"Value": "612" "Value": "765"
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
@ -717,6 +727,12 @@
"Duration": 3000, "Duration": 3000,
"Value": "0" "Value": "0"
}, },
{
"PowerHint": "CPU_LOAD_RESET",
"Node": "MemFreq",
"Duration": 33,
"Value": "1014000"
},
{ {
"PowerHint": "CAMERA_LAUNCH", "PowerHint": "CAMERA_LAUNCH",
"Node": "MemFreq", "Node": "MemFreq",
@ -763,7 +779,7 @@
"PowerHint": "CAMERA_LAUNCH", "PowerHint": "CAMERA_LAUNCH",
"Node": "CAMUClampBoost", "Node": "CAMUClampBoost",
"Duration": 1000, "Duration": 1000,
"Value": "612" "Value": "765"
}, },
{ {
"PowerHint": "CAMERA_LAUNCH", "PowerHint": "CAMERA_LAUNCH",
@ -1257,6 +1273,12 @@
"Duration": 0, "Duration": 0,
"Value": "1100" "Value": "1100"
}, },
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPUDVFSHeadroom",
"Duration": 0,
"Value": "1100"
},
{ {
"PowerHint": "CAMERA_STREAMING_HIGH", "PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CDPreferHighCap", "Node": "CDPreferHighCap",
@ -1665,13 +1687,13 @@
"PowerHint": "REFRESH_120FPS", "PowerHint": "REFRESH_120FPS",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 0, "Duration": 0,
"Value": "63" "Value": "79"
}, },
{ {
"PowerHint": "REFRESH_60FPS", "PowerHint": "REFRESH_60FPS",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 0, "Duration": 0,
"Value": "63" "Value": "79"
}, },
{ {
"PowerHint": "ADPF_DISABLE_TA_BOOST", "PowerHint": "ADPF_DISABLE_TA_BOOST",
@ -1958,7 +1980,7 @@
"PowerHint": "ML_ACC", "PowerHint": "ML_ACC",
"Node": "MLUclampBoost", "Node": "MLUclampBoost",
"Duration": 2000, "Duration": 2000,
"Value": "650" "Value": "813"
}, },
{ {
"PowerHint": "ML_ACC", "PowerHint": "ML_ACC",
@ -1980,8 +2002,8 @@
"PID_Do": 500.0, "PID_Do": 500.0,
"PID_Du": 0.0, "PID_Du": 0.0,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 185, "UclampMin_Init": 232,
"UclampMin_High": 384, "UclampMin_High": 480,
"UclampMin_Low": 2, "UclampMin_Low": 2,
"SamplingWindow_P": 1, "SamplingWindow_P": 1,
"SamplingWindow_I": 0, "SamplingWindow_I": 0,
@ -2004,8 +2026,8 @@
"PID_Do": 500.0, "PID_Do": 500.0,
"PID_Du": 0.0, "PID_Du": 0.0,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 129, "UclampMin_Init": 162,
"UclampMin_High": 384, "UclampMin_High": 480,
"UclampMin_Low": 2, "UclampMin_Low": 2,
"SamplingWindow_P": 1, "SamplingWindow_P": 1,
"SamplingWindow_I": 0, "SamplingWindow_I": 0,
@ -2028,8 +2050,8 @@
"PID_Do": 500.0, "PID_Do": 500.0,
"PID_Du": 0.0, "PID_Du": 0.0,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 129, "UclampMin_Init": 162,
"UclampMin_High": 384, "UclampMin_High": 480,
"UclampMin_Low": 2, "UclampMin_Low": 2,
"SamplingWindow_P": 1, "SamplingWindow_P": 1,
"SamplingWindow_I": 0, "SamplingWindow_I": 0,
@ -2055,9 +2077,9 @@
"SamplingWindow_I": 1, "SamplingWindow_I": 1,
"SamplingWindow_D": 1, "SamplingWindow_D": 1,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 200, "UclampMin_Init": 250,
"UclampMin_High": 157, "UclampMin_High": 197,
"UclampMin_Low": 157, "UclampMin_Low": 197,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"EarlyBoost_On": false, "EarlyBoost_On": false,
"EarlyBoost_TimeFactor": 0.0, "EarlyBoost_TimeFactor": 0.0,
@ -2079,9 +2101,9 @@
"SamplingWindow_I": 1, "SamplingWindow_I": 1,
"SamplingWindow_D": 1, "SamplingWindow_D": 1,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 200, "UclampMin_Init": 250,
"UclampMin_High": 42, "UclampMin_High": 53,
"UclampMin_Low": 42, "UclampMin_Low": 53,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"EarlyBoost_On": false, "EarlyBoost_On": false,
"EarlyBoost_TimeFactor": 0.0, "EarlyBoost_TimeFactor": 0.0,
@ -2103,7 +2125,7 @@
"SamplingWindow_I": 1, "SamplingWindow_I": 1,
"SamplingWindow_D": 1, "SamplingWindow_D": 1,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 200, "UclampMin_Init": 250,
"UclampMin_High": 0, "UclampMin_High": 0,
"UclampMin_Low": 0, "UclampMin_Low": 0,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,

View file

@ -1,5 +1,18 @@
{ {
"Nodes": [ "Nodes": [
{
"Name": "GPUMinFreq",
"Path": "/sys/devices/platform/28000000.mali/hint_min_freq",
"Values": [
"848000",
"762000",
"572000",
"471000",
"302000",
"202000"
],
"ResetOnInit": true
},
{ {
"Name": "MemFreq", "Name": "MemFreq",
"Path": "/sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/min_freq", "Path": "/sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/min_freq",
@ -114,19 +127,6 @@
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "GPUMinFreq",
"Path": "/sys/devices/platform/28000000.mali/hint_min_freq",
"Values": [
"848000",
"762000",
"572000",
"471000",
"302000",
"202000"
],
"ResetOnInit": true
},
{ {
"Name": "GPUDvfsPeriod", "Name": "GPUDvfsPeriod",
"Path": "/sys/devices/platform/28000000.mali/dvfs_period", "Path": "/sys/devices/platform/28000000.mali/dvfs_period",
@ -155,6 +155,16 @@
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "CPUDVFSHeadroom",
"Path": "/proc/vendor_sched/dvfs_headroom",
"Values": [
"1280",
"1100"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{ {
"Name": "MIFTargetLoad", "Name": "MIFTargetLoad",
"Path": "/sys/class/devfreq/17000010.devfreq_mif/interactive/target_load", "Path": "/sys/class/devfreq/17000010.devfreq_mif/interactive/target_load",
@ -169,7 +179,7 @@
"Name": "CAMUClampBoost", "Name": "CAMUClampBoost",
"Path": "/proc/vendor_sched/cam_uclamp_min", "Path": "/proc/vendor_sched/cam_uclamp_min",
"Values": [ "Values": [
"612", "765",
"0" "0"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -178,7 +188,7 @@
"Name": "TAUClampBoost", "Name": "TAUClampBoost",
"Path": "/proc/vendor_sched/ta_uclamp_min", "Path": "/proc/vendor_sched/ta_uclamp_min",
"Values": [ "Values": [
"612", "765",
"1" "1"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -196,8 +206,8 @@
"Name": "MLUclampBoost", "Name": "MLUclampBoost",
"Path": "/proc/vendor_sched/nnapi_uclamp_min", "Path": "/proc/vendor_sched/nnapi_uclamp_min",
"Values": [ "Values": [
"180", "225",
"650" "813"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
@ -626,6 +636,16 @@
"0,1,2,3,4,5,6,7" "0,1,2,3,4,5,6,7"
], ],
"Type": "Property" "Type": "Property"
},
{
"Name": "Dex2oatGroup",
"Path": "/proc/vendor_sched/dex2oat_ug",
"Values": [
"1",
"0"
],
"DefaultIndex": 0,
"ResetOnInit": true
} }
], ],
"Actions": [ "Actions": [
@ -698,7 +718,7 @@
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 5000, "Duration": 5000,
"Value": "612" "Value": "765"
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
@ -776,6 +796,18 @@
"Duration": 3000, "Duration": 3000,
"Value": "0" "Value": "0"
}, },
{
"PowerHint": "CPU_LOAD_RESET",
"Node": "GPUMinFreq",
"Duration": 50,
"Value": "302000"
},
{
"PowerHint": "CPU_LOAD_RESET",
"Node": "MemFreq",
"Duration": 33,
"Value": "1014000"
},
{ {
"PowerHint": "CAMERA_LAUNCH", "PowerHint": "CAMERA_LAUNCH",
"Node": "MemFreq", "Node": "MemFreq",
@ -822,7 +854,7 @@
"PowerHint": "CAMERA_LAUNCH", "PowerHint": "CAMERA_LAUNCH",
"Node": "CAMUClampBoost", "Node": "CAMUClampBoost",
"Duration": 1000, "Duration": 1000,
"Value": "612" "Value": "765"
}, },
{ {
"PowerHint": "CAMERA_LAUNCH", "PowerHint": "CAMERA_LAUNCH",
@ -1316,6 +1348,12 @@
"Duration": 0, "Duration": 0,
"Value": "1100" "Value": "1100"
}, },
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPUDVFSHeadroom",
"Duration": 0,
"Value": "1100"
},
{ {
"PowerHint": "CAMERA_STREAMING_HIGH", "PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CDPreferHighCap", "Node": "CDPreferHighCap",
@ -1720,6 +1758,78 @@
"Duration": 0, "Duration": 0,
"Value": "1" "Value": "1"
}, },
{
"PowerHint": "LOW_POWER",
"Node": "BigControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "LOW_POWER",
"Node": "MidControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "LOW_POWER",
"Node": "LittleControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "LOW_POWER",
"Node": "G3dControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "LOW_POWER",
"Node": "TpuControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "LOW_POWER",
"Node": "AurControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "LOW_POWER",
"Node": "BigSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "LOW_POWER",
"Node": "MidSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "LOW_POWER",
"Node": "LittleSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "LOW_POWER",
"Node": "G3dSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "LOW_POWER",
"Node": "TpuSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "LOW_POWER",
"Node": "AurSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{ {
"PowerHint": "REFRESH_120FPS", "PowerHint": "REFRESH_120FPS",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
@ -1785,12 +1895,6 @@
"Duration": 0, "Duration": 0,
"Value": "572000" "Value": "572000"
}, },
{
"PowerHint": "ADPF_FIRST_FRAME",
"Node": "GPUMinFreq",
"Duration": 50,
"Value": "302000"
},
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_LIGHT", "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_LIGHT",
"Node": "PMU_POLL", "Node": "PMU_POLL",
@ -1881,6 +1985,12 @@
"Duration": 0, "Duration": 0,
"Value": "0,1,2,3,4,5" "Value": "0,1,2,3,4,5"
}, },
{
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_LIGHT",
"Node": "Dex2oatGroup",
"Duration": 0,
"Value": "0"
},
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_MODERATE", "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_MODERATE",
"Node": "PMU_POLL", "Node": "PMU_POLL",
@ -1971,6 +2081,12 @@
"Duration": 0, "Duration": 0,
"Value": "0,1,2,3" "Value": "0,1,2,3"
}, },
{
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_MODERATE",
"Node": "Dex2oatGroup",
"Duration": 0,
"Value": "0"
},
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_SEVERE", "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_SEVERE",
"Node": "PMU_POLL", "Node": "PMU_POLL",
@ -2061,6 +2177,12 @@
"Duration": 0, "Duration": 0,
"Value": "0,1,2,3" "Value": "0,1,2,3"
}, },
{
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_SEVERE",
"Node": "Dex2oatGroup",
"Duration": 0,
"Value": "0"
},
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_CRITICAL", "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_CRITICAL",
"Node": "PMU_POLL", "Node": "PMU_POLL",
@ -2151,6 +2273,12 @@
"Duration": 0, "Duration": 0,
"Value": "0,1,2,3" "Value": "0,1,2,3"
}, },
{
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_CRITICAL",
"Node": "Dex2oatGroup",
"Duration": 0,
"Value": "0"
},
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_EMERGENCY", "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_EMERGENCY",
"Node": "PMU_POLL", "Node": "PMU_POLL",
@ -2259,6 +2387,12 @@
"Duration": 0, "Duration": 0,
"Value": "0,1,2,3" "Value": "0,1,2,3"
}, },
{
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_EMERGENCY",
"Node": "Dex2oatGroup",
"Duration": 0,
"Value": "0"
},
{ {
"PowerHint": "FACE_UNLOCK_BOOST", "PowerHint": "FACE_UNLOCK_BOOST",
"Node": "CPUBigClusterMaxFreq", "Node": "CPUBigClusterMaxFreq",
@ -2329,7 +2463,7 @@
"PowerHint": "ML_ACC", "PowerHint": "ML_ACC",
"Node": "MLUclampBoost", "Node": "MLUclampBoost",
"Duration": 2000, "Duration": 2000,
"Value": "650" "Value": "813"
}, },
{ {
"PowerHint": "ML_ACC", "PowerHint": "ML_ACC",
@ -2351,8 +2485,8 @@
"PID_Do": 500.0, "PID_Do": 500.0,
"PID_Du": 0.0, "PID_Du": 0.0,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 185, "UclampMin_Init": 232,
"UclampMin_High": 384, "UclampMin_High": 480,
"UclampMin_Low": 2, "UclampMin_Low": 2,
"SamplingWindow_P": 1, "SamplingWindow_P": 1,
"SamplingWindow_I": 0, "SamplingWindow_I": 0,
@ -2375,8 +2509,8 @@
"PID_Do": 500.0, "PID_Do": 500.0,
"PID_Du": 0.0, "PID_Du": 0.0,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 129, "UclampMin_Init": 162,
"UclampMin_High": 384, "UclampMin_High": 480,
"UclampMin_Low": 2, "UclampMin_Low": 2,
"SamplingWindow_P": 1, "SamplingWindow_P": 1,
"SamplingWindow_I": 0, "SamplingWindow_I": 0,
@ -2399,8 +2533,8 @@
"PID_Do": 500.0, "PID_Do": 500.0,
"PID_Du": 0.0, "PID_Du": 0.0,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 129, "UclampMin_Init": 162,
"UclampMin_High": 384, "UclampMin_High": 480,
"UclampMin_Low": 2, "UclampMin_Low": 2,
"SamplingWindow_P": 1, "SamplingWindow_P": 1,
"SamplingWindow_I": 0, "SamplingWindow_I": 0,
@ -2426,9 +2560,9 @@
"SamplingWindow_I": 1, "SamplingWindow_I": 1,
"SamplingWindow_D": 1, "SamplingWindow_D": 1,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 200, "UclampMin_Init": 250,
"UclampMin_High": 157, "UclampMin_High": 197,
"UclampMin_Low": 157, "UclampMin_Low": 197,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"EarlyBoost_On": false, "EarlyBoost_On": false,
"EarlyBoost_TimeFactor": 0.0, "EarlyBoost_TimeFactor": 0.0,
@ -2450,9 +2584,9 @@
"SamplingWindow_I": 1, "SamplingWindow_I": 1,
"SamplingWindow_D": 1, "SamplingWindow_D": 1,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 200, "UclampMin_Init": 250,
"UclampMin_High": 42, "UclampMin_High": 53,
"UclampMin_Low": 42, "UclampMin_Low": 53,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"EarlyBoost_On": false, "EarlyBoost_On": false,
"EarlyBoost_TimeFactor": 0.0, "EarlyBoost_TimeFactor": 0.0,
@ -2474,7 +2608,7 @@
"SamplingWindow_I": 1, "SamplingWindow_I": 1,
"SamplingWindow_D": 1, "SamplingWindow_D": 1,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 200, "UclampMin_Init": 250,
"UclampMin_High": 0, "UclampMin_High": 0,
"UclampMin_Low": 0, "UclampMin_Low": 0,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,

View file

@ -109,6 +109,16 @@
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "CPUDVFSHeadroom",
"Path": "/proc/vendor_sched/dvfs_headroom",
"Values": [
"1280",
"1100"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{ {
"Name": "MIFTargetLoad", "Name": "MIFTargetLoad",
"Path": "/sys/class/devfreq/17000010.devfreq_mif/interactive/target_load", "Path": "/sys/class/devfreq/17000010.devfreq_mif/interactive/target_load",
@ -123,11 +133,11 @@
"Path": "/proc/vendor_sched/ta_uclamp_min", "Path": "/proc/vendor_sched/ta_uclamp_min",
"Values": [ "Values": [
"0", "0",
"553", "692",
"246", "308",
"185", "232",
"123", "154",
"62" "78"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
@ -320,19 +330,19 @@
"PowerHint": "INTERACTION_120", "PowerHint": "INTERACTION_120",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 6000, "Duration": 6000,
"Value": "246" "Value": "308"
}, },
{ {
"PowerHint": "INTERACTION_90", "PowerHint": "INTERACTION_90",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 6000, "Duration": 6000,
"Value": "185" "Value": "232"
}, },
{ {
"PowerHint": "INTERACTION_60", "PowerHint": "INTERACTION_60",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 6000, "Duration": 6000,
"Value": "123" "Value": "154"
}, },
{ {
"PowerHint": "REFRESH_120FPS", "PowerHint": "REFRESH_120FPS",
@ -406,7 +416,7 @@
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 5000, "Duration": 5000,
"Value": "553" "Value": "692"
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
@ -744,6 +754,12 @@
"Duration": 0, "Duration": 0,
"Value": "1100" "Value": "1100"
}, },
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPUDVFSHeadroom",
"Duration": 0,
"Value": "1100"
},
{ {
"PowerHint": "CAMERA_STREAMING_HIGH", "PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPUMidClusterMaxFreq", "Node": "CPUMidClusterMaxFreq",
@ -1006,19 +1022,19 @@
"PowerHint": "REFRESH_120FPS", "PowerHint": "REFRESH_120FPS",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 0, "Duration": 0,
"Value": "185" "Value": "232"
}, },
{ {
"PowerHint": "REFRESH_90FPS", "PowerHint": "REFRESH_90FPS",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 0, "Duration": 0,
"Value": "123" "Value": "154"
}, },
{ {
"PowerHint": "REFRESH_60FPS", "PowerHint": "REFRESH_60FPS",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 0, "Duration": 0,
"Value": "62" "Value": "78"
}, },
{ {
"PowerHint": "DISABLE_TA_BOOST", "PowerHint": "DISABLE_TA_BOOST",
@ -1102,8 +1118,8 @@
"PID_Do": 500.0, "PID_Do": 500.0,
"PID_Du": 0.0, "PID_Du": 0.0,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 185, "UclampMin_Init": 232,
"UclampMin_High": 384, "UclampMin_High": 480,
"UclampMin_Low": 2, "UclampMin_Low": 2,
"SamplingWindow_P": 1, "SamplingWindow_P": 1,
"SamplingWindow_I": 0, "SamplingWindow_I": 0,
@ -1126,8 +1142,8 @@
"PID_Do": 500.0, "PID_Do": 500.0,
"PID_Du": 0.0, "PID_Du": 0.0,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 129, "UclampMin_Init": 162,
"UclampMin_High": 384, "UclampMin_High": 480,
"UclampMin_Low": 2, "UclampMin_Low": 2,
"SamplingWindow_P": 1, "SamplingWindow_P": 1,
"SamplingWindow_I": 0, "SamplingWindow_I": 0,
@ -1150,8 +1166,8 @@
"PID_Do": 500.0, "PID_Do": 500.0,
"PID_Du": 0.0, "PID_Du": 0.0,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 129, "UclampMin_Init": 162,
"UclampMin_High": 384, "UclampMin_High": 480,
"UclampMin_Low": 2, "UclampMin_Low": 2,
"SamplingWindow_P": 1, "SamplingWindow_P": 1,
"SamplingWindow_I": 0, "SamplingWindow_I": 0,
@ -1177,9 +1193,9 @@
"SamplingWindow_I": 1, "SamplingWindow_I": 1,
"SamplingWindow_D": 1, "SamplingWindow_D": 1,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 200, "UclampMin_Init": 250,
"UclampMin_High": 157, "UclampMin_High": 197,
"UclampMin_Low": 157, "UclampMin_Low": 197,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"EarlyBoost_On": false, "EarlyBoost_On": false,
"EarlyBoost_TimeFactor": 0.0, "EarlyBoost_TimeFactor": 0.0,
@ -1201,9 +1217,9 @@
"SamplingWindow_I": 1, "SamplingWindow_I": 1,
"SamplingWindow_D": 1, "SamplingWindow_D": 1,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 200, "UclampMin_Init": 250,
"UclampMin_High": 42, "UclampMin_High": 53,
"UclampMin_Low": 42, "UclampMin_Low": 53,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"EarlyBoost_On": false, "EarlyBoost_On": false,
"EarlyBoost_TimeFactor": 0.0, "EarlyBoost_TimeFactor": 0.0,
@ -1225,7 +1241,7 @@
"SamplingWindow_I": 1, "SamplingWindow_I": 1,
"SamplingWindow_D": 1, "SamplingWindow_D": 1,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 200, "UclampMin_Init": 250,
"UclampMin_High": 0, "UclampMin_High": 0,
"UclampMin_Low": 0, "UclampMin_Low": 0,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,

View file

@ -126,6 +126,16 @@
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "CPUDVFSHeadroom",
"Path": "/proc/vendor_sched/dvfs_headroom",
"Values": [
"1280",
"1100"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{ {
"Name": "MIFTargetLoad", "Name": "MIFTargetLoad",
"Path": "/sys/class/devfreq/17000010.devfreq_mif/interactive/target_load", "Path": "/sys/class/devfreq/17000010.devfreq_mif/interactive/target_load",
@ -140,7 +150,7 @@
"Name": "CAMUClampBoost", "Name": "CAMUClampBoost",
"Path": "/proc/vendor_sched/cam_uclamp_min", "Path": "/proc/vendor_sched/cam_uclamp_min",
"Values": [ "Values": [
"612", "765",
"0" "0"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -149,9 +159,9 @@
"Name": "TAUClampBoost", "Name": "TAUClampBoost",
"Path": "/proc/vendor_sched/ta_uclamp_min", "Path": "/proc/vendor_sched/ta_uclamp_min",
"Values": [ "Values": [
"612", "765",
"1", "1",
"63" "79"
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
@ -168,8 +178,8 @@
"Name": "MLUclampBoost", "Name": "MLUclampBoost",
"Path": "/proc/vendor_sched/nnapi_uclamp_min", "Path": "/proc/vendor_sched/nnapi_uclamp_min",
"Values": [ "Values": [
"180", "225",
"650" "813"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
@ -651,7 +661,7 @@
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 5000, "Duration": 5000,
"Value": "612" "Value": "765"
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
@ -706,6 +716,12 @@
"Duration": 3000, "Duration": 3000,
"Value": "0" "Value": "0"
}, },
{
"PowerHint": "CPU_LOAD_RESET",
"Node": "MemFreq",
"Duration": 33,
"Value": "1014000"
},
{ {
"PowerHint": "CAMERA_LAUNCH", "PowerHint": "CAMERA_LAUNCH",
"Node": "MemFreq", "Node": "MemFreq",
@ -752,7 +768,7 @@
"PowerHint": "CAMERA_LAUNCH", "PowerHint": "CAMERA_LAUNCH",
"Node": "CAMUClampBoost", "Node": "CAMUClampBoost",
"Duration": 1000, "Duration": 1000,
"Value": "612" "Value": "765"
}, },
{ {
"PowerHint": "CAMERA_LAUNCH", "PowerHint": "CAMERA_LAUNCH",
@ -1144,6 +1160,12 @@
"Duration": 0, "Duration": 0,
"Value": "1100" "Value": "1100"
}, },
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPUDVFSHeadroom",
"Duration": 0,
"Value": "1100"
},
{ {
"PowerHint": "CAMERA_STREAMING_HIGH", "PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CDPreferHighCap", "Node": "CDPreferHighCap",
@ -1552,13 +1574,13 @@
"PowerHint": "REFRESH_90FPS", "PowerHint": "REFRESH_90FPS",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 0, "Duration": 0,
"Value": "63" "Value": "79"
}, },
{ {
"PowerHint": "REFRESH_60FPS", "PowerHint": "REFRESH_60FPS",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 0, "Duration": 0,
"Value": "63" "Value": "79"
}, },
{ {
"PowerHint": "ADPF_DISABLE_TA_BOOST", "PowerHint": "ADPF_DISABLE_TA_BOOST",
@ -1845,7 +1867,7 @@
"PowerHint": "ML_ACC", "PowerHint": "ML_ACC",
"Node": "MLUclampBoost", "Node": "MLUclampBoost",
"Duration": 2000, "Duration": 2000,
"Value": "650" "Value": "813"
}, },
{ {
"PowerHint": "ML_ACC", "PowerHint": "ML_ACC",
@ -1867,8 +1889,8 @@
"PID_Do": 500.0, "PID_Do": 500.0,
"PID_Du": 0.0, "PID_Du": 0.0,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 185, "UclampMin_Init": 232,
"UclampMin_High": 384, "UclampMin_High": 480,
"UclampMin_Low": 2, "UclampMin_Low": 2,
"SamplingWindow_P": 1, "SamplingWindow_P": 1,
"SamplingWindow_I": 0, "SamplingWindow_I": 0,
@ -1891,8 +1913,8 @@
"PID_Do": 500.0, "PID_Do": 500.0,
"PID_Du": 0.0, "PID_Du": 0.0,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 129, "UclampMin_Init": 162,
"UclampMin_High": 384, "UclampMin_High": 480,
"UclampMin_Low": 2, "UclampMin_Low": 2,
"SamplingWindow_P": 1, "SamplingWindow_P": 1,
"SamplingWindow_I": 0, "SamplingWindow_I": 0,
@ -1915,8 +1937,8 @@
"PID_Do": 500.0, "PID_Do": 500.0,
"PID_Du": 0.0, "PID_Du": 0.0,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 129, "UclampMin_Init": 162,
"UclampMin_High": 384, "UclampMin_High": 480,
"UclampMin_Low": 2, "UclampMin_Low": 2,
"SamplingWindow_P": 1, "SamplingWindow_P": 1,
"SamplingWindow_I": 0, "SamplingWindow_I": 0,
@ -1942,9 +1964,9 @@
"SamplingWindow_I": 1, "SamplingWindow_I": 1,
"SamplingWindow_D": 1, "SamplingWindow_D": 1,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 200, "UclampMin_Init": 250,
"UclampMin_High": 157, "UclampMin_High": 197,
"UclampMin_Low": 157, "UclampMin_Low": 197,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"EarlyBoost_On": false, "EarlyBoost_On": false,
"EarlyBoost_TimeFactor": 0.0, "EarlyBoost_TimeFactor": 0.0,
@ -1966,9 +1988,9 @@
"SamplingWindow_I": 1, "SamplingWindow_I": 1,
"SamplingWindow_D": 1, "SamplingWindow_D": 1,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 200, "UclampMin_Init": 250,
"UclampMin_High": 42, "UclampMin_High": 53,
"UclampMin_Low": 42, "UclampMin_Low": 53,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"EarlyBoost_On": false, "EarlyBoost_On": false,
"EarlyBoost_TimeFactor": 0.0, "EarlyBoost_TimeFactor": 0.0,
@ -1990,7 +2012,7 @@
"SamplingWindow_I": 1, "SamplingWindow_I": 1,
"SamplingWindow_D": 1, "SamplingWindow_D": 1,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 200, "UclampMin_Init": 250,
"UclampMin_High": 0, "UclampMin_High": 0,
"UclampMin_Low": 0, "UclampMin_Low": 0,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,

View file

@ -1,5 +1,18 @@
{ {
"Nodes": [ "Nodes": [
{
"Name": "GPUMinFreq",
"Path": "/sys/devices/platform/28000000.mali/hint_min_freq",
"Values": [
"848000",
"762000",
"572000",
"471000",
"302000",
"202000"
],
"ResetOnInit": true
},
{ {
"Name": "MemFreq", "Name": "MemFreq",
"Path": "/sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/min_freq", "Path": "/sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/min_freq",
@ -103,19 +116,6 @@
], ],
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "GPUMinFreq",
"Path": "/sys/devices/platform/28000000.mali/hint_min_freq",
"Values": [
"848000",
"762000",
"572000",
"471000",
"302000",
"202000"
],
"ResetOnInit": true
},
{ {
"Name": "ReducePreferIdle", "Name": "ReducePreferIdle",
"Path": "/proc/vendor_sched/reduce_prefer_idle", "Path": "/proc/vendor_sched/reduce_prefer_idle",
@ -135,6 +135,16 @@
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "CPUDVFSHeadroom",
"Path": "/proc/vendor_sched/dvfs_headroom",
"Values": [
"1280",
"1100"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{ {
"Name": "MIFTargetLoad", "Name": "MIFTargetLoad",
"Path": "/sys/class/devfreq/17000010.devfreq_mif/interactive/target_load", "Path": "/sys/class/devfreq/17000010.devfreq_mif/interactive/target_load",
@ -149,7 +159,7 @@
"Name": "CAMUClampBoost", "Name": "CAMUClampBoost",
"Path": "/proc/vendor_sched/cam_uclamp_min", "Path": "/proc/vendor_sched/cam_uclamp_min",
"Values": [ "Values": [
"612", "765",
"0" "0"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -158,7 +168,7 @@
"Name": "TAUClampBoost", "Name": "TAUClampBoost",
"Path": "/proc/vendor_sched/ta_uclamp_min", "Path": "/proc/vendor_sched/ta_uclamp_min",
"Values": [ "Values": [
"612", "765",
"1" "1"
], ],
"ResetOnInit": true "ResetOnInit": true
@ -176,8 +186,8 @@
"Name": "MLUclampBoost", "Name": "MLUclampBoost",
"Path": "/proc/vendor_sched/nnapi_uclamp_min", "Path": "/proc/vendor_sched/nnapi_uclamp_min",
"Values": [ "Values": [
"180", "225",
"650" "813"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
@ -606,6 +616,16 @@
"0,1,2,3,4,5,6,7" "0,1,2,3,4,5,6,7"
], ],
"Type": "Property" "Type": "Property"
},
{
"Name": "Dex2oatGroup",
"Path": "/proc/vendor_sched/dex2oat_ug",
"Values": [
"1",
"0"
],
"DefaultIndex": 0,
"ResetOnInit": true
} }
], ],
"Actions": [ "Actions": [
@ -667,7 +687,7 @@
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 5000, "Duration": 5000,
"Value": "612" "Value": "765"
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
@ -745,6 +765,18 @@
"Duration": 3000, "Duration": 3000,
"Value": "0" "Value": "0"
}, },
{
"PowerHint": "CPU_LOAD_RESET",
"Node": "GPUMinFreq",
"Duration": 50,
"Value": "302000"
},
{
"PowerHint": "CPU_LOAD_RESET",
"Node": "MemFreq",
"Duration": 33,
"Value": "1014000"
},
{ {
"PowerHint": "CAMERA_LAUNCH", "PowerHint": "CAMERA_LAUNCH",
"Node": "MemFreq", "Node": "MemFreq",
@ -791,7 +823,7 @@
"PowerHint": "CAMERA_LAUNCH", "PowerHint": "CAMERA_LAUNCH",
"Node": "CAMUClampBoost", "Node": "CAMUClampBoost",
"Duration": 1000, "Duration": 1000,
"Value": "612" "Value": "765"
}, },
{ {
"PowerHint": "CAMERA_LAUNCH", "PowerHint": "CAMERA_LAUNCH",
@ -1183,6 +1215,12 @@
"Duration": 0, "Duration": 0,
"Value": "1100" "Value": "1100"
}, },
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPUDVFSHeadroom",
"Duration": 0,
"Value": "1100"
},
{ {
"PowerHint": "CAMERA_STREAMING_HIGH", "PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CDPreferHighCap", "Node": "CDPreferHighCap",
@ -1587,6 +1625,78 @@
"Duration": 0, "Duration": 0,
"Value": "1" "Value": "1"
}, },
{
"PowerHint": "LOW_POWER",
"Node": "BigControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "LOW_POWER",
"Node": "MidControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "LOW_POWER",
"Node": "LittleControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "LOW_POWER",
"Node": "G3dControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "LOW_POWER",
"Node": "TpuControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "LOW_POWER",
"Node": "AurControlTempSet",
"Duration": 0,
"Value": "80000"
},
{
"PowerHint": "LOW_POWER",
"Node": "BigSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "LOW_POWER",
"Node": "MidSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "LOW_POWER",
"Node": "LittleSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "LOW_POWER",
"Node": "G3dSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "LOW_POWER",
"Node": "TpuSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{
"PowerHint": "LOW_POWER",
"Node": "AurSwitchOnTempSet",
"Duration": 0,
"Value": "60000"
},
{ {
"PowerHint": "REFRESH_90FPS", "PowerHint": "REFRESH_90FPS",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
@ -1652,12 +1762,6 @@
"Duration": 0, "Duration": 0,
"Value": "572000" "Value": "572000"
}, },
{
"PowerHint": "ADPF_FIRST_FRAME",
"Node": "GPUMinFreq",
"Duration": 50,
"Value": "302000"
},
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_LIGHT", "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_LIGHT",
"Node": "PMU_POLL", "Node": "PMU_POLL",
@ -1748,6 +1852,12 @@
"Duration": 0, "Duration": 0,
"Value": "0,1,2,3,4,5" "Value": "0,1,2,3,4,5"
}, },
{
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_LIGHT",
"Node": "Dex2oatGroup",
"Duration": 0,
"Value": "0"
},
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_MODERATE", "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_MODERATE",
"Node": "PMU_POLL", "Node": "PMU_POLL",
@ -1838,6 +1948,12 @@
"Duration": 0, "Duration": 0,
"Value": "0,1,2,3" "Value": "0,1,2,3"
}, },
{
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_MODERATE",
"Node": "Dex2oatGroup",
"Duration": 0,
"Value": "0"
},
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_SEVERE", "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_SEVERE",
"Node": "PMU_POLL", "Node": "PMU_POLL",
@ -1928,6 +2044,12 @@
"Duration": 0, "Duration": 0,
"Value": "0,1,2,3" "Value": "0,1,2,3"
}, },
{
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_SEVERE",
"Node": "Dex2oatGroup",
"Duration": 0,
"Value": "0"
},
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_CRITICAL", "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_CRITICAL",
"Node": "PMU_POLL", "Node": "PMU_POLL",
@ -2018,6 +2140,12 @@
"Duration": 0, "Duration": 0,
"Value": "0,1,2,3" "Value": "0,1,2,3"
}, },
{
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_CRITICAL",
"Node": "Dex2oatGroup",
"Duration": 0,
"Value": "0"
},
{ {
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_EMERGENCY", "PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_EMERGENCY",
"Node": "PMU_POLL", "Node": "PMU_POLL",
@ -2126,6 +2254,12 @@
"Duration": 0, "Duration": 0,
"Value": "0,1,2,3" "Value": "0,1,2,3"
}, },
{
"PowerHint": "THERMAL_VIRTUAL-SKIN-HINT_EMERGENCY",
"Node": "Dex2oatGroup",
"Duration": 0,
"Value": "0"
},
{ {
"PowerHint": "FACE_UNLOCK_BOOST", "PowerHint": "FACE_UNLOCK_BOOST",
"Node": "CPUBigClusterMaxFreq", "Node": "CPUBigClusterMaxFreq",
@ -2196,7 +2330,7 @@
"PowerHint": "ML_ACC", "PowerHint": "ML_ACC",
"Node": "MLUclampBoost", "Node": "MLUclampBoost",
"Duration": 2000, "Duration": 2000,
"Value": "650" "Value": "813"
}, },
{ {
"PowerHint": "ML_ACC", "PowerHint": "ML_ACC",
@ -2218,8 +2352,8 @@
"PID_Do": 500.0, "PID_Do": 500.0,
"PID_Du": 0.0, "PID_Du": 0.0,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 185, "UclampMin_Init": 232,
"UclampMin_High": 384, "UclampMin_High": 480,
"UclampMin_Low": 2, "UclampMin_Low": 2,
"SamplingWindow_P": 1, "SamplingWindow_P": 1,
"SamplingWindow_I": 0, "SamplingWindow_I": 0,
@ -2242,8 +2376,8 @@
"PID_Do": 500.0, "PID_Do": 500.0,
"PID_Du": 0.0, "PID_Du": 0.0,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 129, "UclampMin_Init": 162,
"UclampMin_High": 384, "UclampMin_High": 480,
"UclampMin_Low": 2, "UclampMin_Low": 2,
"SamplingWindow_P": 1, "SamplingWindow_P": 1,
"SamplingWindow_I": 0, "SamplingWindow_I": 0,
@ -2266,8 +2400,8 @@
"PID_Do": 500.0, "PID_Do": 500.0,
"PID_Du": 0.0, "PID_Du": 0.0,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 129, "UclampMin_Init": 162,
"UclampMin_High": 384, "UclampMin_High": 480,
"UclampMin_Low": 2, "UclampMin_Low": 2,
"SamplingWindow_P": 1, "SamplingWindow_P": 1,
"SamplingWindow_I": 0, "SamplingWindow_I": 0,
@ -2293,9 +2427,9 @@
"SamplingWindow_I": 1, "SamplingWindow_I": 1,
"SamplingWindow_D": 1, "SamplingWindow_D": 1,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 200, "UclampMin_Init": 250,
"UclampMin_High": 157, "UclampMin_High": 197,
"UclampMin_Low": 157, "UclampMin_Low": 197,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"EarlyBoost_On": false, "EarlyBoost_On": false,
"EarlyBoost_TimeFactor": 0.0, "EarlyBoost_TimeFactor": 0.0,
@ -2317,9 +2451,9 @@
"SamplingWindow_I": 1, "SamplingWindow_I": 1,
"SamplingWindow_D": 1, "SamplingWindow_D": 1,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 200, "UclampMin_Init": 250,
"UclampMin_High": 42, "UclampMin_High": 53,
"UclampMin_Low": 42, "UclampMin_Low": 53,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"EarlyBoost_On": false, "EarlyBoost_On": false,
"EarlyBoost_TimeFactor": 0.0, "EarlyBoost_TimeFactor": 0.0,
@ -2341,7 +2475,7 @@
"SamplingWindow_I": 1, "SamplingWindow_I": 1,
"SamplingWindow_D": 1, "SamplingWindow_D": 1,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 200, "UclampMin_Init": 250,
"UclampMin_High": 0, "UclampMin_High": 0,
"UclampMin_Low": 0, "UclampMin_Low": 0,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,

View file

@ -109,6 +109,16 @@
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
}, },
{
"Name": "CPUDVFSHeadroom",
"Path": "/proc/vendor_sched/dvfs_headroom",
"Values": [
"1280",
"1100"
],
"DefaultIndex": 0,
"ResetOnInit": true
},
{ {
"Name": "MIFTargetLoad", "Name": "MIFTargetLoad",
"Path": "/sys/class/devfreq/17000010.devfreq_mif/interactive/target_load", "Path": "/sys/class/devfreq/17000010.devfreq_mif/interactive/target_load",
@ -123,11 +133,11 @@
"Path": "/proc/vendor_sched/ta_uclamp_min", "Path": "/proc/vendor_sched/ta_uclamp_min",
"Values": [ "Values": [
"0", "0",
"553", "692",
"246", "308",
"185", "232",
"123", "154",
"62" "78"
], ],
"DefaultIndex": 0, "DefaultIndex": 0,
"ResetOnInit": true "ResetOnInit": true
@ -320,19 +330,19 @@
"PowerHint": "INTERACTION_120", "PowerHint": "INTERACTION_120",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 6000, "Duration": 6000,
"Value": "246" "Value": "308"
}, },
{ {
"PowerHint": "INTERACTION_90", "PowerHint": "INTERACTION_90",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 6000, "Duration": 6000,
"Value": "185" "Value": "232"
}, },
{ {
"PowerHint": "INTERACTION_60", "PowerHint": "INTERACTION_60",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 6000, "Duration": 6000,
"Value": "123" "Value": "154"
}, },
{ {
"PowerHint": "REFRESH_120FPS", "PowerHint": "REFRESH_120FPS",
@ -406,7 +416,7 @@
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 5000, "Duration": 5000,
"Value": "553" "Value": "692"
}, },
{ {
"PowerHint": "LAUNCH", "PowerHint": "LAUNCH",
@ -744,6 +754,12 @@
"Duration": 0, "Duration": 0,
"Value": "1100" "Value": "1100"
}, },
{
"PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPUDVFSHeadroom",
"Duration": 0,
"Value": "1100"
},
{ {
"PowerHint": "CAMERA_STREAMING_HIGH", "PowerHint": "CAMERA_STREAMING_HIGH",
"Node": "CPUMidClusterMaxFreq", "Node": "CPUMidClusterMaxFreq",
@ -1006,19 +1022,19 @@
"PowerHint": "REFRESH_120FPS", "PowerHint": "REFRESH_120FPS",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 0, "Duration": 0,
"Value": "185" "Value": "232"
}, },
{ {
"PowerHint": "REFRESH_90FPS", "PowerHint": "REFRESH_90FPS",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 0, "Duration": 0,
"Value": "123" "Value": "154"
}, },
{ {
"PowerHint": "REFRESH_60FPS", "PowerHint": "REFRESH_60FPS",
"Node": "TAUClampBoost", "Node": "TAUClampBoost",
"Duration": 0, "Duration": 0,
"Value": "62" "Value": "78"
}, },
{ {
"PowerHint": "DISABLE_TA_BOOST", "PowerHint": "DISABLE_TA_BOOST",
@ -1102,8 +1118,8 @@
"PID_Do": 500.0, "PID_Do": 500.0,
"PID_Du": 0.0, "PID_Du": 0.0,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 185, "UclampMin_Init": 232,
"UclampMin_High": 384, "UclampMin_High": 480,
"UclampMin_Low": 2, "UclampMin_Low": 2,
"SamplingWindow_P": 1, "SamplingWindow_P": 1,
"SamplingWindow_I": 0, "SamplingWindow_I": 0,
@ -1126,8 +1142,8 @@
"PID_Do": 500.0, "PID_Do": 500.0,
"PID_Du": 0.0, "PID_Du": 0.0,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 129, "UclampMin_Init": 162,
"UclampMin_High": 384, "UclampMin_High": 480,
"UclampMin_Low": 2, "UclampMin_Low": 2,
"SamplingWindow_P": 1, "SamplingWindow_P": 1,
"SamplingWindow_I": 0, "SamplingWindow_I": 0,
@ -1150,8 +1166,8 @@
"PID_Do": 500.0, "PID_Do": 500.0,
"PID_Du": 0.0, "PID_Du": 0.0,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 129, "UclampMin_Init": 162,
"UclampMin_High": 384, "UclampMin_High": 480,
"UclampMin_Low": 2, "UclampMin_Low": 2,
"SamplingWindow_P": 1, "SamplingWindow_P": 1,
"SamplingWindow_I": 0, "SamplingWindow_I": 0,
@ -1177,9 +1193,9 @@
"SamplingWindow_I": 1, "SamplingWindow_I": 1,
"SamplingWindow_D": 1, "SamplingWindow_D": 1,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 200, "UclampMin_Init": 250,
"UclampMin_High": 157, "UclampMin_High": 197,
"UclampMin_Low": 157, "UclampMin_Low": 197,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"EarlyBoost_On": false, "EarlyBoost_On": false,
"EarlyBoost_TimeFactor": 0.0, "EarlyBoost_TimeFactor": 0.0,
@ -1201,9 +1217,9 @@
"SamplingWindow_I": 1, "SamplingWindow_I": 1,
"SamplingWindow_D": 1, "SamplingWindow_D": 1,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 200, "UclampMin_Init": 250,
"UclampMin_High": 42, "UclampMin_High": 53,
"UclampMin_Low": 42, "UclampMin_Low": 53,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,
"EarlyBoost_On": false, "EarlyBoost_On": false,
"EarlyBoost_TimeFactor": 0.0, "EarlyBoost_TimeFactor": 0.0,
@ -1225,7 +1241,7 @@
"SamplingWindow_I": 1, "SamplingWindow_I": 1,
"SamplingWindow_D": 1, "SamplingWindow_D": 1,
"UclampMin_On": true, "UclampMin_On": true,
"UclampMin_Init": 200, "UclampMin_Init": 250,
"UclampMin_High": 0, "UclampMin_High": 0,
"UclampMin_Low": 0, "UclampMin_Low": 0,
"ReportingRateLimitNs": 1, "ReportingRateLimitNs": 1,

View file

@ -11,7 +11,7 @@
system_ext/lib64/libmediaadaptor.so \ system_ext/lib64/libmediaadaptor.so \
system_ext/priv-app/ShannonRcs/ShannonRcs.apk \ system_ext/priv-app/ShannonRcs/ShannonRcs.apk \
system_ext/priv-app/ShannonIms/ShannonIms.apk \ system_ext/priv-app/ShannonIms/ShannonIms.apk \
system_ext/priv-app/QualifiedNetworksService/QualifiedNetworksService.apk \ system_ext/priv-app/PixelQualifiedNetworksService/PixelQualifiedNetworksService.apk \
system_ext/priv-app/UwbVendorService/UwbVendorService.apk \ system_ext/priv-app/UwbVendorService/UwbVendorService.apk \
" "
;; ;;

View file

@ -24,7 +24,7 @@ endif
ifneq ($(filter cheetah,$(TARGET_DEVICE)),) ifneq ($(filter cheetah,$(TARGET_DEVICE)),)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_MODULE := QualifiedNetworksService LOCAL_MODULE := PixelQualifiedNetworksService
LOCAL_MODULE_TAGS := optional LOCAL_MODULE_TAGS := optional
LOCAL_BUILT_MODULE_STEM := package.apk LOCAL_BUILT_MODULE_STEM := package.apk
LOCAL_SYSTEM_EXT_MODULE := true LOCAL_SYSTEM_EXT_MODULE := true

View file

@ -17,7 +17,7 @@ PRODUCT_SOONG_NAMESPACES += \
# AOSP packages required by the blobs # AOSP packages required by the blobs
PRODUCT_PACKAGES := \ PRODUCT_PACKAGES := \
QualifiedNetworksService \ PixelQualifiedNetworksService \
ShannonIms \ ShannonIms \
ShannonRcs \ ShannonRcs \
UwbVendorService \ UwbVendorService \

View file

@ -10,7 +10,7 @@
system_ext/lib64/libmediaadaptor.so \ system_ext/lib64/libmediaadaptor.so \
system_ext/priv-app/ShannonRcs/ShannonRcs.apk \ system_ext/priv-app/ShannonRcs/ShannonRcs.apk \
system_ext/priv-app/ShannonIms/ShannonIms.apk \ system_ext/priv-app/ShannonIms/ShannonIms.apk \
system_ext/priv-app/QualifiedNetworksService/QualifiedNetworksService.apk \ system_ext/priv-app/PixelQualifiedNetworksService/PixelQualifiedNetworksService.apk \
" "
;; ;;

View file

@ -24,7 +24,7 @@ endif
ifneq ($(filter panther,$(TARGET_DEVICE)),) ifneq ($(filter panther,$(TARGET_DEVICE)),)
include $(CLEAR_VARS) include $(CLEAR_VARS)
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX) LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_MODULE := QualifiedNetworksService LOCAL_MODULE := PixelQualifiedNetworksService
LOCAL_MODULE_TAGS := optional LOCAL_MODULE_TAGS := optional
LOCAL_BUILT_MODULE_STEM := package.apk LOCAL_BUILT_MODULE_STEM := package.apk
LOCAL_SYSTEM_EXT_MODULE := true LOCAL_SYSTEM_EXT_MODULE := true

View file

@ -17,7 +17,7 @@ PRODUCT_SOONG_NAMESPACES += \
# AOSP packages required by the blobs # AOSP packages required by the blobs
PRODUCT_PACKAGES := \ PRODUCT_PACKAGES := \
QualifiedNetworksService \ PixelQualifiedNetworksService \
ShannonIms \ ShannonIms \
ShannonRcs \ ShannonRcs \

View file

@ -1,30 +0,0 @@
# Copyright (C) 2009 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.
LOCAL_PATH := $(call my-dir)
# HAL module implemenation stored in
# hw/<SENSORS_HARDWARE_MODULE_ID>.<ro.hardware>.so
include $(CLEAR_VARS)
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_SHARED_LIBRARIES := liblog libcutils libhardware
LOCAL_SRC_FILES := sensors_dummy.c
LOCAL_MODULE := sensors.cloudripper
LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
LOCAL_LICENSE_CONDITIONS := notice
LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE
LOCAL_PROPRIETARY_MODULE := true
include $(BUILD_SHARED_LIBRARY)

View file

@ -1,409 +0,0 @@
/*
* Copyright (C) 2009 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.
*/
/* this implements a sensors hardware library for the Android emulator.
* the following code should be built as a shared library that will be
* placed into /system/lib/hw/sensors.goldfish.so
*
* it will be loaded by the code in hardware/libhardware/hardware.c
* which is itself called from com_android_server_SensorService.cpp
*/
#define SENSORS_SERVICE_NAME "sensors"
#define LOG_TAG "Dummy_Sensors"
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <log/log.h>
#include <cutils/sockets.h>
#include <hardware/sensors.h>
#include <pthread.h>
#if 0
#define D(...) ALOGD(__VA_ARGS__)
#else
#define D(...) ((void)0)
#endif
#define E(...) ALOGE(__VA_ARGS__)
/** SENSOR IDS AND NAMES
**/
#define MAX_NUM_SENSORS 8
#define SUPPORTED_SENSORS ((1<<MAX_NUM_SENSORS)-1)
#define ID_BASE SENSORS_HANDLE_BASE
#define ID_ACCELERATION (ID_BASE+0)
#define ID_MAGNETIC_FIELD (ID_BASE+1)
#define ID_ORIENTATION (ID_BASE+2)
#define ID_TEMPERATURE (ID_BASE+3)
#define ID_PROXIMITY (ID_BASE+4)
#define ID_LIGHT (ID_BASE+5)
#define ID_PRESSURE (ID_BASE+6)
#define ID_HUMIDITY (ID_BASE+7)
#define SENSORS_ACCELERATION (1 << ID_ACCELERATION)
#define SENSORS_MAGNETIC_FIELD (1 << ID_MAGNETIC_FIELD)
#define SENSORS_ORIENTATION (1 << ID_ORIENTATION)
#define SENSORS_TEMPERATURE (1 << ID_TEMPERATURE)
#define SENSORS_PROXIMITY (1 << ID_PROXIMITY)
#define SENSORS_LIGHT (1 << ID_LIGHT)
#define SENSORS_PRESSURE (1 << ID_PRESSURE)
#define SENSORS_HUMIDITY (1 << ID_HUMIDITY)
#define ID_CHECK(x) ((unsigned)((x) - ID_BASE) < MAX_NUM_SENSORS)
#define SENSORS_LIST \
SENSOR_(ACCELERATION,"acceleration") \
SENSOR_(MAGNETIC_FIELD,"magnetic-field") \
SENSOR_(ORIENTATION,"orientation") \
SENSOR_(TEMPERATURE,"temperature") \
SENSOR_(PROXIMITY,"proximity") \
SENSOR_(LIGHT, "light") \
SENSOR_(PRESSURE, "pressure") \
SENSOR_(HUMIDITY, "humidity")
static const struct {
const char* name;
int id; } _sensorIds[MAX_NUM_SENSORS] =
{
#define SENSOR_(x,y) { y, ID_##x },
SENSORS_LIST
#undef SENSOR_
};
static const char*
_sensorIdToName( int id )
{
int nn;
for (nn = 0; nn < MAX_NUM_SENSORS; nn++)
if (id == _sensorIds[nn].id)
return _sensorIds[nn].name;
return "<UNKNOWN>";
}
static int
_sensorIdFromName( const char* name )
{
int nn;
if (name == NULL)
return -1;
for (nn = 0; nn < MAX_NUM_SENSORS; nn++)
if (!strcmp(name, _sensorIds[nn].name))
return _sensorIds[nn].id;
return -1;
}
/* return the current time in nanoseconds */
static int64_t now_ns(void) {
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
return (int64_t)ts.tv_sec * 1000000000 + ts.tv_nsec;
}
/** SENSORS POLL DEVICE
**
** This one is used to read sensor data from the hardware.
** We implement this by simply reading the data from the
** emulator through the QEMUD channel.
**/
typedef struct SensorDevice {
struct sensors_poll_device_1 device;
sensors_event_t sensors[MAX_NUM_SENSORS];
uint32_t pendingSensors;
int64_t timeStart;
int64_t timeOffset;
uint32_t active_sensors;
int fd;
pthread_mutex_t lock;
} SensorDevice;
/* Grab the file descriptor to the emulator's sensors service pipe.
* This function returns a file descriptor on success, or -errno on
* failure, and assumes the SensorDevice instance's lock is held.
*
* This is needed because set_delay(), poll() and activate() can be called
* from different threads, and poll() is blocking.
*
* 1) On a first thread, de-activate() all sensors first, then call poll(),
* which results in the thread blocking.
*
* 2) On a second thread, slightly later, call set_delay() then activate()
* to enable the acceleration sensor.
*
* The system expects this to unblock the first thread which will receive
* new sensor events after the activate() call in 2).
*
* This cannot work if both threads don't use the same connection.
*
* TODO(digit): This protocol is brittle, implement another control channel
* for set_delay()/activate()/batch() when supporting HAL 1.3
*/
static int sensor_device_get_fd_locked(SensorDevice* dev) {
/* Create connection to service on first call */
if (dev->fd < 0) {
int ret = -errno;
E("%s: Could not open connection to service: %s", __FUNCTION__,
strerror(-ret));
return ret;
}
return dev->fd;
}
/* Pick up one pending sensor event. On success, this returns the sensor
* id, and sets |*event| accordingly. On failure, i.e. if there are no
* pending events, return -EINVAL.
*
* Note: The device's lock must be acquired.
*/
static int sensor_device_pick_pending_event_locked(SensorDevice* d,
sensors_event_t* event)
{
uint32_t mask = SUPPORTED_SENSORS & d->pendingSensors;
if (mask) {
uint32_t i = 31 - __builtin_clz(mask);
pthread_mutex_lock(&d->lock);
d->pendingSensors &= ~(1U << i);
*event = d->sensors[i];
event->sensor = i;
event->version = sizeof(*event);
pthread_mutex_unlock(&d->lock);
D("%s: %d [%f, %f, %f]", __FUNCTION__,
i,
event->data[0],
event->data[1],
event->data[2]);
return i;
}
E("No sensor to return!!! pendingSensors=0x%08x", d->pendingSensors);
// we may end-up in a busy loop, slow things down, just in case.
usleep(1000);
return -EINVAL;
}
static int sensor_device_close(struct hw_device_t* dev0)
{
SensorDevice* dev = (void*)dev0;
// Assume that there are no other threads blocked on poll()
if (dev->fd >= 0) {
close(dev->fd);
dev->fd = -1;
}
pthread_mutex_destroy(&dev->lock);
free(dev);
return 0;
}
/* Return an array of sensor data. This function blocks until there is sensor
* related events to report. On success, it will write the events into the
* |data| array, which contains |count| items. The function returns the number
* of events written into the array, which shall never be greater than |count|.
* On error, return -errno code.
*
* Note that according to the sensor HAL [1], it shall never return 0!
*
* [1] http://source.android.com/devices/sensors/hal-interface.html
*/
static int sensor_device_poll(struct sensors_poll_device_t *dev0,
sensors_event_t* data, int count)
{
return -EIO;
}
static int sensor_device_activate(struct sensors_poll_device_t *dev0,
int handle,
int enabled)
{
SensorDevice* dev = (void*)dev0;
D("%s: handle=%s (%d) enabled=%d", __FUNCTION__,
_sensorIdToName(handle), handle, enabled);
/* Sanity check */
if (!ID_CHECK(handle)) {
E("%s: bad handle ID", __FUNCTION__);
return -EINVAL;
}
/* Exit early if sensor is already enabled/disabled. */
uint32_t mask = (1U << handle);
uint32_t sensors = enabled ? mask : 0;
pthread_mutex_lock(&dev->lock);
uint32_t active = dev->active_sensors;
uint32_t new_sensors = (active & ~mask) | (sensors & mask);
uint32_t changed = active ^ new_sensors;
if (changed)
dev->active_sensors = new_sensors;
pthread_mutex_unlock(&dev->lock);
return 0;
}
static int sensor_device_default_flush(
struct sensors_poll_device_1* dev0,
int handle) {
SensorDevice* dev = (void*)dev0;
D("%s: handle=%s (%d)", __FUNCTION__,
_sensorIdToName(handle), handle);
/* Sanity check */
if (!ID_CHECK(handle)) {
E("%s: bad handle ID", __FUNCTION__);
return -EINVAL;
}
pthread_mutex_lock(&dev->lock);
dev->sensors[handle].version = META_DATA_VERSION;
dev->sensors[handle].type = SENSOR_TYPE_META_DATA;
dev->sensors[handle].sensor = 0;
dev->sensors[handle].timestamp = 0;
dev->sensors[handle].meta_data.what = META_DATA_FLUSH_COMPLETE;
dev->pendingSensors |= (1U << handle);
pthread_mutex_unlock(&dev->lock);
return 0;
}
static int sensor_device_set_delay(struct sensors_poll_device_t *dev0,
int handle __unused,
int64_t ns)
{
return 0;
}
static int sensor_device_default_batch(
struct sensors_poll_device_1* dev,
int sensor_handle,
int flags,
int64_t sampling_period_ns,
int64_t max_report_latency_ns) {
return sensor_device_set_delay(dev, sensor_handle, sampling_period_ns);
}
/** MODULE REGISTRATION SUPPORT
**
** This is required so that hardware/libhardware/hardware.c
** will dlopen() this library appropriately.
**/
/*
* the following is the list of all supported sensors.
* this table is used to build sSensorList declared below
* according to which hardware sensors are reported as
* available from the emulator (see get_sensors_list below)
*
* note: numerical values for maxRange/resolution/power for
* all sensors but light, pressure and humidity were
* taken from the reference AK8976A implementation
*/
static const struct sensor_t sSensorListInit[] = {
{ .name = "Accelerometer",
.vendor = "The Android Open Source Project",
.version = 1,
.handle = ID_ACCELERATION,
.type = SENSOR_TYPE_ACCELEROMETER,
.maxRange = 2.8f,
.resolution = 1.0f/4032.0f,
.power = 3.0f,
.minDelay = 10000,
.maxDelay = 60 * 1000 * 1000,
.fifoReservedEventCount = 0,
.fifoMaxEventCount = 0,
.stringType = 0,
.requiredPermission = 0,
.flags = SENSOR_FLAG_CONTINUOUS_MODE,
.reserved = {}
},
};
static struct sensor_t sSensorList[1];
static int sensors__get_sensors_list(struct sensors_module_t* module __unused,
struct sensor_t const** list)
{
*list = sSensorList;
return 0;
}
static int
open_sensors(const struct hw_module_t* module,
const char* name,
struct hw_device_t* *device)
{
int status = -EINVAL;
D("%s: name=%s", __FUNCTION__, name);
if (!strcmp(name, SENSORS_HARDWARE_POLL)) {
SensorDevice *dev = malloc(sizeof(*dev));
memset(dev, 0, sizeof(*dev));
dev->device.common.tag = HARDWARE_DEVICE_TAG;
dev->device.common.version = SENSORS_DEVICE_API_VERSION_1_3;
dev->device.common.module = (struct hw_module_t*) module;
dev->device.common.close = sensor_device_close;
dev->device.poll = sensor_device_poll;
dev->device.activate = sensor_device_activate;
dev->device.setDelay = sensor_device_set_delay;
// Version 1.3-specific functions
dev->device.batch = sensor_device_default_batch;
dev->device.flush = sensor_device_default_flush;
dev->fd = -1;
pthread_mutex_init(&dev->lock, NULL);
*device = &dev->device.common;
status = 0;
}
return status;
}
static struct hw_module_methods_t sensors_module_methods = {
.open = open_sensors
};
struct sensors_module_t HAL_MODULE_INFO_SYM = {
.common = {
.tag = HARDWARE_MODULE_TAG,
.version_major = 1,
.version_minor = 0,
.id = SENSORS_HARDWARE_MODULE_ID,
.name = "Dummy SENSORS Module",
.author = "The Android Open Source Project",
.methods = &sensors_module_methods,
},
.get_sensors_list = sensors__get_sensors_list
};

View file

@ -161,22 +161,21 @@
"Formula":"MAXIMUM", "Formula":"MAXIMUM",
"Combination":["VIRTUAL-GNSS-DISP", "VIRTUAL-USB2-QUIET", "VIRTUAL-QUIET-USB2", "VIRTUAL-NEUTRAL-QUIET"], "Combination":["VIRTUAL-GNSS-DISP", "VIRTUAL-USB2-QUIET", "VIRTUAL-QUIET-USB2", "VIRTUAL-NEUTRAL-QUIET"],
"Coefficient":[1.0, 1.0, 1.0, 1.0], "Coefficient":[1.0, 1.0, 1.0, 1.0],
"HotThreshold":["NAN", 37.0, 43.0, 45.0, 46.5, 52.0, 55.0], "HotThreshold":["NAN", 37.0, 39.0, 41.0, 46.5, 52.0, 55.0],
"HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.4, 1.9, 1.9], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.4, 1.9, 1.9],
"Multiplier":0.001, "Multiplier":0.001,
"PollingDelay":300000, "PollingDelay":300000,
"PassiveDelay":7000, "PassiveDelay":7000,
"PIDInfo": { "PIDInfo": {
"K_Po":["NAN", "NAN", 200, 200, "NAN", "NAN", "NAN"], "K_Po":["NAN", "NAN", "NAN", 400, "NAN", "NAN", "NAN"],
"K_Pu":["NAN", "NAN", 200, 200, "NAN", "NAN", "NAN"], "K_Pu":["NAN", "NAN", "NAN", 400, "NAN", "NAN", "NAN"],
"K_I":["NAN", "NAN", 0, 5, "NAN", "NAN", "NAN"], "K_I":["NAN", "NAN", "NAN", 5, "NAN", "NAN", "NAN"],
"K_D":["NAN", "NAN", 0, 0, "NAN", "NAN", "NAN"], "K_D":["NAN", "NAN", "NAN", 0, "NAN", "NAN", "NAN"],
"I_Max":["NAN", "NAN", 0, 300, "NAN", "NAN", "NAN"], "I_Max":["NAN", "NAN", "NAN", 300, "NAN", "NAN", "NAN"],
"S_Power":["NAN", "NAN", 1200, 800, "NAN", "NAN", "NAN"], "S_Power":["NAN", "NAN", "NAN", 800, "NAN", "NAN", "NAN"],
"MinAllocPower":["NAN", "NAN", 1200, 200, "NAN", "NAN", "NAN"], "MinAllocPower":["NAN", "NAN", "NAN", 800, "NAN", "NAN", "NAN"],
"MaxAllocPower":["NAN", "NAN", 2400, 1600, "NAN", "NAN", "NAN"], "MaxAllocPower":["NAN", "NAN", "NAN", 10000, "NAN", "NAN", "NAN"],
"I_Cutoff":["NAN", "NAN", 0, 2, "NAN", "NAN", "NAN"], "I_Cutoff":["NAN", "NAN", "NAN", 2, "NAN", "NAN", "NAN"]
"TranCycle": 5
}, },
"BindedCdevInfo": [ "BindedCdevInfo": [
{ {
@ -209,7 +208,7 @@
] ]
}, },
{ {
"Name":"VIRTUAL-SKIN-GPU", "Name":"VIRTUAL-SKIN-CPU-GPU",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"Hidden":true, "Hidden":true,
"VirtualSensor":true, "VirtualSensor":true,
@ -223,18 +222,44 @@
"PollingDelay":300000, "PollingDelay":300000,
"PassiveDelay":7000, "PassiveDelay":7000,
"PIDInfo": { "PIDInfo": {
"K_Po":["NAN", "NAN", 100, 350, "NAN", "NAN", "NAN"], "K_Po":["NAN", "NAN", "NAN", 300, "NAN", "NAN", "NAN"],
"K_Pu":["NAN", "NAN", 100, 350, "NAN", "NAN", "NAN"], "K_Pu":["NAN", "NAN", "NAN", 300, "NAN", "NAN", "NAN"],
"K_I":["NAN", "NAN", 0, 5, "NAN", "NAN", "NAN"], "K_I":["NAN", "NAN", "NAN", 5, "NAN", "NAN", "NAN"],
"K_D":["NAN", "NAN", 0, 0, "NAN", "NAN", "NAN"], "K_D":["NAN", "NAN", "NAN", 0, "NAN", "NAN", "NAN"],
"I_Max":["NAN", "NAN", 0, 500, "NAN", "NAN", "NAN"], "I_Max":["NAN", "NAN", "NAN", 700, "NAN", "NAN", "NAN"],
"S_Power":["NAN", "NAN", 1500, 800, "NAN", "NAN", "NAN"], "S_Power":["NAN", "NAN", "NAN", 800, "NAN", "NAN", "NAN"],
"MinAllocPower":["NAN", "NAN", 1500, 200, "NAN", "NAN", "NAN"], "MinAllocPower":["NAN", "NAN", "NAN", 0, "NAN", "NAN", "NAN"],
"MaxAllocPower":["NAN", "NAN", 2100, 1700, "NAN", "NAN", "NAN"], "MaxAllocPower":["NAN", "NAN", "NAN", 3900, "NAN", "NAN", "NAN"],
"I_Cutoff":["NAN", "NAN", 0, 2, "NAN", "NAN", "NAN"], "I_Cutoff":["NAN", "NAN", "NAN", 2, "NAN", "NAN", "NAN"]
"TranCycle": 5
}, },
"BindedCdevInfo": [ "BindedCdevInfo": [
{
"CdevRequest": "thermal-cpufreq-0",
"CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
"MaxReleaseStep": 1,
"MaxThrottleStep": 1,
"BindedPowerRail": "S4M_VDD_CPUCL0",
"CdevCeiling": [0, 8, 8, 8, 8, 10, 10],
"LimitInfo": [0, 0, 0, 0, 8, 10, 10]
},
{
"CdevRequest": "thermal-cpufreq-1",
"CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
"MaxReleaseStep": 1,
"MaxThrottleStep": 1,
"BindedPowerRail": "S3M_VDD_CPUCL1",
"CdevCeiling": [0, 12, 12, 12, 12, 14, 14],
"LimitInfo": [0, 0, 0, 0, 12, 14, 14]
},
{
"CdevRequest": "thermal-cpufreq-2",
"CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
"MaxReleaseStep": 1,
"MaxThrottleStep": 1,
"BindedPowerRail": "S2M_VDD_CPUCL2",
"CdevCeiling": [0, 15, 15, 15, 15, 17, 17],
"LimitInfo": [0, 0, 0, 0, 15, 17, 17]
},
{ {
"CdevRequest": "thermal-gpufreq-0", "CdevRequest": "thermal-gpufreq-0",
"CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1], "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
@ -294,8 +319,8 @@
"VirtualSensor":true, "VirtualSensor":true,
"TriggerSensor":"quiet_therm", "TriggerSensor":"quiet_therm",
"Formula":"MAXIMUM", "Formula":"MAXIMUM",
"Combination":["VIRTUAL-GNSS-DISP", "VIRTUAL-USB2-QUIET", "VIRTUAL-QUIET-USB2", "VIRTUAL-NEUTRAL-QUIET"], "Combination":["VIRTUAL-SKIN"],
"Coefficient":[1.0, 1.0, 1.0, 1.0], "Coefficient":[1.0],
"HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", 54.0, "NAN"], "HotThreshold":["NAN", "NAN", "NAN", "NAN", "NAN", 54.0, "NAN"],
"HotHysteresis":[0.0, 0.0, 0.0, 0.0, 0.0, 1.9, 0.0], "HotHysteresis":[0.0, 0.0, 0.0, 0.0, 0.0, 1.9, 0.0],
"Multiplier":0.001, "Multiplier":0.001,
@ -808,5 +833,45 @@
"PowerSampleDelay":7000, "PowerSampleDelay":7000,
"PowerSampleCount":5 "PowerSampleCount":5
} }
],
"Stats": {
"Sensors": {
"RecordWithDefaultThreshold": ["VIRTUAL-SKIN"],
"RecordWithThreshold": [
{
"Name": "VIRTUAL-GNSS-DISP",
"Thresholds": [31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51]
},
{
"Name": "VIRTUAL-USB2-QUIET",
"Thresholds": [31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51]
},
{
"Name": "VIRTUAL-QUIET-USB2",
"Thresholds": [31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51]
},
{
"Name": "VIRTUAL-NEUTRAL-QUIET",
"Thresholds": [31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51]
},
{
"Name": "VIRTUAL-QI-DISP",
"Thresholds": [31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51]
},
{
"Name": "VIRTUAL-SKIN",
"Thresholds": [31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51]
},
{
"Name": "VIRTUAL-USB-THROTTLING",
"Thresholds": [3.0]
}
] ]
},
"CoolingDevices": {
"RecordVotePerSensor": {
"DefaultThresholdEnableAll": true
}
}
}
} }

View file

@ -161,22 +161,21 @@
"Formula":"MAXIMUM", "Formula":"MAXIMUM",
"Combination":["VIRTUAL-QUIET-QI", "VIRTUAL-USB-QUIET", "VIRTUAL-QUIET-DISP", "VIRTUAL-NEUTRAL-QUIET"], "Combination":["VIRTUAL-QUIET-QI", "VIRTUAL-USB-QUIET", "VIRTUAL-QUIET-DISP", "VIRTUAL-NEUTRAL-QUIET"],
"Coefficient":[1.0, 1.0, 1.0, 1.0], "Coefficient":[1.0, 1.0, 1.0, 1.0],
"HotThreshold":["NAN", 37.0, 43.0, 45.0, 46.5, 52.0, 55.0], "HotThreshold":["NAN", 37.0, 39.0, 41.0, 46.5, 52.0, 55.0],
"HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.4, 1.9, 1.9], "HotHysteresis":[0.0, 1.9, 1.9, 1.9, 1.4, 1.9, 1.9],
"Multiplier":0.001, "Multiplier":0.001,
"PollingDelay":300000, "PollingDelay":300000,
"PassiveDelay":7000, "PassiveDelay":7000,
"PIDInfo": { "PIDInfo": {
"K_Po":["NAN", "NAN", 200, 200, "NAN", "NAN", "NAN"], "K_Po":["NAN", "NAN", "NAN", 400, "NAN", "NAN", "NAN"],
"K_Pu":["NAN", "NAN", 200, 200, "NAN", "NAN", "NAN"], "K_Pu":["NAN", "NAN", "NAN", 400, "NAN", "NAN", "NAN"],
"K_I":["NAN", "NAN", 0, 5, "NAN", "NAN", "NAN"], "K_I":["NAN", "NAN", "NAN", 5, "NAN", "NAN", "NAN"],
"K_D":["NAN", "NAN", 0, 0, "NAN", "NAN", "NAN"], "K_D":["NAN", "NAN", "NAN", 0, "NAN", "NAN", "NAN"],
"I_Max":["NAN", "NAN", 0, 300, "NAN", "NAN", "NAN"], "I_Max":["NAN", "NAN", "NAN", 300, "NAN", "NAN", "NAN"],
"S_Power":["NAN", "NAN", 1200, 800, "NAN", "NAN", "NAN"], "S_Power":["NAN", "NAN", "NAN", 800, "NAN", "NAN", "NAN"],
"MinAllocPower":["NAN", "NAN", 1200, 200, "NAN", "NAN", "NAN"], "MinAllocPower":["NAN", "NAN", "NAN", 800, "NAN", "NAN", "NAN"],
"MaxAllocPower":["NAN", "NAN", 2400, 1600, "NAN", "NAN", "NAN"], "MaxAllocPower":["NAN", "NAN", "NAN", 10000, "NAN", "NAN", "NAN"],
"I_Cutoff":["NAN", "NAN", 0, 2, "NAN", "NAN", "NAN"], "I_Cutoff":["NAN", "NAN", "NAN", 2, "NAN", "NAN", "NAN"]
"TranCycle": 5
}, },
"BindedCdevInfo": [ "BindedCdevInfo": [
{ {
@ -209,7 +208,7 @@
] ]
}, },
{ {
"Name":"VIRTUAL-SKIN-GPU", "Name":"VIRTUAL-SKIN-CPU-GPU",
"Type":"UNKNOWN", "Type":"UNKNOWN",
"Hidden":true, "Hidden":true,
"VirtualSensor":true, "VirtualSensor":true,
@ -223,18 +222,44 @@
"PollingDelay":300000, "PollingDelay":300000,
"PassiveDelay":7000, "PassiveDelay":7000,
"PIDInfo": { "PIDInfo": {
"K_Po":["NAN", "NAN", 100, 350, "NAN", "NAN", "NAN"], "K_Po":["NAN", "NAN", "NAN", 300, "NAN", "NAN", "NAN"],
"K_Pu":["NAN", "NAN", 100, 350, "NAN", "NAN", "NAN"], "K_Pu":["NAN", "NAN", "NAN", 300, "NAN", "NAN", "NAN"],
"K_I":["NAN", "NAN", 0, 5, "NAN", "NAN", "NAN"], "K_I":["NAN", "NAN", "NAN", 5, "NAN", "NAN", "NAN"],
"K_D":["NAN", "NAN", 0, 0, "NAN", "NAN", "NAN"], "K_D":["NAN", "NAN", "NAN", 0, "NAN", "NAN", "NAN"],
"I_Max":["NAN", "NAN", 0, 500, "NAN", "NAN", "NAN"], "I_Max":["NAN", "NAN", "NAN", 700, "NAN", "NAN", "NAN"],
"S_Power":["NAN", "NAN", 1500, 800, "NAN", "NAN", "NAN"], "S_Power":["NAN", "NAN", "NAN", 800, "NAN", "NAN", "NAN"],
"MinAllocPower":["NAN", "NAN", 1500, 200, "NAN", "NAN", "NAN"], "MinAllocPower":["NAN", "NAN", "NAN", 0, "NAN", "NAN", "NAN"],
"MaxAllocPower":["NAN", "NAN", 2100, 1700, "NAN", "NAN", "NAN"], "MaxAllocPower":["NAN", "NAN", "NAN", 3900, "NAN", "NAN", "NAN"],
"I_Cutoff":["NAN", "NAN", 0, 2, "NAN", "NAN", "NAN"], "I_Cutoff":["NAN", "NAN", "NAN", 2, "NAN", "NAN", "NAN"]
"TranCycle": 5
}, },
"BindedCdevInfo": [ "BindedCdevInfo": [
{
"CdevRequest": "thermal-cpufreq-0",
"CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
"MaxReleaseStep": 1,
"MaxThrottleStep": 1,
"BindedPowerRail": "S4M_VDD_CPUCL0",
"CdevCeiling": [0, 8, 8, 8, 8, 10, 10],
"LimitInfo": [0, 0, 0, 0, 8, 10, 10]
},
{
"CdevRequest": "thermal-cpufreq-1",
"CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
"MaxReleaseStep": 1,
"MaxThrottleStep": 1,
"BindedPowerRail": "S3M_VDD_CPUCL1",
"CdevCeiling": [0, 12, 12, 12, 12, 14, 14],
"LimitInfo": [0, 0, 0, 0, 12, 14, 14]
},
{
"CdevRequest": "thermal-cpufreq-2",
"CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
"MaxReleaseStep": 1,
"MaxThrottleStep": 1,
"BindedPowerRail": "S2M_VDD_CPUCL2",
"CdevCeiling": [0, 15, 15, 15, 15, 17, 17],
"LimitInfo": [0, 0, 0, 0, 15, 17, 17]
},
{ {
"CdevRequest": "thermal-gpufreq-0", "CdevRequest": "thermal-gpufreq-0",
"CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1], "CdevWeightForPID": [1, 1, 1, 1, 1, 1, 1],
@ -809,5 +834,45 @@
"PowerSampleDelay":7000, "PowerSampleDelay":7000,
"PowerSampleCount":5 "PowerSampleCount":5
} }
],
"Stats": {
"Sensors": {
"RecordWithDefaultThreshold": ["VIRTUAL-SKIN"],
"RecordWithThreshold": [
{
"Name": "VIRTUAL-QUIET-QI",
"Thresholds": [31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51]
},
{
"Name": "VIRTUAL-USB-QUIET",
"Thresholds": [31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51]
},
{
"Name": "VIRTUAL-QUIET-DISP",
"Thresholds": [31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51]
},
{
"Name": "VIRTUAL-NEUTRAL-QUIET",
"Thresholds": [31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51]
},
{
"Name": "VIRTUAL-QI-DISP",
"Thresholds": [31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51]
},
{
"Name": "VIRTUAL-SKIN",
"Thresholds": [31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51]
},
{
"Name": "VIRTUAL-USB-THROTTLING",
"Thresholds": [3.0]
}
] ]
},
"CoolingDevices": {
"RecordVotePerSensor": {
"DefaultThresholdEnableAll": true
}
}
}
} }

View file

@ -1,16 +1,10 @@
[CCC]version=2 [CCC]version=3
[CCC]ant0.ch5.prf64.pdoa_iso_rf2_rf1=0
[CCC]ant0.ch5.prf64.pdoa_iso_rf1_rf2=0
[CCC]ant0.ch9.prf64.pdoa_iso_rf2_rf1=0
[CCC]ant0.ch9.prf64.pdoa_iso_rf1_rf2=0
[CCC]ant0.ch5.prf64.pdoa_offset=0
[CCC]ant0.ch9.prf64.pdoa_offset=0
[CCC]ant0.ch5.prf64.pll_locking_code=0
[CCC]ant0.ch9.prf64.pll_locking_code=0
[CCC]id=0
[CCC]wifi_coex_time_gap=10 [CCC]wifi_coex_time_gap=10
[CCC]ap_coop_mode=1 [CCC]ap_coop_mode=1
[CCC]antenna_selection=4 [CCC]wifi_coex_min_spacing=0x08
[CCC]ch5.antenna_selection=ant0
[CCC]ch9.antenna_selection=ant0
[CCC]alternate_pulse_shape=0x00
ant0.ch5.prf16.ant_delay=16447 ant0.ch5.prf16.ant_delay=16447
ant0.ch5.prf16.tx_power=0x53532B53 ant0.ch5.prf16.tx_power=0x53532B53
ant0.ch5.prf16.pg_count=0 ant0.ch5.prf16.pg_count=0
@ -110,6 +104,7 @@ temperature_reference=85
smart_tx_power=1 smart_tx_power=1
auto_sleep_margin=20000 auto_sleep_margin=20000
restricted_channels=0 restricted_channels=0
[HAL]aoa_restricted_channels=0x20
[HAL]aoa_capability=2 [HAL]aoa_capability=2
[HAL]ant_sets.ch5.range.rx_ant_set_nonranging=6 [HAL]ant_sets.ch5.range.rx_ant_set_nonranging=6
[HAL]ant_sets.ch5.range.rx_ant_set_ranging=6 [HAL]ant_sets.ch5.range.rx_ant_set_ranging=6

View file

@ -1,16 +1,10 @@
[CCC]version=2 [CCC]version=3
[CCC]ant0.ch5.prf64.pdoa_iso_rf2_rf1=0
[CCC]ant0.ch5.prf64.pdoa_iso_rf1_rf2=0
[CCC]ant0.ch9.prf64.pdoa_iso_rf2_rf1=0
[CCC]ant0.ch9.prf64.pdoa_iso_rf1_rf2=0
[CCC]ant0.ch5.prf64.pdoa_offset=0
[CCC]ant0.ch9.prf64.pdoa_offset=0
[CCC]ant0.ch5.prf64.pll_locking_code=0
[CCC]ant0.ch9.prf64.pll_locking_code=0
[CCC]id=0
[CCC]wifi_coex_time_gap=10 [CCC]wifi_coex_time_gap=10
[CCC]ap_coop_mode=1 [CCC]ap_coop_mode=1
[CCC]antenna_selection=4 [CCC]wifi_coex_min_spacing=0x08
[CCC]ch5.antenna_selection=ant0
[CCC]ch9.antenna_selection=ant0
[CCC]alternate_pulse_shape=0x00
ant0.ch5.prf16.ant_delay=16447 ant0.ch5.prf16.ant_delay=16447
ant0.ch5.prf16.tx_power=0x67672F67 ant0.ch5.prf16.tx_power=0x67672F67
ant0.ch5.prf16.pg_count=0 ant0.ch5.prf16.pg_count=0
@ -110,6 +104,7 @@ temperature_reference=85
smart_tx_power=1 smart_tx_power=1
auto_sleep_margin=20000 auto_sleep_margin=20000
restricted_channels=0 restricted_channels=0
[HAL]aoa_restricted_channels=0x20
[HAL]aoa_capability=2 [HAL]aoa_capability=2
[HAL]ant_sets.ch5.range.rx_ant_set_nonranging=6 [HAL]ant_sets.ch5.range.rx_ant_set_nonranging=6
[HAL]ant_sets.ch5.range.rx_ant_set_ranging=6 [HAL]ant_sets.ch5.range.rx_ant_set_ranging=6

View file

@ -1,16 +1,10 @@
[CCC]version=2 [CCC]version=3
[CCC]ant0.ch5.prf64.pdoa_iso_rf2_rf1=0
[CCC]ant0.ch5.prf64.pdoa_iso_rf1_rf2=0
[CCC]ant0.ch9.prf64.pdoa_iso_rf2_rf1=0
[CCC]ant0.ch9.prf64.pdoa_iso_rf1_rf2=0
[CCC]ant0.ch5.prf64.pdoa_offset=0
[CCC]ant0.ch9.prf64.pdoa_offset=0
[CCC]ant0.ch5.prf64.pll_locking_code=0
[CCC]ant0.ch9.prf64.pll_locking_code=0
[CCC]id=0
[CCC]wifi_coex_time_gap=10 [CCC]wifi_coex_time_gap=10
[CCC]ap_coop_mode=1 [CCC]ap_coop_mode=1
[CCC]antenna_selection=4 [CCC]wifi_coex_min_spacing=0x08
[CCC]ch5.antenna_selection=ant0
[CCC]ch9.antenna_selection=ant0
[CCC]alternate_pulse_shape=0x00
ant0.ch5.prf16.ant_delay=16447 ant0.ch5.prf16.ant_delay=16447
ant0.ch5.prf16.tx_power=0x67672F67 ant0.ch5.prf16.tx_power=0x67672F67
ant0.ch5.prf16.pg_count=0 ant0.ch5.prf16.pg_count=0
@ -110,6 +104,7 @@ temperature_reference=85
smart_tx_power=1 smart_tx_power=1
auto_sleep_margin=20000 auto_sleep_margin=20000
restricted_channels=0 restricted_channels=0
[HAL]aoa_restricted_channels=0x20
[HAL]aoa_capability=2 [HAL]aoa_capability=2
[HAL]ant_sets.ch5.range.rx_ant_set_nonranging=6 [HAL]ant_sets.ch5.range.rx_ant_set_nonranging=6
[HAL]ant_sets.ch5.range.rx_ant_set_ranging=6 [HAL]ant_sets.ch5.range.rx_ant_set_ranging=6

View file

@ -1,16 +1,10 @@
[CCC]version=2 [CCC]version=3
[CCC]ant0.ch5.prf64.pdoa_iso_rf2_rf1=0
[CCC]ant0.ch5.prf64.pdoa_iso_rf1_rf2=0
[CCC]ant0.ch9.prf64.pdoa_iso_rf2_rf1=0
[CCC]ant0.ch9.prf64.pdoa_iso_rf1_rf2=0
[CCC]ant0.ch5.prf64.pdoa_offset=0
[CCC]ant0.ch9.prf64.pdoa_offset=0
[CCC]ant0.ch5.prf64.pll_locking_code=0
[CCC]ant0.ch9.prf64.pll_locking_code=0
[CCC]id=0
[CCC]wifi_coex_time_gap=10 [CCC]wifi_coex_time_gap=10
[CCC]ap_coop_mode=1 [CCC]ap_coop_mode=1
[CCC]antenna_selection=4 [CCC]wifi_coex_min_spacing=0x08
[CCC]ch5.antenna_selection=ant0
[CCC]ch9.antenna_selection=ant0
[CCC]alternate_pulse_shape=0x01
ant0.ch5.prf16.ant_delay=16447 ant0.ch5.prf16.ant_delay=16447
ant0.ch5.prf16.tx_power=0 ant0.ch5.prf16.tx_power=0
ant0.ch5.prf16.pg_count=0 ant0.ch5.prf16.pg_count=0
@ -111,6 +105,7 @@ smart_tx_power=1
auto_sleep_margin=20000 auto_sleep_margin=20000
alternate_pulse_shape=0x01 alternate_pulse_shape=0x01
restricted_channels=0x20 restricted_channels=0x20
[HAL]aoa_restricted_channels=0x20
[HAL]aoa_capability=2 [HAL]aoa_capability=2
[HAL]ant_sets.ch5.range.rx_ant_set_nonranging=6 [HAL]ant_sets.ch5.range.rx_ant_set_nonranging=6
[HAL]ant_sets.ch5.range.rx_ant_set_ranging=6 [HAL]ant_sets.ch5.range.rx_ant_set_ranging=6

View file

@ -1,16 +1,10 @@
[CCC]version=2 [CCC]version=3
[CCC]ant0.ch5.prf64.pdoa_iso_rf2_rf1=0
[CCC]ant0.ch5.prf64.pdoa_iso_rf1_rf2=0
[CCC]ant0.ch9.prf64.pdoa_iso_rf2_rf1=0
[CCC]ant0.ch9.prf64.pdoa_iso_rf1_rf2=0
[CCC]ant0.ch5.prf64.pdoa_offset=0
[CCC]ant0.ch9.prf64.pdoa_offset=0
[CCC]ant0.ch5.prf64.pll_locking_code=0
[CCC]ant0.ch9.prf64.pll_locking_code=0
[CCC]id=0
[CCC]wifi_coex_time_gap=10 [CCC]wifi_coex_time_gap=10
[CCC]ap_coop_mode=1 [CCC]ap_coop_mode=1
[CCC]antenna_selection=4 [CCC]wifi_coex_min_spacing=0x08
[CCC]ch5.antenna_selection=ant0
[CCC]ch9.antenna_selection=ant0
[CCC]alternate_pulse_shape=0x00
ant0.ch5.prf16.ant_delay=16447 ant0.ch5.prf16.ant_delay=16447
ant0.ch5.prf16.tx_power=0x67672F67 ant0.ch5.prf16.tx_power=0x67672F67
ant0.ch5.prf16.pg_count=0 ant0.ch5.prf16.pg_count=0
@ -110,6 +104,7 @@ temperature_reference=85
smart_tx_power=1 smart_tx_power=1
auto_sleep_margin=20000 auto_sleep_margin=20000
restricted_channels=0xFFFF restricted_channels=0xFFFF
[HAL]aoa_restricted_channels=0x20
[HAL]aoa_capability=2 [HAL]aoa_capability=2
[HAL]ant_sets.ch5.range.rx_ant_set_nonranging=6 [HAL]ant_sets.ch5.range.rx_ant_set_nonranging=6
[HAL]ant_sets.ch5.range.rx_ant_set_ranging=6 [HAL]ant_sets.ch5.range.rx_ant_set_ranging=6

View file

@ -1,16 +1,10 @@
[CCC]version=2 [CCC]version=3
[CCC]ant0.ch5.prf64.pdoa_iso_rf2_rf1=0
[CCC]ant0.ch5.prf64.pdoa_iso_rf1_rf2=0
[CCC]ant0.ch9.prf64.pdoa_iso_rf2_rf1=0
[CCC]ant0.ch9.prf64.pdoa_iso_rf1_rf2=0
[CCC]ant0.ch5.prf64.pdoa_offset=0
[CCC]ant0.ch9.prf64.pdoa_offset=0
[CCC]ant0.ch5.prf64.pll_locking_code=0
[CCC]ant0.ch9.prf64.pll_locking_code=0
[CCC]id=0
[CCC]wifi_coex_time_gap=10 [CCC]wifi_coex_time_gap=10
[CCC]ap_coop_mode=1 [CCC]ap_coop_mode=1
[CCC]antenna_selection=4 [CCC]wifi_coex_min_spacing=0x08
[CCC]ch5.antenna_selection=ant0
[CCC]ch9.antenna_selection=ant0
[CCC]alternate_pulse_shape=0x00
ant0.ch5.prf16.ant_delay=16447 ant0.ch5.prf16.ant_delay=16447
ant0.ch5.prf16.tx_power=0x67672F67 ant0.ch5.prf16.tx_power=0x67672F67
ant0.ch5.prf16.pg_count=0 ant0.ch5.prf16.pg_count=0
@ -110,6 +104,7 @@ temperature_reference=85
smart_tx_power=1 smart_tx_power=1
auto_sleep_margin=20000 auto_sleep_margin=20000
restricted_channels=0x20 restricted_channels=0x20
[HAL]aoa_restricted_channels=0x20
[HAL]aoa_capability=2 [HAL]aoa_capability=2
[HAL]ant_sets.ch5.range.rx_ant_set_nonranging=6 [HAL]ant_sets.ch5.range.rx_ant_set_nonranging=6
[HAL]ant_sets.ch5.range.rx_ant_set_ranging=6 [HAL]ant_sets.ch5.range.rx_ant_set_ranging=6

View file

@ -1,16 +1,10 @@
[CCC]version=2 [CCC]version=3
[CCC]ant0.ch5.prf64.pdoa_iso_rf2_rf1=0
[CCC]ant0.ch5.prf64.pdoa_iso_rf1_rf2=0
[CCC]ant0.ch9.prf64.pdoa_iso_rf2_rf1=0
[CCC]ant0.ch9.prf64.pdoa_iso_rf1_rf2=0
[CCC]ant0.ch5.prf64.pdoa_offset=0
[CCC]ant0.ch9.prf64.pdoa_offset=0
[CCC]ant0.ch5.prf64.pll_locking_code=0
[CCC]ant0.ch9.prf64.pll_locking_code=0
[CCC]id=0
[CCC]wifi_coex_time_gap=10 [CCC]wifi_coex_time_gap=10
[CCC]ap_coop_mode=1 [CCC]ap_coop_mode=1
[CCC]antenna_selection=4 [CCC]wifi_coex_min_spacing=0x08
[CCC]ch5.antenna_selection=ant0
[CCC]ch9.antenna_selection=ant0
[CCC]alternate_pulse_shape=0x00
ant0.ch5.prf16.ant_delay=16447 ant0.ch5.prf16.ant_delay=16447
ant0.ch5.prf16.tx_power=0x67672F67 ant0.ch5.prf16.tx_power=0x67672F67
ant0.ch5.prf16.pg_count=0 ant0.ch5.prf16.pg_count=0
@ -110,6 +104,7 @@ temperature_reference=85
smart_tx_power=1 smart_tx_power=1
auto_sleep_margin=20000 auto_sleep_margin=20000
restricted_channels=0 restricted_channels=0
[HAL]aoa_restricted_channels=0x20
[HAL]aoa_capability=2 [HAL]aoa_capability=2
[HAL]ant_sets.ch5.range.rx_ant_set_nonranging=6 [HAL]ant_sets.ch5.range.rx_ant_set_nonranging=6
[HAL]ant_sets.ch5.range.rx_ant_set_ranging=6 [HAL]ant_sets.ch5.range.rx_ant_set_ranging=6
@ -150,4 +145,4 @@ coex_gpio=4
coex_delay_us=1000 coex_delay_us=1000
coex_margin_us=500 coex_margin_us=500
coex_interval_us=2000 coex_interval_us=2000
alternate_pulse_shape=0x01 alternate_pulse_shape=0x00

View file

@ -8,3 +8,4 @@ p2p_add_cli_chan=1
disable_scan_offload=1 disable_scan_offload=1
p2p_go_vht=1 p2p_go_vht=1
p2p_pref_chan=124:149, 115:36 p2p_pref_chan=124:149, 115:36
p2p_6ghz_disable=1