Xml文件  |  151行  |  4.78 KB

<mixer>
  <ctl name="Int Spk Switch" value="0"/>
  <ctl name="Headphone Jack Switch" value="0"/>
  <ctl name="Mic Jack Switch" value="0"/>
  <ctl name="Int Mic Switch" value="0"/>

  <ctl name="Sidetone Volume" value="0"/>
  <ctl name="DAC1 Playback Volume" value="87"/>
  <ctl name="STO1 ADC Boost Volume" value="2"/>
  <ctl name="STO2 ADC Boost Volume" value="2"/>
  <ctl name="STO3 ADC Boost Volume" value="0"/>
  <ctl name="Mono ADC Boost Volume" value="2"/>
  <ctl name="ADC1 Capture Volume" value="23"/>
  <ctl name="ADC2 Capture Volume" value="23"/>
  <ctl name="ADC3 Capture Volume" value="23"/>
  <ctl name="Mic Volume" value="207"/>
  <ctl name="Frontend PGA Volume" value="1"/>

  <ctl name="I2S1 Mux" value="ADMAIF1"/>
  <ctl name="ADMAIF1 Mux" value="I2S1"/>

  <ctl name="Stereo1 DMIC Mux" value="DMIC2"/>
  <ctl name="Stereo1 ADC2 Mux" value="DMIC"/>
  <ctl name="Stereo2 DMIC Mux" value="DMIC1"/>
  <ctl name="Stereo2 ADC2 Mux" value="DMIC"/>

  <ctl name="Stereo3 ADC1 Mux" value="Stereo DAC MIX"/>
  <ctl name="DAC1 Mux" value="IF1 DAC 01"/>
  <ctl name="DAC1 MIXL DAC1 Switch" value="1"/>
  <ctl name="DAC1 MIXR DAC1 Switch" value="1"/>
  <ctl name="Stereo DAC MIXL DAC1 L Switch" value="1"/>
  <ctl name="Stereo DAC MIXR DAC1 R Switch" value="1"/>
  <ctl name="DAC3 L Mux" value="IF3 DAC L"/>
  <ctl name="DAC3 R Mux" value="IF3 DAC R"/>
  <ctl name="DD1 MIXL DAC3 L Switch" value="1"/>
  <ctl name="DD1 MIXR DAC3 R Switch" value="1"/>
  <ctl name="DACL Mux" value="DACL"/>
  <ctl name="DACR Mux" value="DACR"/>

  <!--
    Needed for DSP-based hotwording
  -->
  <ctl name="Mono ADC MIXL ADC2 Switch" value="1"/>
  <ctl name="VAD ADC Mux" value="MONO ADC MIX L"/>
  <ctl name="IB01 Mux" value="VAD ADC/DAC1 FS"/>

  <!--
    Stereo1 and Stereo2 rt5677 datapaths are used for capture
    stream. Capture can be up to 4 channels (4 DMICs) and we need
    2 stereo datapaths.
    Stereo3 is used for playback. Only 2 channel playback supported
    thus 1 stereo datapath is enough.
  -->
  <ctl name="Sto1 ADC MIXL ADC2 Switch" value="1"/>
  <ctl name="Sto1 ADC MIXR ADC2 Switch" value="1"/>
  <ctl name="Sto2 ADC MIXL ADC2 Switch" value="1"/>
  <ctl name="Sto2 ADC MIXR ADC2 Switch" value="1"/>
  <ctl name="Sto3 ADC MIXL ADC1 Switch" value="1"/>
  <ctl name="Sto3 ADC MIXR ADC1 Switch" value="1"/>

  <!--
    IF1 - link to SoC
    IF2 - link to Speaker
    IF3 - link to Headset
  -->
  <ctl name="IF1 ADC1 Mux" value="STO1 ADC MIX"/>
  <ctl name="IF1 ADC2 Mux" value="STO2 ADC MIX"/>
  <ctl name="IF1 ADC3 Mux" value="OB45"/>
  <ctl name="IF1 ADC TDM Swap Mux" value="1/2/3/4"/>

  <ctl name="IF2 ADC1 Mux" value="OB01"/>
  <ctl name="IF2 ADC2 Mux" value="OB23"/>
  <ctl name="IF2 ADC3 Mux" value="OB45"/>
  <ctl name="IF2 ADC TDM Swap Mux" value="2/3/1/4"/>

  <ctl name="IF3 ADC Mux" value="OB01"/>

  <path name="speaker">
    <ctl name="Headphone Jack Switch" value="0"/>
    <ctl name="ADC3 Capture Volume" value="28"/>
    <ctl name="IF2 ADC3 Mux" value="STO3 ADC MIX"/>
    <ctl name="IF3 ADC Mux" value="OB01"/>
    <ctl name="Int Spk Switch" value="1"/>
  </path>

  <path name="headphones">
    <ctl name="Int Spk Switch" value="0"/>
    <ctl name="ADC3 Capture Volume" value="23"/>
    <ctl name="IF2 ADC3 Mux" value="OB45"/>
    <ctl name="IF3 ADC Mux" value="STO3 ADC MIX"/>
    <ctl name="Headphone Jack Switch" value="1"/>
  </path>

  <!-- dmic -->
  <path name="speaker-mic">
    <ctl name="Mic Jack Switch" value="0"/>
    <ctl name="Stereo1 ADC2 Mux" value="DMIC"/>
    <ctl name="Int Mic Switch" value="1"/>
  </path>

  <!-- analog mic -->
  <path name="headset-mic">
    <ctl name="Int Mic Switch" value="0"/>
    <ctl name="Stereo1 ADC2 Mux" value="DD MIX1"/>
    <ctl name="Mic Jack Switch" value="1"/>
    <ctl name="STO1 ADC Boost Volume" value="2"/>
    <ctl name="ADC1 Capture Volume" value="27"/>
  </path>

  <path name="voice-headset-mic">
      <path name="headset-mic" />
  </path>

  <path name="voice-rec-mic">
      <path name="speaker-mic" />
      <ctl name="STO1 ADC Boost Volume" value="2"/>
      <ctl name="ADC1 Capture Volume" value="31"/>
  </path>

  <path name="voice-rec-headset-mic">
      <path name="headset-mic" />
      <ctl name="ADC1 Capture Volume" value="31"/>
  </path>

  <path name="handset-mic">
      <path name="speaker-mic" />
  </path>

  <path name="camcorder-mic">
      <path name="speaker-mic" />
  </path>

  <path name="speaker-and-headphones">
    <ctl name="ADC3 Capture Volume" value="23"/>

    <ctl name="IF2 ADC3 Mux" value="STO3 ADC MIX"/>
    <ctl name="IF3 ADC Mux" value="STO3 ADC MIX"/>

    <ctl name="Int Spk Switch" value="1"/>
    <ctl name="Headphone Jack Switch" value="1"/>
  </path>

  <path name="speaker-lr-normal">
    <ctl name="IF2 ADC3 Swap Mux" value="L/R"/>
  </path>

  <path name="speaker-lr-reverse">
    <ctl name="IF2 ADC3 Swap Mux" value="R/L"/>
  </path>
</mixer>