audio: enable speaker power data and spk compensation

Bug: 300604249
Test: manual test - playback/ make voice call in spk mode.

Change-Id: I72799afd0a63a336b76cd70eb12ecd5a03a54bb5
Signed-off-by: Jasmine Cha <chajasmine@google.com>
This commit is contained in:
Jasmine Cha 2024-01-03 14:03:38 +08:00
parent 388859df71
commit 895d1dfce7
6 changed files with 21 additions and 6 deletions

View file

@ -25,6 +25,7 @@
<argument name="ThermistorName" value="VIRTUAL-SKIN-SPEAKER" />
<argument name="ThermistorType" value="UNKNOWN" />
<argument name="ThrottlingSeverity" value="LIGHT" />
<argument name="SpeakerPowerPollWaitMs" value="5000" />
</feature>
<feature name="RuntimeTuningDump" />
</features>
@ -55,7 +56,7 @@
<tuner type="playback" name="waves">
<argument name="Sink" value="SPK" />
<argument name="ThermistorsName" value="VIRTUAL-SKIN-SPEAKER" />
<argument name="Extensions" value="StereoSpatializerIndicator" />
<argument name="Extensions" value="StereoSpatializerIndicator,SpeakerPowerLinkLaw" />
</tuner>
<tuner type="telephony" name="fortemedia">
<argument name="VoIP_DLCHs" value="SPK:2,USB:2" />
@ -66,6 +67,10 @@
<argument name="CCA" value="UnsupportBands:48000,ExSharedBands:48000,VoIPMode:Dl" />
</tuner>
<tuner type="capture" name="gs_capture" />
<tuner type="compensation" name="TelephonySpeakerCompensation">
<scenario condition="ScreenRotation:0,90,180,270"
output="LeftChannel:compens_spk_l.conf RightChannel:compens_spk_r.conf" />
</tuner>
</tuners>
<latencies>

View file

@ -249,7 +249,7 @@
<features>
<feature name="BatteryThrottle=Type:BCL_VOLTAGE,Name:BCL_AUDIO_BAACL,Strategy:MediaSpeakerAndScreenOn"/>
<feature name="PlaybackThermalThrottle=PollWaitMs:20000,ThermistorName:VIRTUAL-SKIN-SPEAKER,ThermistorType:UNKNOWN,ThrottlingSeverity:LIGHT"/>
<feature name="PlaybackThermalThrottle=PollWaitMs:20000,ThermistorName:VIRTUAL-SKIN-SPEAKER,ThermistorType:UNKNOWN,ThrottlingSeverity:LIGHT,SpeakerPowerPollWaitMs:5000"/>
</features>
<cfg_attr>

View file

@ -25,6 +25,7 @@
<argument name="ThermistorName" value="VIRTUAL-SKIN-SPEAKER" />
<argument name="ThermistorType" value="UNKNOWN" />
<argument name="ThrottlingSeverity" value="LIGHT" />
<argument name="SpeakerPowerPollWaitMs" value="5000" />
</feature>
<feature name="RuntimeTuningDump" />
</features>
@ -55,7 +56,7 @@
<tuner type="playback" name="waves">
<argument name="Sink" value="SPK" />
<argument name="ThermistorsName" value="VIRTUAL-SKIN-SPEAKER" />
<argument name="Extensions" value="StereoSpatializerIndicator" />
<argument name="Extensions" value="StereoSpatializerIndicator,SpeakerPowerLinkLaw" />
</tuner>
<tuner type="telephony" name="fortemedia">
<argument name="VoIP_DLCHs" value="SPK:2,USB:2" />
@ -66,6 +67,10 @@
<argument name="CCA" value="UnsupportBands:48000,ExSharedBands:48000,VoIPMode:Dl" />
</tuner>
<tuner type="capture" name="gs_capture" />
<tuner type="compensation" name="TelephonySpeakerCompensation">
<scenario condition="ScreenRotation:0,90,180,270"
output="LeftChannel:compens_spk_l.conf RightChannel:compens_spk_r.conf" />
</tuner>
</tuners>
<latencies>

View file

@ -249,7 +249,7 @@
<features>
<feature name="BatteryThrottle=Type:BCL_VOLTAGE,Name:BCL_AUDIO_BAACL,Strategy:MediaSpeakerAndScreenOn"/>
<feature name="PlaybackThermalThrottle=PollWaitMs:20000,ThermistorName:VIRTUAL-SKIN-SPEAKER,ThermistorType:UNKNOWN,ThrottlingSeverity:LIGHT"/>
<feature name="PlaybackThermalThrottle=PollWaitMs:20000,ThermistorName:VIRTUAL-SKIN-SPEAKER,ThermistorType:UNKNOWN,ThrottlingSeverity:LIGHT,SpeakerPowerPollWaitMs:5000"/>
</features>
<cfg_attr>

View file

@ -25,6 +25,7 @@
<argument name="ThermistorName" value="VIRTUAL-SKIN-SPEAKER" />
<argument name="ThermistorType" value="UNKNOWN" />
<argument name="ThrottlingSeverity" value="LIGHT" />
<argument name="SpeakerPowerPollWaitMs" value="5000" />
</feature>
<feature name="RuntimeTuningDump" />
</features>
@ -55,7 +56,7 @@
<tuner type="playback" name="waves">
<argument name="Sink" value="SPK" />
<argument name="ThermistorsName" value="VIRTUAL-SKIN-SPEAKER" />
<argument name="Extensions" value="StereoSpatializerIndicator" />
<argument name="Extensions" value="StereoSpatializerIndicator,SpeakerPowerLinkLaw" />
</tuner>
<tuner type="telephony" name="fortemedia">
<argument name="VoIP_DLCHs" value="SPK:2,USB:2" />
@ -66,6 +67,10 @@
<argument name="CCA" value="UnsupportBands:48000,ExSharedBands:48000,VoIPMode:Dl" />
</tuner>
<tuner type="capture" name="gs_capture" />
<tuner type="compensation" name="TelephonySpeakerCompensation">
<scenario condition="ScreenRotation:0,90,180,270"
output="LeftChannel:compens_spk_l.conf RightChannel:compens_spk_r.conf" />
</tuner>
</tuners>
<latencies>

View file

@ -249,7 +249,7 @@
<features>
<feature name="BatteryThrottle=Type:BCL_VOLTAGE,Name:BCL_AUDIO_BAACL,Strategy:MediaSpeakerAndScreenOn"/>
<feature name="PlaybackThermalThrottle=PollWaitMs:20000,ThermistorName:VIRTUAL-SKIN-SPEAKER,ThermistorType:UNKNOWN,ThrottlingSeverity:LIGHT"/>
<feature name="PlaybackThermalThrottle=PollWaitMs:20000,ThermistorName:VIRTUAL-SKIN-SPEAKER,ThermistorType:UNKNOWN,ThrottlingSeverity:LIGHT,SpeakerPowerPollWaitMs:5000"/>
</features>
<cfg_attr>