Lines Matching +full:0 +full:xe7
23 #define DVOL_CTL_DVMUTE_OFF 0 /* Digital volume MUTE Off */
25 #define ML26124_SAI_FRAME_SYNC (BIT(5) | BIT(0)) /* For mono (Telecodec) */
53 static const DECLARE_TLV_DB_SCALE(digital_tlv, -7150, 50, 0);
55 static const DECLARE_TLV_DB_SCALE(alclvl, -2250, 150, 0);
56 static const DECLARE_TLV_DB_SCALE(mingain, -1200, 600, 0);
57 static const DECLARE_TLV_DB_SCALE(maxgain, -675, 600, 0);
58 static const DECLARE_TLV_DB_SCALE(boost_vol, -1200, 75, 0);
70 SOC_SINGLE_TLV("Capture Digital Volume", ML26124_RECORD_DIG_VOL, 0,
71 0xff, 1, digital_tlv),
72 SOC_SINGLE_TLV("Playback Digital Volume", ML26124_PLBAK_DIG_VOL, 0,
73 0xff, 1, digital_tlv),
74 SOC_SINGLE_TLV("Digital Boost Volume", ML26124_DIGI_BOOST_VOL, 0,
75 0x3f, 0, boost_vol),
76 SOC_SINGLE_TLV("EQ Band0 Volume", ML26124_EQ_GAIN_BRAND0, 0,
77 0xff, 1, digital_tlv),
78 SOC_SINGLE_TLV("EQ Band1 Volume", ML26124_EQ_GAIN_BRAND1, 0,
79 0xff, 1, digital_tlv),
80 SOC_SINGLE_TLV("EQ Band2 Volume", ML26124_EQ_GAIN_BRAND2, 0,
81 0xff, 1, digital_tlv),
82 SOC_SINGLE_TLV("EQ Band3 Volume", ML26124_EQ_GAIN_BRAND3, 0,
83 0xff, 1, digital_tlv),
84 SOC_SINGLE_TLV("EQ Band4 Volume", ML26124_EQ_GAIN_BRAND4, 0,
85 0xff, 1, digital_tlv),
86 SOC_SINGLE_TLV("ALC Target Level", ML26124_ALC_TARGET_LEV, 0,
87 0xf, 1, alclvl),
88 SOC_SINGLE_TLV("ALC Min Input Volume", ML26124_ALC_MAXMIN_GAIN, 0,
89 7, 0, mingain),
93 ML26124_PL_MAXMIN_GAIN, 0, 7, 0, mingain),
96 SOC_SINGLE_TLV("Playback Boost Volume", ML26124_PLYBAK_BOST_VOL, 0,
97 0x3f, 0, boost_vol),
98 SOC_SINGLE("DC High Pass Filter Switch", ML26124_FILTER_EN, 0, 1, 0),
99 SOC_SINGLE("Noise High Pass Filter Switch", ML26124_FILTER_EN, 1, 1, 0),
101 1, 0),
102 SOC_SINGLE("EQ Band0 Switch", ML26124_FILTER_EN, 2, 1, 0),
103 SOC_SINGLE("EQ Band1 Switch", ML26124_FILTER_EN, 3, 1, 0),
104 SOC_SINGLE("EQ Band2 Switch", ML26124_FILTER_EN, 4, 1, 0),
105 SOC_SINGLE("EQ Band3 Switch", ML26124_FILTER_EN, 5, 1, 0),
106 SOC_SINGLE("EQ Band4 Switch", ML26124_FILTER_EN, 6, 1, 0),
107 SOC_SINGLE("Play Limiter", ML26124_DVOL_CTL, 0, 1, 0),
108 SOC_SINGLE("Capture Limiter", ML26124_DVOL_CTL, 1, 1, 0),
109 SOC_SINGLE("Digital Volume Fade Switch", ML26124_DVOL_CTL, 3, 1, 0),
110 SOC_SINGLE("Digital Switch", ML26124_DVOL_CTL, 4, 1, 0),
116 SOC_DAPM_SINGLE("DAC Switch", ML26124_SPK_AMP_OUT, 1, 1, 0),
118 0),
119 SOC_DAPM_SINGLE("PGA Switch", ML26124_SPK_AMP_OUT, 5, 1, 0),
127 ML26124_MIC_IF_CTL, 0, ml26124_input_select);
133 SOC_DAPM_SINGLE("Switch", ML26124_PW_LOUT_PW_MNG, 1, 1, 0);
136 SND_SOC_DAPM_SUPPLY("MCLKEN", ML26124_CLK_EN, 0, 0, NULL, 0),
137 SND_SOC_DAPM_SUPPLY("PLLEN", ML26124_CLK_EN, 1, 0, NULL, 0),
138 SND_SOC_DAPM_SUPPLY("PLLOE", ML26124_CLK_EN, 2, 0, NULL, 0),
139 SND_SOC_DAPM_SUPPLY("MICBIAS", ML26124_PW_REF_PW_MNG, 2, 0, NULL, 0),
140 SND_SOC_DAPM_MIXER("Output Mixer", SND_SOC_NOPM, 0, 0,
141 &ml26124_output_mixer_controls[0],
143 SND_SOC_DAPM_DAC("DAC", "Playback", ML26124_PW_DAC_PW_MNG, 1, 0),
144 SND_SOC_DAPM_ADC("ADC", "Capture", ML26124_PW_IN_PW_MNG, 1, 0),
145 SND_SOC_DAPM_PGA("PGA", ML26124_PW_IN_PW_MNG, 3, 0, NULL, 0),
146 SND_SOC_DAPM_MUX("Input Mux", SND_SOC_NOPM, 0, 0,
148 SND_SOC_DAPM_SWITCH("Line Out Enable", SND_SOC_NOPM, 0, 0,
184 {12288000, 16000, 0xc, 0x0, 0x20, 0x0, 0x4},
185 {12288000, 32000, 0xc, 0x0, 0x20, 0x0, 0x4},
186 {12288000, 48000, 0xc, 0x0, 0x30, 0x0, 0x4},
191 {0x00, 0x00 }, /* Sampling Rate */
192 {0x02, 0x00}, /* PLL NL */
193 {0x04, 0x00}, /* PLLNH */
194 {0x06, 0x00}, /* PLLML */
195 {0x08, 0x00}, /* MLLMH */
196 {0x0a, 0x00}, /* PLLDIV */
197 {0x0c, 0x00}, /* Clock Enable */
198 {0x0e, 0x00}, /* CLK Input/Output Control */
201 {0x10, 0x00}, /* Software RESET */
202 {0x12, 0x00}, /* Record/Playback Run */
203 {0x14, 0x00}, /* Mic Input/Output control */
206 {0x20, 0x00}, /* Reference Power Management */
207 {0x22, 0x00}, /* Input Power Management */
208 {0x24, 0x00}, /* DAC Power Management */
209 {0x26, 0x00}, /* SP-AMP Power Management */
210 {0x28, 0x00}, /* LINEOUT Power Management */
211 {0x2a, 0x00}, /* VIDEO Power Management */
212 {0x2e, 0x00}, /* AC-CMP Power Management */
215 {0x30, 0x04}, /* MICBIAS Voltage Control */
218 {0x32, 0x10}, /* MIC Input Volume */
219 {0x38, 0x00}, /* Mic Boost Volume */
220 {0x3a, 0x33}, /* Speaker AMP Volume */
221 {0x48, 0x00}, /* AMP Volume Control Function Enable */
222 {0x4a, 0x00}, /* Amplifier Volume Fader Control */
225 {0x54, 0x00}, /* Speaker AMP Output Control */
226 {0x5a, 0x00}, /* Mic IF Control */
227 {0xe8, 0x01}, /* Mic Select Control */
230 {0x60, 0x00}, /* SAI-Trans Control */
231 {0x62, 0x00}, /* SAI-Receive Control */
232 {0x64, 0x00}, /* SAI Mode select */
235 {0x66, 0x01}, /* Filter Func Enable */
236 {0x68, 0x00}, /* Volume Control Func Enable */
237 {0x6A, 0x00}, /* Mixer & Volume Control*/
238 {0x6C, 0xff}, /* Record Digital Volume */
239 {0x70, 0xff}, /* Playback Digital Volume */
240 {0x72, 0x10}, /* Digital Boost Volume */
241 {0x74, 0xe7}, /* EQ gain Band0 */
242 {0x76, 0xe7}, /* EQ gain Band1 */
243 {0x78, 0xe7}, /* EQ gain Band2 */
244 {0x7A, 0xe7}, /* EQ gain Band3 */
245 {0x7C, 0xe7}, /* EQ gain Band4 */
246 {0x7E, 0x00}, /* HPF2 CutOff*/
247 {0x80, 0x00}, /* EQ Band0 Coef0L */
248 {0x82, 0x00}, /* EQ Band0 Coef0H */
249 {0x84, 0x00}, /* EQ Band0 Coef0L */
250 {0x86, 0x00}, /* EQ Band0 Coef0H */
251 {0x88, 0x00}, /* EQ Band1 Coef0L */
252 {0x8A, 0x00}, /* EQ Band1 Coef0H */
253 {0x8C, 0x00}, /* EQ Band1 Coef0L */
254 {0x8E, 0x00}, /* EQ Band1 Coef0H */
255 {0x90, 0x00}, /* EQ Band2 Coef0L */
256 {0x92, 0x00}, /* EQ Band2 Coef0H */
257 {0x94, 0x00}, /* EQ Band2 Coef0L */
258 {0x96, 0x00}, /* EQ Band2 Coef0H */
259 {0x98, 0x00}, /* EQ Band3 Coef0L */
260 {0x9A, 0x00}, /* EQ Band3 Coef0H */
261 {0x9C, 0x00}, /* EQ Band3 Coef0L */
262 {0x9E, 0x00}, /* EQ Band3 Coef0H */
263 {0xA0, 0x00}, /* EQ Band4 Coef0L */
264 {0xA2, 0x00}, /* EQ Band4 Coef0H */
265 {0xA4, 0x00}, /* EQ Band4 Coef0L */
266 {0xA6, 0x00}, /* EQ Band4 Coef0H */
269 {0xb0, 0x00}, /* ALC Mode */
270 {0xb2, 0x02}, /* ALC Attack Time */
271 {0xb4, 0x03}, /* ALC Decay Time */
272 {0xb6, 0x00}, /* ALC Hold Time */
273 {0xb8, 0x0b}, /* ALC Target Level */
274 {0xba, 0x70}, /* ALC Max/Min Gain */
275 {0xbc, 0x00}, /* Noise Gate Threshold */
276 {0xbe, 0x00}, /* ALC ZeroCross TimeOut */
279 {0xc0, 0x04}, /* PL Attack Time */
280 {0xc2, 0x05}, /* PL Decay Time */
281 {0xc4, 0x0d}, /* PL Target Level */
282 {0xc6, 0x70}, /* PL Max/Min Gain */
283 {0xc8, 0x10}, /* Playback Boost Volume */
284 {0xca, 0x00}, /* PL ZeroCross TimeOut */
287 {0xd0, 0x01}, /* VIDEO AMP Gain Control */
288 {0xd2, 0x01}, /* VIDEO AMP Setup 1 */
289 {0xd4, 0x01}, /* VIDEO AMP Control2 */
292 /* Get sampling rate value of sampling rate setting register (0x0) */
317 for (i = 0; i < ARRAY_SIZE(coeff_div); i++) { in get_coeff()
333 if (i < 0) in ml26124_hw_params()
342 BIT(0) | BIT(1), 1); in ml26124_hw_params()
346 BIT(0) | BIT(1), 2); in ml26124_hw_params()
350 BIT(0) | BIT(1), 3); in ml26124_hw_params()
358 BIT(0) | BIT(1), 0); in ml26124_hw_params()
362 if (srate < 0) in ml26124_hw_params()
365 snd_soc_component_update_bits(component, ML26124_SMPLING_RATE, 0xf, srate); in ml26124_hw_params()
366 snd_soc_component_update_bits(component, ML26124_PLLNL, 0xff, coeff_div[i].pllnl); in ml26124_hw_params()
367 snd_soc_component_update_bits(component, ML26124_PLLNH, 0x1, coeff_div[i].pllnh); in ml26124_hw_params()
368 snd_soc_component_update_bits(component, ML26124_PLLML, 0xff, coeff_div[i].pllml); in ml26124_hw_params()
369 snd_soc_component_update_bits(component, ML26124_PLLMH, 0x3f, coeff_div[i].pllmh); in ml26124_hw_params()
370 snd_soc_component_update_bits(component, ML26124_PLLDIV, 0x1f, coeff_div[i].plldiv); in ml26124_hw_params()
372 return 0; in ml26124_hw_params()
382 snd_soc_component_update_bits(component, ML26124_REC_PLYBAK_RUN, BIT(0), 1); in ml26124_mute()
396 return 0; in ml26124_mute()
410 mode = 0; in ml26124_set_dai_fmt()
415 snd_soc_component_update_bits(component, ML26124_SAI_MODE_SEL, BIT(0), mode); in ml26124_set_dai_fmt()
433 return 0; in ml26124_set_dai_fmt()
455 return 0; in ml26124_set_dai_sysclk()
486 ML26124_VMID, 0); in ml26124_set_bias_level()
489 return 0; in ml26124_set_bias_level()
521 snd_soc_component_update_bits(component, ML26124_SW_RST, 0x01, 1); in ml26124_probe()
522 snd_soc_component_update_bits(component, ML26124_SW_RST, 0x01, 0); in ml26124_probe()
524 return 0; in ml26124_probe()
549 .write_flag_mask = 0x01,