Lines Matching +full:0 +full:ms
24 #define ADAU1761_DIGMIC_JACKDETECT 0x4008
25 #define ADAU1761_REC_MIXER_LEFT0 0x400a
26 #define ADAU1761_REC_MIXER_LEFT1 0x400b
27 #define ADAU1761_REC_MIXER_RIGHT0 0x400c
28 #define ADAU1761_REC_MIXER_RIGHT1 0x400d
29 #define ADAU1761_LEFT_DIFF_INPUT_VOL 0x400e
30 #define ADAU1761_RIGHT_DIFF_INPUT_VOL 0x400f
31 #define ADAU1761_ALC_CTRL0 0x4011
32 #define ADAU1761_ALC_CTRL1 0x4012
33 #define ADAU1761_ALC_CTRL2 0x4013
34 #define ADAU1761_ALC_CTRL3 0x4014
35 #define ADAU1761_PLAY_LR_MIXER_LEFT 0x4020
36 #define ADAU1761_PLAY_MIXER_LEFT0 0x401c
37 #define ADAU1761_PLAY_MIXER_LEFT1 0x401d
38 #define ADAU1761_PLAY_MIXER_RIGHT0 0x401e
39 #define ADAU1761_PLAY_MIXER_RIGHT1 0x401f
40 #define ADAU1761_PLAY_LR_MIXER_RIGHT 0x4021
41 #define ADAU1761_PLAY_MIXER_MONO 0x4022
42 #define ADAU1761_PLAY_HP_LEFT_VOL 0x4023
43 #define ADAU1761_PLAY_HP_RIGHT_VOL 0x4024
44 #define ADAU1761_PLAY_LINE_LEFT_VOL 0x4025
45 #define ADAU1761_PLAY_LINE_RIGHT_VOL 0x4026
46 #define ADAU1761_PLAY_MONO_OUTPUT_VOL 0x4027
47 #define ADAU1761_POP_CLICK_SUPPRESS 0x4028
48 #define ADAU1761_JACK_DETECT_PIN 0x4031
49 #define ADAU1761_DEJITTER 0x4036
50 #define ADAU1761_CLK_ENABLE0 0x40f9
51 #define ADAU1761_CLK_ENABLE1 0x40fa
53 #define ADAU1761_DIGMIC_JACKDETECT_ACTIVE_LOW BIT(0)
56 #define ADAU1761_DIFF_INPUT_VOL_LDEN BIT(0)
58 #define ADAU1761_PLAY_MONO_OUTPUT_VOL_MODE_HP BIT(0)
61 #define ADAU1761_PLAY_HP_RIGHT_VOL_MODE_HP BIT(0)
63 #define ADAU1761_PLAY_LINE_LEFT_VOL_MODE_HP BIT(0)
65 #define ADAU1761_PLAY_LINE_RIGHT_VOL_MODE_HP BIT(0)
71 { ADAU1761_DEJITTER, 0x03 },
72 { ADAU1761_DIGMIC_JACKDETECT, 0x00 },
73 { ADAU1761_REC_MIXER_LEFT0, 0x00 },
74 { ADAU1761_REC_MIXER_LEFT1, 0x00 },
75 { ADAU1761_REC_MIXER_RIGHT0, 0x00 },
76 { ADAU1761_REC_MIXER_RIGHT1, 0x00 },
77 { ADAU1761_LEFT_DIFF_INPUT_VOL, 0x00 },
78 { ADAU1761_ALC_CTRL0, 0x00 },
79 { ADAU1761_ALC_CTRL1, 0x00 },
80 { ADAU1761_ALC_CTRL2, 0x00 },
81 { ADAU1761_ALC_CTRL3, 0x00 },
82 { ADAU1761_RIGHT_DIFF_INPUT_VOL, 0x00 },
83 { ADAU1761_PLAY_LR_MIXER_LEFT, 0x00 },
84 { ADAU1761_PLAY_MIXER_LEFT0, 0x00 },
85 { ADAU1761_PLAY_MIXER_LEFT1, 0x00 },
86 { ADAU1761_PLAY_MIXER_RIGHT0, 0x00 },
87 { ADAU1761_PLAY_MIXER_RIGHT1, 0x00 },
88 { ADAU1761_PLAY_LR_MIXER_RIGHT, 0x00 },
89 { ADAU1761_PLAY_MIXER_MONO, 0x00 },
90 { ADAU1761_PLAY_HP_LEFT_VOL, 0x00 },
91 { ADAU1761_PLAY_HP_RIGHT_VOL, 0x00 },
92 { ADAU1761_PLAY_LINE_LEFT_VOL, 0x00 },
93 { ADAU1761_PLAY_LINE_RIGHT_VOL, 0x00 },
94 { ADAU1761_PLAY_MONO_OUTPUT_VOL, 0x00 },
95 { ADAU1761_POP_CLICK_SUPPRESS, 0x00 },
96 { ADAU1761_JACK_DETECT_PIN, 0x00 },
97 { ADAU1761_CLK_ENABLE0, 0x00 },
98 { ADAU1761_CLK_ENABLE1, 0x00 },
99 { ADAU17X1_CLOCK_CONTROL, 0x00 },
100 { ADAU17X1_PLL_CONTROL, 0x00 },
101 { ADAU17X1_REC_POWER_MGMT, 0x00 },
102 { ADAU17X1_MICBIAS, 0x00 },
103 { ADAU17X1_SERIAL_PORT0, 0x00 },
104 { ADAU17X1_SERIAL_PORT1, 0x00 },
105 { ADAU17X1_CONVERTER0, 0x00 },
106 { ADAU17X1_CONVERTER1, 0x00 },
107 { ADAU17X1_LEFT_INPUT_DIGITAL_VOL, 0x00 },
108 { ADAU17X1_RIGHT_INPUT_DIGITAL_VOL, 0x00 },
109 { ADAU17X1_ADC_CONTROL, 0x00 },
110 { ADAU17X1_PLAY_POWER_MGMT, 0x00 },
111 { ADAU17X1_DAC_CONTROL0, 0x00 },
112 { ADAU17X1_DAC_CONTROL1, 0x00 },
113 { ADAU17X1_DAC_CONTROL2, 0x00 },
114 { ADAU17X1_SERIAL_PORT_PAD, 0xaa },
115 { ADAU17X1_CONTROL_PORT_PAD0, 0xaa },
116 { ADAU17X1_CONTROL_PORT_PAD1, 0x00 },
117 { ADAU17X1_DSP_SAMPLING_RATE, 0x01 },
118 { ADAU17X1_SERIAL_INPUT_ROUTE, 0x00 },
119 { ADAU17X1_SERIAL_OUTPUT_ROUTE, 0x00 },
120 { ADAU17X1_DSP_ENABLE, 0x00 },
121 { ADAU17X1_DSP_RUN, 0x00 },
122 { ADAU17X1_SERIAL_SAMPLING_RATE, 0x00 },
126 static const DECLARE_TLV_DB_SCALE(adau1761_diff_in_tlv, -1200, 75, 0);
127 static const DECLARE_TLV_DB_SCALE(adau1761_out_tlv, -5700, 100, 0);
132 static const DECLARE_TLV_DB_SCALE(adau1761_alc_max_gain_tlv, -1200, 600, 0);
133 static const DECLARE_TLV_DB_SCALE(adau1761_alc_target_tlv, -2850, 150, 0);
134 static const DECLARE_TLV_DB_SCALE(adau1761_alc_ng_threshold_tlv, -7650, 150, 0);
137 0, 2, 3,
156 ADAU17X1_PLAY_POWER_MGMT, 2, 0x3, adau1761_bias_select_text,
159 ADAU17X1_REC_POWER_MGMT, 1, 0x3, adau1761_bias_select_text,
163 3, 0, 1, 2,
168 "24 ms",
169 "48 ms",
170 "96 ms",
182 "2.67 ms",
183 "5.34 ms",
184 "10.68 ms",
185 "21.36 ms",
186 "42.72 ms",
187 "85.44 ms",
188 "170.88 ms",
189 "341.76 ms",
190 "683.52 ms",
191 "1367 ms",
192 "2734.1 ms",
193 "5468.2 ms",
194 "10936 ms",
195 "21873 ms",
196 "43745 ms",
197 "87491 ms",
201 "6 ms",
202 "12 ms",
203 "24 ms",
204 "48 ms",
205 "96 ms",
206 "192 ms",
207 "384 ms",
208 "768 ms",
209 "1540 ms",
210 "3070 ms",
211 "6140 ms",
212 "12290 ms",
213 "24580 ms",
214 "49150 ms",
215 "98300 ms",
216 "196610 ms",
220 "24 ms",
221 "48 ms",
222 "96 ms",
223 "192 ms",
224 "384 ms",
225 "768 ms",
226 "15400 ms",
227 "30700 ms",
228 "61400 ms",
229 "12290 ms",
230 "24580 ms",
231 "49150 ms",
232 "98300 ms",
233 "196610 ms",
234 "393220 ms",
235 "786430 ms",
246 ADAU1761_ALC_CTRL0, 6, 0x3, adau1761_pga_slew_time_text,
249 ADAU1761_ALC_CTRL0, 0, adau1761_alc_function_text);
255 ADAU1761_ALC_CTRL2, 0, adau1761_alc_decay_time_text);
261 4, 1, 0),
266 ADAU1761_RIGHT_DIFF_INPUT_VOL, 2, 0x3f, 0,
269 ADAU1761_RIGHT_DIFF_INPUT_VOL, 1, 1, 0),
272 ADAU1761_REC_MIXER_RIGHT1, 3, 2, 0, adau1761_pga_boost_tlv),
277 3, 7, 0, adau1761_alc_max_gain_tlv),
281 0, 15, 0, adau1761_alc_target_tlv),
286 ADAU1761_ALC_CTRL3, 5, 1, 0),
288 ADAU1761_ALC_CTRL3, 0, 31, 0, adau1761_alc_ng_threshold_tlv),
293 4, 7, 0, adau1761_sing_in_tlv),
295 1, 7, 0, adau1761_sing_in_tlv),
297 4, 7, 0, adau1761_sing_in_tlv),
299 1, 7, 0, adau1761_sing_in_tlv),
304 ADAU1761_REC_MIXER_RIGHT1, 0, 7, 0, adau1761_sing_in_tlv),
307 ADAU1761_PLAY_HP_RIGHT_VOL, 2, 0x3f, 0, adau1761_out_tlv),
309 ADAU1761_PLAY_HP_RIGHT_VOL, 1, 1, 0),
311 ADAU1761_PLAY_LINE_RIGHT_VOL, 2, 0x3f, 0, adau1761_out_tlv),
313 ADAU1761_PLAY_LINE_RIGHT_VOL, 1, 1, 0),
324 2, 0x3f, 0, adau1761_out_tlv),
326 1, 1, 0),
331 ADAU1761_PLAY_MIXER_LEFT0, 5, 1, 0),
333 ADAU1761_PLAY_MIXER_LEFT0, 6, 1, 0),
335 ADAU1761_PLAY_MIXER_LEFT0, 1, 8, 0, adau1761_sidetone_tlv),
337 ADAU1761_PLAY_MIXER_LEFT1, 4, 8, 0, adau1761_sidetone_tlv),
339 ADAU1761_PLAY_MIXER_LEFT1, 0, 8, 0, adau1761_sidetone_tlv),
344 ADAU1761_PLAY_MIXER_RIGHT0, 5, 1, 0),
346 ADAU1761_PLAY_MIXER_RIGHT0, 6, 1, 0),
348 ADAU1761_PLAY_MIXER_RIGHT0, 1, 8, 0, adau1761_sidetone_tlv),
350 ADAU1761_PLAY_MIXER_RIGHT1, 4, 8, 0, adau1761_sidetone_tlv),
352 ADAU1761_PLAY_MIXER_RIGHT1, 0, 8, 0, adau1761_sidetone_tlv),
357 ADAU1761_PLAY_LR_MIXER_LEFT, 1, 2, 0, adau1761_boost_tlv),
359 ADAU1761_PLAY_LR_MIXER_LEFT, 3, 2, 0, adau1761_boost_tlv),
364 ADAU1761_PLAY_LR_MIXER_RIGHT, 1, 2, 0, adau1761_boost_tlv),
366 ADAU1761_PLAY_LR_MIXER_RIGHT, 3, 2, 0, adau1761_boost_tlv),
387 regmap_write(adau->regmap, ADAU1761_DEJITTER, 0); in adau1761_dejitter_fixup()
391 return 0; in adau1761_dejitter_fixup()
395 SND_SOC_DAPM_MIXER("Left Input Mixer", ADAU1761_REC_MIXER_LEFT0, 0, 0,
396 NULL, 0),
397 SND_SOC_DAPM_MIXER("Right Input Mixer", ADAU1761_REC_MIXER_RIGHT0, 0, 0,
398 NULL, 0),
401 0, 0, adau1761_left_mixer_controls),
403 0, 0, adau1761_right_mixer_controls),
405 0, 0, adau1761_left_lr_mixer_controls),
407 0, 0, adau1761_right_lr_mixer_controls),
410 0, 0, NULL, 0),
412 SND_SOC_DAPM_SUPPLY_S("SYSCLK", 2, SND_SOC_NOPM, 0, 0, NULL, 0),
431 0, 0, NULL, 0),
438 0, 0, NULL, 0),
496 SND_SOC_DAPM_MUX("Left Decimator Mux", SND_SOC_NOPM, 0, 0,
498 SND_SOC_DAPM_MUX("Right Decimator Mux", SND_SOC_NOPM, 0, 0,
521 0, 0, NULL, 0),
523 1, 0, NULL, 0),
525 3, 0, NULL, 0),
528 4, 0, NULL, 0),
530 2, 0, NULL, 0),
532 SND_SOC_DAPM_SUPPLY("Slew Clock", ADAU1761_CLK_ENABLE0, 6, 0, NULL, 0),
533 SND_SOC_DAPM_SUPPLY("ALC Clock", ADAU1761_CLK_ENABLE0, 5, 0, NULL, 0),
535 SND_SOC_DAPM_SUPPLY_S("Digital Clock 0", 1, ADAU1761_CLK_ENABLE1,
536 0, 0, NULL, 0),
538 1, 0, NULL, 0),
542 { "Left Decimator", NULL, "Digital Clock 0", },
543 { "Right Decimator", NULL, "Digital Clock 0", },
544 { "Left DAC", NULL, "Digital Clock 0", },
545 { "Right DAC", NULL, "Digital Clock 0", },
559 { "Slew Clock", NULL, "Digital Clock 0" },
566 { "Digital Clock 0", NULL, "SYSCLK" },
571 { "DSP", NULL, "Digital Clock 0" },
578 int val, ret = 0; in adau1761_compatibility_probe()
582 return 0; in adau1761_compatibility_probe()
605 regmap_write(regmap, ADAU17X1_SERIAL_SAMPLING_RATE, 0); in adau1761_compatibility_probe()
609 if (val != 0) in adau1761_compatibility_probe()
615 regmap_write(regmap, ADAU17X1_CLOCK_CONTROL, 0); in adau1761_compatibility_probe()
640 ADAU17X1_CLOCK_CONTROL_SYSCLK_EN, 0); in adau1761_set_bias_level()
645 return 0; in adau1761_set_bias_level()
665 unsigned int val = 0; in adau1761_setup_digmic_jackdetect()
719 return 0; in adau1761_setup_digmic_jackdetect()
828 if (ret < 0) in adau1761_component_probe()
909 regmap_write(adau->regmap, ADAU17X1_SERIAL_INPUT_ROUTE, 0x01); in adau1761_component_probe()
910 regmap_write(adau->regmap, ADAU17X1_SERIAL_OUTPUT_ROUTE, 0x01); in adau1761_component_probe()
913 if (ret < 0) in adau1761_component_probe()
916 return 0; in adau1761_component_probe()
1011 .max_register = 0x40fa,