<?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>
