Home | History | Annotate | Download | only in dragon
      1 <mixer>
      2   <ctl name="Int Spk Switch" value="0"/>
      3   <ctl name="Headphone Jack Switch" value="0"/>
      4   <ctl name="Mic Jack Switch" value="0"/>
      5   <ctl name="Int Mic Switch" value="0"/>
      6 
      7   <ctl name="Sidetone Volume" value="0"/>
      8   <ctl name="DAC1 Playback Volume" value="87"/>
      9   <ctl name="STO1 ADC Boost Volume" value="2"/>
     10   <ctl name="STO2 ADC Boost Volume" value="2"/>
     11   <ctl name="STO3 ADC Boost Volume" value="0"/>
     12   <ctl name="Mono ADC Boost Volume" value="2"/>
     13   <ctl name="ADC1 Capture Volume" value="23"/>
     14   <ctl name="ADC2 Capture Volume" value="23"/>
     15   <ctl name="ADC3 Capture Volume" value="23"/>
     16   <ctl name="Mic Volume" value="207"/>
     17   <ctl name="Frontend PGA Volume" value="1"/>
     18 
     19   <ctl name="I2S1 Mux" value="ADMAIF1"/>
     20   <ctl name="ADMAIF1 Mux" value="I2S1"/>
     21 
     22   <ctl name="Stereo1 DMIC Mux" value="DMIC2"/>
     23   <ctl name="Stereo1 ADC2 Mux" value="DMIC"/>
     24   <ctl name="Stereo2 DMIC Mux" value="DMIC1"/>
     25   <ctl name="Stereo2 ADC2 Mux" value="DMIC"/>
     26 
     27   <ctl name="Stereo3 ADC1 Mux" value="Stereo DAC MIX"/>
     28   <ctl name="DAC1 Mux" value="IF1 DAC 01"/>
     29   <ctl name="DAC1 MIXL DAC1 Switch" value="1"/>
     30   <ctl name="DAC1 MIXR DAC1 Switch" value="1"/>
     31   <ctl name="Stereo DAC MIXL DAC1 L Switch" value="1"/>
     32   <ctl name="Stereo DAC MIXR DAC1 R Switch" value="1"/>
     33   <ctl name="DAC3 L Mux" value="IF3 DAC L"/>
     34   <ctl name="DAC3 R Mux" value="IF3 DAC R"/>
     35   <ctl name="DD1 MIXL DAC3 L Switch" value="1"/>
     36   <ctl name="DD1 MIXR DAC3 R Switch" value="1"/>
     37   <ctl name="DACL Mux" value="DACL"/>
     38   <ctl name="DACR Mux" value="DACR"/>
     39 
     40   <!--
     41     Needed for DSP-based hotwording
     42   -->
     43   <ctl name="Mono ADC MIXL ADC2 Switch" value="1"/>
     44   <ctl name="VAD ADC Mux" value="MONO ADC MIX L"/>
     45   <ctl name="IB01 Mux" value="VAD ADC/DAC1 FS"/>
     46 
     47   <!--
     48     Stereo1 and Stereo2 rt5677 datapaths are used for capture
     49     stream. Capture can be up to 4 channels (4 DMICs) and we need
     50     2 stereo datapaths.
     51     Stereo3 is used for playback. Only 2 channel playback supported
     52     thus 1 stereo datapath is enough.
     53   -->
     54   <ctl name="Sto1 ADC MIXL ADC2 Switch" value="1"/>
     55   <ctl name="Sto1 ADC MIXR ADC2 Switch" value="1"/>
     56   <ctl name="Sto2 ADC MIXL ADC2 Switch" value="1"/>
     57   <ctl name="Sto2 ADC MIXR ADC2 Switch" value="1"/>
     58   <ctl name="Sto3 ADC MIXL ADC1 Switch" value="1"/>
     59   <ctl name="Sto3 ADC MIXR ADC1 Switch" value="1"/>
     60 
     61   <!--
     62     IF1 - link to SoC
     63     IF2 - link to Speaker
     64     IF3 - link to Headset
     65   -->
     66   <ctl name="IF1 ADC1 Mux" value="STO1 ADC MIX"/>
     67   <ctl name="IF1 ADC2 Mux" value="STO2 ADC MIX"/>
     68   <ctl name="IF1 ADC3 Mux" value="OB45"/>
     69   <ctl name="IF1 ADC TDM Swap Mux" value="1/2/3/4"/>
     70 
     71   <ctl name="IF2 ADC1 Mux" value="OB01"/>
     72   <ctl name="IF2 ADC2 Mux" value="OB23"/>
     73   <ctl name="IF2 ADC3 Mux" value="OB45"/>
     74   <ctl name="IF2 ADC TDM Swap Mux" value="2/3/1/4"/>
     75 
     76   <ctl name="IF3 ADC Mux" value="OB01"/>
     77 
     78   <path name="speaker">
     79     <ctl name="Headphone Jack Switch" value="0"/>
     80     <ctl name="ADC3 Capture Volume" value="28"/>
     81     <ctl name="IF2 ADC3 Mux" value="STO3 ADC MIX"/>
     82     <ctl name="IF3 ADC Mux" value="OB01"/>
     83     <ctl name="Int Spk Switch" value="1"/>
     84   </path>
     85 
     86   <path name="headphones">
     87     <ctl name="Int Spk Switch" value="0"/>
     88     <ctl name="ADC3 Capture Volume" value="23"/>
     89     <ctl name="IF2 ADC3 Mux" value="OB45"/>
     90     <ctl name="IF3 ADC Mux" value="STO3 ADC MIX"/>
     91     <ctl name="Headphone Jack Switch" value="1"/>
     92   </path>
     93 
     94   <!-- dmic -->
     95   <path name="speaker-mic">
     96     <ctl name="Mic Jack Switch" value="0"/>
     97     <ctl name="Stereo1 ADC2 Mux" value="DMIC"/>
     98     <ctl name="Int Mic Switch" value="1"/>
     99   </path>
    100 
    101   <!-- analog mic -->
    102   <path name="headset-mic">
    103     <ctl name="Int Mic Switch" value="0"/>
    104     <ctl name="Stereo1 ADC2 Mux" value="DD MIX1"/>
    105     <ctl name="Mic Jack Switch" value="1"/>
    106     <ctl name="STO1 ADC Boost Volume" value="2"/>
    107     <ctl name="ADC1 Capture Volume" value="27"/>
    108   </path>
    109 
    110   <path name="voice-headset-mic">
    111       <path name="headset-mic" />
    112   </path>
    113 
    114   <path name="voice-rec-mic">
    115       <path name="speaker-mic" />
    116       <ctl name="STO1 ADC Boost Volume" value="2"/>
    117       <ctl name="ADC1 Capture Volume" value="31"/>
    118   </path>
    119 
    120   <path name="voice-rec-headset-mic">
    121       <path name="headset-mic" />
    122       <ctl name="ADC1 Capture Volume" value="31"/>
    123   </path>
    124 
    125   <path name="handset-mic">
    126       <path name="speaker-mic" />
    127   </path>
    128 
    129   <path name="camcorder-mic">
    130       <path name="speaker-mic" />
    131   </path>
    132 
    133   <path name="speaker-and-headphones">
    134     <ctl name="ADC3 Capture Volume" value="23"/>
    135 
    136     <ctl name="IF2 ADC3 Mux" value="STO3 ADC MIX"/>
    137     <ctl name="IF3 ADC Mux" value="STO3 ADC MIX"/>
    138 
    139     <ctl name="Int Spk Switch" value="1"/>
    140     <ctl name="Headphone Jack Switch" value="1"/>
    141   </path>
    142 </mixer>
    143