Simon Wilson | 15f60a8 | 2012-04-24 20:56:32 -0700 | [diff] [blame] | 1 | <mixer> |
| 2 | <!-- These are the initial mixer settings --> |
| 3 | <ctl name="DAC1R Mixer AIF1.1 Switch" value="0" /> |
| 4 | <ctl name="DAC1L Mixer AIF1.1 Switch" value="0" /> |
| 5 | <ctl name="DAC1 Switch" value="0" /> |
Eric Laurent | c5cae7b | 2012-09-13 19:14:48 -0700 | [diff] [blame^] | 6 | <ctl name="AIF1DRC1 Mode" value="Default" /> |
| 7 | <ctl name="AIF1DAC1 DRC Switch" value="0" /> |
Simon Wilson | 15f60a8 | 2012-04-24 20:56:32 -0700 | [diff] [blame] | 8 | |
| 9 | <ctl name="Speaker Switch" value="0" /> |
| 10 | <ctl name="SPKR DAC1 Switch" value="0" /> |
| 11 | <ctl name="SPKL DAC1 Switch" value="0" /> |
Eric Laurent | c5cae7b | 2012-09-13 19:14:48 -0700 | [diff] [blame^] | 12 | <ctl name="Speaker Mixer Volume" value="0" /> |
Simon Wilson | 15f60a8 | 2012-04-24 20:56:32 -0700 | [diff] [blame] | 13 | |
| 14 | <ctl name="Headphone Switch" value="0" /> |
| 15 | <ctl name="Right Headphone Mux" value="Mixer" /> |
| 16 | <ctl name="Left Headphone Mux" value="Mixer" /> |
Simon Wilson | c4006be | 2012-08-17 11:23:38 -0700 | [diff] [blame] | 17 | <ctl name="Left Output Mixer DAC Switch" value="0" /> |
| 18 | <ctl name="Right Output Mixer DAC Switch" value="0" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 19 | |
| 20 | <ctl name="MIXINL IN1L Switch" value="0" /> |
| 21 | <ctl name="IN1L Switch" value="0" /> |
Eric Laurent | d7abdd0 | 2012-07-27 14:54:41 -0700 | [diff] [blame] | 22 | <ctl name="IN1L PGA IN1LP Switch" value="0" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 23 | <ctl name="IN1L PGA IN1LN Switch" value="1" /> |
| 24 | |
| 25 | <ctl name="MIXINL IN2L Switch" value="0" /> |
| 26 | <ctl name="IN2L Switch" value="0" /> |
Eric Laurent | d7abdd0 | 2012-07-27 14:54:41 -0700 | [diff] [blame] | 27 | <ctl name="IN2L PGA IN2LP Switch" value="0" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 28 | <ctl name="IN2L PGA IN2LN Switch" value="1" /> |
| 29 | |
| 30 | <ctl name="MIXINR IN1R Switch" value="0" /> |
| 31 | <ctl name="IN1R Switch" value="0" /> |
Eric Laurent | d7abdd0 | 2012-07-27 14:54:41 -0700 | [diff] [blame] | 32 | <ctl name="IN1R PGA IN1RP Switch" value="0" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 33 | <ctl name="IN1R PGA IN1RN Switch" value="1" /> |
| 34 | |
| 35 | <ctl name="MIXINR IN2R Switch" value="0" /> |
| 36 | <ctl name="IN2R Switch" value="0" /> |
Eric Laurent | d7abdd0 | 2012-07-27 14:54:41 -0700 | [diff] [blame] | 37 | <ctl name="IN2R PGA IN2RP Switch" value="0" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 38 | <ctl name="IN2R PGA IN2RN Switch" value="1" /> |
| 39 | |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 40 | <ctl name="AIF2DACL Mux" value="AIF3" /> |
| 41 | <ctl name="AIF2DACR Mux" value="AIF3" /> |
| 42 | <ctl name="AIF3ADC Mux" value="Mono PCM" /> |
| 43 | <ctl name="Mono PCM Out Mux" value="AIF2ADCL" /> |
Simon Wilson | 15f60a8 | 2012-04-24 20:56:32 -0700 | [diff] [blame] | 44 | |
Simon Wilson | 15f60a8 | 2012-04-24 20:56:32 -0700 | [diff] [blame] | 45 | <!-- These are commonly used control sequences --> |
| 46 | <path name="dac1"> |
| 47 | <ctl name="DAC1R Mixer AIF1.1 Switch" value="1" /> |
| 48 | <ctl name="DAC1L Mixer AIF1.1 Switch" value="1" /> |
| 49 | <ctl name="DAC1 Switch" value="1" /> |
| 50 | </path> |
| 51 | |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 52 | <path name="eq-speaker"> |
| 53 | <ctl name="AIF1DAC1 EQ Switch" value="1" /> |
Eric Laurent | c5cae7b | 2012-09-13 19:14:48 -0700 | [diff] [blame^] | 54 | <ctl name="AIF1DAC1 EQ1 Volume" value="3" /> |
| 55 | <ctl name="AIF1DAC1 EQ2 Volume" value="11" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 56 | <ctl name="AIF1DAC1 EQ3 Volume" value="12" /> |
| 57 | <ctl name="AIF1DAC1 EQ4 Volume" value="12" /> |
| 58 | <ctl name="AIF1DAC1 EQ5 Volume" value="12" /> |
| 59 | </path> |
| 60 | |
| 61 | <path name="eq-headphone"> |
| 62 | <ctl name="AIF1DAC1 EQ Switch" value="0" /> |
| 63 | </path> |
| 64 | |
| 65 | <path name="headphones"> |
| 66 | <path name="dac1" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 67 | <ctl name="Headphone Switch" value="1" /> |
| 68 | <ctl name="Left Output Mixer DAC Switch" value="1" /> |
| 69 | <ctl name="Right Output Mixer DAC Switch" value="1" /> |
| 70 | <path name="eq-headphone" /> |
| 71 | </path> |
| 72 | |
Simon Wilson | 15f60a8 | 2012-04-24 20:56:32 -0700 | [diff] [blame] | 73 | <path name="speaker"> |
| 74 | <path name="dac1" /> |
| 75 | <ctl name="Speaker Switch" value="1" /> |
| 76 | <ctl name="SPKR DAC1 Switch" value="1" /> |
| 77 | <ctl name="SPKL DAC1 Switch" value="1" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 78 | <ctl name="Speaker Mixer Volume" value="3" /> |
Eric Laurent | c5cae7b | 2012-09-13 19:14:48 -0700 | [diff] [blame^] | 79 | <ctl name="Speaker Boost Volume" value="5" /> |
| 80 | <ctl name="AIF1DRC1 Mode" value="Speakers Media" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 81 | <ctl name="AIF1DAC1 DRC Switch" value="1" /> |
| 82 | <path name="eq-speaker" /> |
Simon Wilson | 15f60a8 | 2012-04-24 20:56:32 -0700 | [diff] [blame] | 83 | </path> |
| 84 | |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 85 | <!-- TODO: these values are for lunchbox Mic wiring. Must be changed for Alpha HW --> |
Simon Wilson | 15f60a8 | 2012-04-24 20:56:32 -0700 | [diff] [blame] | 86 | |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 87 | <path name="adc-to-aif1adc"> |
Simon Wilson | b182c2b | 2012-07-02 18:06:44 -0700 | [diff] [blame] | 88 | <ctl name="AIF1ADC1L Mixer ADC/DMIC Switch" value="1" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 89 | <ctl name="AIF1ADC1R Mixer ADC/DMIC Switch" value="1" /> |
| 90 | <ctl name="AIF1ADC1L Mixer AIF2 Switch" value="0" /> |
| 91 | <ctl name="AIF1ADC1R Mixer AIF2 Switch" value="0" /> |
| 92 | </path> |
| 93 | |
| 94 | <path name="aif2-to-aif1adc"> |
| 95 | <ctl name="AIF1ADC1L Mixer ADC/DMIC Switch" value="0" /> |
| 96 | <ctl name="AIF1ADC1R Mixer ADC/DMIC Switch" value="0" /> |
| 97 | <ctl name="AIF1ADC1L Mixer AIF2 Switch" value="1" /> |
| 98 | <ctl name="AIF1ADC1R Mixer AIF2 Switch" value="1" /> |
| 99 | </path> |
| 100 | |
Simon Wilson | c4006be | 2012-08-17 11:23:38 -0700 | [diff] [blame] | 101 | <path name="main-mic"> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 102 | <ctl name="MIXINR IN2R Switch" value="1" /> |
| 103 | <ctl name="MIXINR IN2R Volume" value="1" /> |
| 104 | <ctl name="IN2R Switch" value="1" /> |
Eric Laurent | d7abdd0 | 2012-07-27 14:54:41 -0700 | [diff] [blame] | 105 | <ctl name="AIF1ADCL Source" value="Right" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 106 | <path name="adc-to-aif1adc" /> |
| 107 | </path> |
| 108 | |
Simon Wilson | c4006be | 2012-08-17 11:23:38 -0700 | [diff] [blame] | 109 | <path name="second-mic-left"> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 110 | <ctl name="MIXINL IN2L Switch" value="1" /> |
| 111 | <ctl name="MIXINL IN2L Volume" value="1" /> |
| 112 | <ctl name="IN2L Switch" value="1" /> |
Eric Laurent | d7abdd0 | 2012-07-27 14:54:41 -0700 | [diff] [blame] | 113 | <ctl name="AIF1ADCL Source" value="Left" /> |
| 114 | <path name="adc-to-aif1adc" /> |
| 115 | </path> |
| 116 | |
Simon Wilson | c4006be | 2012-08-17 11:23:38 -0700 | [diff] [blame] | 117 | <path name="second-mic-right"> |
Eric Laurent | d7abdd0 | 2012-07-27 14:54:41 -0700 | [diff] [blame] | 118 | <ctl name="MIXINL IN2L Switch" value="1" /> |
| 119 | <ctl name="MIXINL IN2L Volume" value="1" /> |
| 120 | <ctl name="IN2L Switch" value="1" /> |
| 121 | <ctl name="AIF1ADCR Source" value="Left" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 122 | <path name="adc-to-aif1adc" /> |
| 123 | </path> |
| 124 | |
Simon Wilson | c4006be | 2012-08-17 11:23:38 -0700 | [diff] [blame] | 125 | <path name="third-mic"> |
Simon Wilson | 15f60a8 | 2012-04-24 20:56:32 -0700 | [diff] [blame] | 126 | <ctl name="MIXINL IN1L Switch" value="1" /> |
| 127 | <ctl name="MIXINL IN1L Volume" value="1" /> |
| 128 | <ctl name="IN1L Switch" value="1" /> |
Eric Laurent | d7abdd0 | 2012-07-27 14:54:41 -0700 | [diff] [blame] | 129 | <ctl name="AIF1ADCR Source" value="Left" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 130 | <path name="adc-to-aif1adc" /> |
Simon Wilson | 15f60a8 | 2012-04-24 20:56:32 -0700 | [diff] [blame] | 131 | </path> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 132 | |
Simon Wilson | c4006be | 2012-08-17 11:23:38 -0700 | [diff] [blame] | 133 | <path name="headset-mic"> |
Eric Laurent | d7abdd0 | 2012-07-27 14:54:41 -0700 | [diff] [blame] | 134 | <ctl name="MIXINR IN1R Switch" value="1" /> |
| 135 | <ctl name="MIXINR IN1R Volume" value="1" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 136 | <ctl name="IN1R Switch" value="1" /> |
Eric Laurent | d7abdd0 | 2012-07-27 14:54:41 -0700 | [diff] [blame] | 137 | <ctl name="AIF1ADCL Source" value="Right" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 138 | <path name="adc-to-aif1adc" /> |
| 139 | </path> |
| 140 | |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 141 | <!-- These are useful named paths --> |
| 142 | |
| 143 | <!-- Playback paths --> |
| 144 | |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 145 | <path name="media-speaker"> |
| 146 | <path name="speaker" /> |
Eric Laurent | c5cae7b | 2012-09-13 19:14:48 -0700 | [diff] [blame^] | 147 | <ctl name="Speaker Volume" value="61" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 148 | </path> |
| 149 | |
| 150 | <path name="media-headphones"> |
| 151 | <path name="headphones" /> |
Eric Laurent | c5cae7b | 2012-09-13 19:14:48 -0700 | [diff] [blame^] | 152 | <ctl name="Headphone Volume" value="55" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 153 | </path> |
| 154 | |
| 155 | <path name="voice-rec-speaker"> |
| 156 | <path name="speaker" /> |
Eric Laurent | c5cae7b | 2012-09-13 19:14:48 -0700 | [diff] [blame^] | 157 | <ctl name="Speaker Volume" value="61" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 158 | </path> |
| 159 | |
| 160 | <path name="voice-rec-headphones"> |
| 161 | <path name="headphones" /> |
Eric Laurent | c5cae7b | 2012-09-13 19:14:48 -0700 | [diff] [blame^] | 162 | <ctl name="Headphone Volume" value="55" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 163 | </path> |
| 164 | |
| 165 | <path name="communication-speaker"> |
| 166 | <path name="speaker" /> |
Eric Laurent | c5cae7b | 2012-09-13 19:14:48 -0700 | [diff] [blame^] | 167 | <ctl name="Speaker Volume" value="61" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 168 | </path> |
| 169 | |
| 170 | <path name="communication-headphones"> |
| 171 | <path name="headphones" /> |
Eric Laurent | c5cae7b | 2012-09-13 19:14:48 -0700 | [diff] [blame^] | 172 | <ctl name="Headphone Volume" value="55" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 173 | </path> |
| 174 | |
| 175 | <path name="speaker-and-headphones"> |
| 176 | <path name="dac1" /> |
| 177 | <ctl name="Headphone Switch" value="1" /> |
| 178 | <ctl name="Left Output Mixer DAC Switch" value="1" /> |
| 179 | <ctl name="Right Output Mixer DAC Switch" value="1" /> |
| 180 | <ctl name="Speaker Switch" value="1" /> |
| 181 | <ctl name="SPKR DAC1 Switch" value="1" /> |
| 182 | <ctl name="SPKL DAC1 Switch" value="1" /> |
Eric Laurent | c5cae7b | 2012-09-13 19:14:48 -0700 | [diff] [blame^] | 183 | <ctl name="Speaker Mixer Volume" value="3" /> |
| 184 | <ctl name="Speaker Boost Volume" value="5" /> |
| 185 | <ctl name="Speaker Volume" value="61" /> |
| 186 | <ctl name="AIF1DRC1 Mode" value="Speakers Media" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 187 | <ctl name="AIF1DAC1 DRC Switch" value="1" /> |
| 188 | <path name="eq-speaker" /> |
| 189 | </path> |
| 190 | |
| 191 | <path name="bt-sco-headset"> |
| 192 | <ctl name="AIF2DAC2L Mixer AIF1.1 Switch" value="1" /> |
| 193 | <ctl name="AIF2DAC2R Mixer AIF1.1 Switch" value="1" /> |
| 194 | </path> |
| 195 | |
| 196 | <!-- Capture paths --> |
| 197 | |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 198 | <path name="media-main-mic"> |
| 199 | <path name="main-mic" /> |
Eric Laurent | d7abdd0 | 2012-07-27 14:54:41 -0700 | [diff] [blame] | 200 | <ctl name="IN2R Volume" value="16" /> |
| 201 | <ctl name="AIF1ADC1 HPF Switch" value="1" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 202 | <ctl name="AIF1ADC1 HPF Mode" value="HiFi" /> |
| 203 | </path> |
| 204 | |
| 205 | <path name="voice-rec-main-mic"> |
Simon Wilson | c4006be | 2012-08-17 11:23:38 -0700 | [diff] [blame] | 206 | <path name="main-mic" /> |
| 207 | <path name="second-mic-right" /> |
Eric Laurent | d7abdd0 | 2012-07-27 14:54:41 -0700 | [diff] [blame] | 208 | <ctl name="IN2R Volume" value="16" /> |
| 209 | <ctl name="IN2L Volume" value="16" /> |
| 210 | <ctl name="AIF1ADC1 HPF Switch" value="1" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 211 | <ctl name="AIF1ADC1 HPF Mode" value="HiFi" /> |
| 212 | </path> |
| 213 | |
| 214 | <path name="communication-main-mic"> |
Simon Wilson | c4006be | 2012-08-17 11:23:38 -0700 | [diff] [blame] | 215 | <path name="main-mic" /> |
| 216 | <path name="second-mic-right" /> |
Eric Laurent | d7abdd0 | 2012-07-27 14:54:41 -0700 | [diff] [blame] | 217 | <ctl name="IN2R Volume" value="16" /> |
| 218 | <ctl name="IN2L Volume" value="16" /> |
| 219 | <ctl name="AIF1ADC1 HPF Switch" value="1" /> |
| 220 | <ctl name="AIF1ADC1 HPF Mode" value="HiFi" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 221 | </path> |
| 222 | |
| 223 | <path name="media-second-mic"> |
Simon Wilson | c4006be | 2012-08-17 11:23:38 -0700 | [diff] [blame] | 224 | <path name="second-mic-left" /> |
Eric Laurent | d7abdd0 | 2012-07-27 14:54:41 -0700 | [diff] [blame] | 225 | <ctl name="IN2L Volume" value="16" /> |
| 226 | <ctl name="AIF1ADC1 HPF Switch" value="1" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 227 | <ctl name="AIF1ADC1 HPF Mode" value="HiFi" /> |
| 228 | </path> |
| 229 | |
| 230 | <path name="media-headset-mic"> |
| 231 | <path name="headset-mic" /> |
Eric Laurent | d7abdd0 | 2012-07-27 14:54:41 -0700 | [diff] [blame] | 232 | <ctl name="IN1R Volume" value="16" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 233 | <ctl name="AIF1ADC1 HPF Mode" value="HiFi" /> |
| 234 | </path> |
| 235 | |
Eric Laurent | d7abdd0 | 2012-07-27 14:54:41 -0700 | [diff] [blame] | 236 | <!-- TODO headset paths not properly configured yet --> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 237 | <path name="voice-rec-headset-mic"> |
| 238 | <path name="headset-mic" /> |
Eric Laurent | d7abdd0 | 2012-07-27 14:54:41 -0700 | [diff] [blame] | 239 | <ctl name="IN1R Volume" value="16" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 240 | <ctl name="AIF1ADC1 HPF Mode" value="HiFi" /> |
| 241 | </path> |
| 242 | |
| 243 | <path name="communication-headset-mic"> |
| 244 | <path name="headset-mic" /> |
Eric Laurent | d7abdd0 | 2012-07-27 14:54:41 -0700 | [diff] [blame] | 245 | <ctl name="IN1R Volume" value="16" /> |
Eric Laurent | 8753203 | 2012-07-16 13:53:20 -0700 | [diff] [blame] | 246 | <ctl name="AIF1ADC1 HPF Mode" value="Voice 1" /> |
| 247 | </path> |
| 248 | |
| 249 | <path name="bt-sco-mic"> |
| 250 | <path name="aif2-to-aif1adc" /> |
| 251 | </path> |
| 252 | |
Simon Wilson | 15f60a8 | 2012-04-24 20:56:32 -0700 | [diff] [blame] | 253 | </mixer> |