Lines Matching +full:0 +full:x2d
58 crosstalk_h &= 0x20; in es8326_crosstalk1_get()
59 crosstalk_l &= 0xf0; in es8326_crosstalk1_get()
61 ucontrol->value.integer.value[0] = crosstalk; in es8326_crosstalk1_get()
63 return 0; in es8326_crosstalk1_get()
74 crosstalk = ucontrol->value.integer.value[0]; in es8326_crosstalk1_set()
76 crosstalk_h = (crosstalk & 0x10) << 1; in es8326_crosstalk1_set()
77 crosstalk_l &= 0x0f; in es8326_crosstalk1_set()
78 crosstalk_l |= (crosstalk & 0x0f) << 4; in es8326_crosstalk1_set()
80 0x20, crosstalk_h); in es8326_crosstalk1_set()
83 return 0; in es8326_crosstalk1_set()
96 crosstalk_h &= 0x10; in es8326_crosstalk2_get()
97 crosstalk_l &= 0x0f; in es8326_crosstalk2_get()
99 ucontrol->value.integer.value[0] = crosstalk; in es8326_crosstalk2_get()
101 return 0; in es8326_crosstalk2_get()
112 crosstalk = ucontrol->value.integer.value[0]; in es8326_crosstalk2_set()
114 crosstalk_h = crosstalk & 0x10; in es8326_crosstalk2_set()
115 crosstalk_l &= 0xf0; in es8326_crosstalk2_set()
116 crosstalk_l |= crosstalk & 0x0f; in es8326_crosstalk2_set()
118 0x10, crosstalk_h); in es8326_crosstalk2_set()
121 return 0; in es8326_crosstalk2_set()
124 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9550, 50, 0);
125 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -9550, 50, 0);
126 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_analog_pga_tlv, 0, 300, 0);
127 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_pga_tlv, 0, 600, 0);
128 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(softramp_rate, 0, 100, 0);
129 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(drc_target_tlv, -3200, 200, 0);
130 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(drc_recovery_tlv, -125, 250, 0);
162 SOC_SINGLE_TLV("DAC Playback Volume", ES8326_DAC_VOL, 0, 0xbf, 0, dac_vol_tlv),
164 SOC_SINGLE_TLV("DAC Ramp Rate", ES8326_DAC_RAMPRATE, 0, 0x0f, 0, softramp_rate),
165 SOC_SINGLE_TLV("DRC Recovery Level", ES8326_DRC_RECOVERY, 0, 4, 0, drc_recovery_tlv),
167 SOC_SINGLE_TLV("DRC Target Level", ES8326_DRC_WINSIZE, 0, 0x0f, 0, drc_target_tlv),
169 SOC_DOUBLE_R_TLV("ADC Capture Volume", ES8326_ADC1_VOL, ES8326_ADC2_VOL, 0, 0xff, 0,
171 SOC_DOUBLE_TLV("ADC PGA Volume", ES8326_ADC_SCALE, 4, 0, 5, 0, adc_pga_tlv),
172 SOC_SINGLE_TLV("ADC PGA Gain Volume", ES8326_PGAGAIN, 0, 10, 0, adc_analog_pga_tlv),
173 SOC_SINGLE_TLV("ADC Ramp Rate", ES8326_ADC_RAMPRATE, 0, 0x0f, 0, softramp_rate),
174 SOC_SINGLE("ALC Capture Switch", ES8326_ALC_RECOVERY, 3, 1, 0),
176 0, 4, 0, drc_recovery_tlv),
179 0, 0x0f, 0, drc_target_tlv),
181 SOC_SINGLE_EXT("CROSSTALK1", SND_SOC_NOPM, 0, 31, 0,
183 SOC_SINGLE_EXT("CROSSTALK2", SND_SOC_NOPM, 0, 31, 0,
193 SND_SOC_DAPM_ADC("ADC L", NULL, SND_SOC_NOPM, 0, 0),
194 SND_SOC_DAPM_ADC("ADC R", NULL, SND_SOC_NOPM, 0, 0),
197 SND_SOC_DAPM_AIF_OUT("I2S OUT", "I2S1 Capture", 0, SND_SOC_NOPM, 0, 0),
198 SND_SOC_DAPM_AIF_IN("I2S IN", "I2S1 Playback", 0, SND_SOC_NOPM, 0, 0),
201 SND_SOC_DAPM_DAC("Right DAC", NULL, ES8326_ANA_PDN, 0, 1),
203 SND_SOC_DAPM_SUPPLY("MICBIAS1", ES8326_ANA_MICBIAS, 2, 0, NULL, 0),
204 SND_SOC_DAPM_SUPPLY("MICBIAS2", ES8326_ANA_MICBIAS, 3, 0, NULL, 0),
206 SND_SOC_DAPM_PGA("LHPMIX", ES8326_DAC2HPMIX, 7, 0, NULL, 0),
207 SND_SOC_DAPM_PGA("RHPMIX", ES8326_DAC2HPMIX, 3, 0, NULL, 0),
210 4, 7, 0, 0),
212 0, 7, 0, 0),
257 .max_register = 0xff,
279 {64, 8000, 512000, 0x60, 0x01, 0x0F, 0x75, 0x0A, 0x1B, 0x1F, 0x7F},
280 {64, 16000, 1024000, 0x20, 0x00, 0x33, 0x35, 0x0A, 0x1B, 0x1F, 0x3F},
281 {64, 44100, 2822400, 0xE0, 0x00, 0x03, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
282 {64, 48000, 3072000, 0xE0, 0x00, 0x03, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
283 {128, 8000, 1024000, 0x60, 0x00, 0x33, 0x35, 0x0A, 0x1B, 0x1F, 0x7F},
284 {128, 16000, 2048000, 0x20, 0x00, 0x03, 0x35, 0x0A, 0x1B, 0x1F, 0x3F},
285 {128, 44100, 5644800, 0xE0, 0x01, 0x03, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
286 {128, 48000, 6144000, 0xE0, 0x01, 0x03, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
288 {192, 32000, 6144000, 0xE0, 0x02, 0x03, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
289 {256, 8000, 2048000, 0x60, 0x00, 0x03, 0x35, 0x0A, 0x1B, 0x1F, 0x7F},
290 {256, 16000, 4096000, 0x20, 0x01, 0x03, 0x35, 0x0A, 0x1B, 0x1F, 0x3F},
291 {256, 44100, 11289600, 0xE0, 0x00, 0x30, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
292 {256, 48000, 12288000, 0xE0, 0x00, 0x30, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
293 {384, 32000, 12288000, 0xE0, 0x05, 0x03, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
294 {400, 48000, 19200000, 0xE9, 0x04, 0x0F, 0x6d, 0x4A, 0x0A, 0x1F, 0x1F},
296 {500, 48000, 24000000, 0xF8, 0x04, 0x3F, 0x6D, 0x4A, 0x0A, 0x1F, 0x1F},
297 {512, 8000, 4096000, 0x60, 0x01, 0x03, 0x35, 0x0A, 0x1B, 0x1F, 0x7F},
298 {512, 16000, 8192000, 0x20, 0x00, 0x30, 0x35, 0x0A, 0x1B, 0x1F, 0x3F},
299 {512, 44100, 22579200, 0xE0, 0x00, 0x00, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
300 {512, 48000, 24576000, 0xE0, 0x00, 0x00, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
301 {768, 32000, 24576000, 0xE0, 0x02, 0x30, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
302 {1024, 8000, 8192000, 0x60, 0x00, 0x30, 0x35, 0x0A, 0x1B, 0x1F, 0x7F},
303 {1024, 16000, 16384000, 0x20, 0x00, 0x00, 0x35, 0x0A, 0x1B, 0x1F, 0x3F},
307 {32, 8000, 256000, 0x60, 0x00, 0x0F, 0x75, 0x8A, 0x1B, 0x1F, 0x7F},
308 {32, 16000, 512000, 0x20, 0x00, 0x0D, 0x75, 0x8A, 0x1B, 0x1F, 0x3F},
309 {32, 44100, 1411200, 0x00, 0x00, 0x13, 0x2D, 0x8A, 0x0A, 0x1F, 0x1F},
310 {32, 48000, 1536000, 0x00, 0x00, 0x13, 0x2D, 0x8A, 0x0A, 0x1F, 0x1F},
311 {36, 8000, 288000, 0x20, 0x00, 0x0D, 0x75, 0x8A, 0x1B, 0x23, 0x47},
312 {36, 16000, 576000, 0x20, 0x00, 0x0D, 0x75, 0x8A, 0x1B, 0x23, 0x47},
313 {48, 8000, 384000, 0x60, 0x02, 0x1F, 0x75, 0x8A, 0x1B, 0x1F, 0x7F},
314 {48, 16000, 768000, 0x20, 0x02, 0x0F, 0x75, 0x8A, 0x1B, 0x1F, 0x3F},
315 {48, 48000, 2304000, 0x00, 0x02, 0x0D, 0x2D, 0x8A, 0x0A, 0x1F, 0x1F},
317 {64, 8000, 512000, 0x60, 0x00, 0x35, 0x75, 0x8A, 0x1B, 0x1F, 0x7F},
318 {64, 16000, 1024000, 0x20, 0x00, 0x05, 0x75, 0x8A, 0x1B, 0x1F, 0x3F},
319 {64, 44100, 2822400, 0xE0, 0x00, 0x31, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
320 {64, 48000, 3072000, 0xE0, 0x00, 0x31, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
321 {72, 8000, 576000, 0x20, 0x00, 0x13, 0x35, 0x8A, 0x1B, 0x23, 0x47},
322 {72, 16000, 1152000, 0x20, 0x00, 0x05, 0x75, 0x8A, 0x1B, 0x23, 0x47},
323 {96, 8000, 768000, 0x60, 0x02, 0x1D, 0x75, 0x8A, 0x1B, 0x1F, 0x7F},
324 {96, 16000, 1536000, 0x20, 0x02, 0x0D, 0x75, 0x8A, 0x1B, 0x1F, 0x3F},
325 {100, 48000, 4800000, 0x04, 0x04, 0x3F, 0x6D, 0xB8, 0x08, 0x4f, 0x1f},
326 {125, 48000, 6000000, 0x04, 0x04, 0x1F, 0x2D, 0x8A, 0x0A, 0x27, 0x27},
328 {128, 8000, 1024000, 0x60, 0x00, 0x05, 0x75, 0x8A, 0x1B, 0x1F, 0x7F},
329 {128, 16000, 2048000, 0x20, 0x00, 0x31, 0x35, 0x8A, 0x1B, 0x1F, 0x3F},
330 {128, 44100, 5644800, 0xE0, 0x00, 0x01, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
331 {128, 48000, 6144000, 0xE0, 0x00, 0x01, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
332 {144, 8000, 1152000, 0x20, 0x00, 0x03, 0x35, 0x8A, 0x1B, 0x23, 0x47},
333 {144, 16000, 2304000, 0x20, 0x00, 0x11, 0x35, 0x8A, 0x1B, 0x23, 0x47},
334 {192, 8000, 1536000, 0x60, 0x02, 0x0D, 0x75, 0x8A, 0x1B, 0x1F, 0x7F},
335 {192, 32000, 6144000, 0xE0, 0x02, 0x31, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
336 {192, 16000, 3072000, 0x20, 0x02, 0x05, 0x75, 0xCA, 0x1B, 0x1F, 0x3F},
338 {200, 48000, 9600000, 0x04, 0x04, 0x0F, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
339 {250, 48000, 12000000, 0x04, 0x04, 0x0F, 0x2D, 0xCA, 0x0A, 0x27, 0x27},
340 {256, 8000, 2048000, 0x60, 0x00, 0x31, 0x35, 0x8A, 0x1B, 0x1F, 0x7F},
341 {256, 16000, 4096000, 0x20, 0x00, 0x01, 0x35, 0x8A, 0x1B, 0x1F, 0x3F},
342 {256, 44100, 11289600, 0xE0, 0x00, 0x30, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
343 {256, 48000, 12288000, 0xE0, 0x00, 0x30, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
344 {288, 8000, 2304000, 0x20, 0x00, 0x01, 0x35, 0x8A, 0x1B, 0x23, 0x47},
345 {384, 8000, 3072000, 0x60, 0x02, 0x05, 0x75, 0x8A, 0x1B, 0x1F, 0x7F},
346 {384, 16000, 6144000, 0x20, 0x02, 0x03, 0x35, 0x8A, 0x1B, 0x1F, 0x3F},
347 {384, 32000, 12288000, 0xE0, 0x02, 0x01, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
348 {384, 48000, 18432000, 0x00, 0x02, 0x01, 0x2D, 0x8A, 0x0A, 0x1F, 0x1F},
350 {400, 48000, 19200000, 0xE4, 0x04, 0x35, 0x6d, 0xCA, 0x0A, 0x1F, 0x1F},
351 {500, 48000, 24000000, 0xF8, 0x04, 0x3F, 0x6D, 0xCA, 0x0A, 0x1F, 0x1F},
352 {512, 8000, 4096000, 0x60, 0x00, 0x01, 0x35, 0x8A, 0x1B, 0x1F, 0x7F},
353 {512, 16000, 8192000, 0x20, 0x00, 0x30, 0x35, 0x8A, 0x1B, 0x1F, 0x3F},
354 {512, 44100, 22579200, 0xE0, 0x00, 0x00, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
355 {512, 48000, 24576000, 0xE0, 0x00, 0x00, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
356 {768, 8000, 6144000, 0x60, 0x02, 0x11, 0x35, 0x8A, 0x1B, 0x1F, 0x7F},
357 {768, 16000, 12288000, 0x20, 0x02, 0x01, 0x35, 0x8A, 0x1B, 0x1F, 0x3F},
358 {768, 32000, 24576000, 0xE0, 0x02, 0x30, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
359 {800, 48000, 38400000, 0x00, 0x18, 0x13, 0x2D, 0x8A, 0x0A, 0x1F, 0x1F},
361 {1024, 8000, 8192000, 0x60, 0x00, 0x30, 0x35, 0x8A, 0x1B, 0x1F, 0x7F},
362 {1024, 16000, 16384000, 0x20, 0x00, 0x00, 0x35, 0x8A, 0x1B, 0x1F, 0x3F},
363 {1152, 16000, 18432000, 0x20, 0x08, 0x11, 0x35, 0x8A, 0x1B, 0x1F, 0x3F},
364 {1536, 8000, 12288000, 0x60, 0x02, 0x01, 0x35, 0x8A, 0x1B, 0x1F, 0x7F},
365 {1536, 16000, 24576000, 0x20, 0x02, 0x10, 0x35, 0x8A, 0x1B, 0x1F, 0x3F},
366 {1625, 8000, 13000000, 0x0C, 0x18, 0x1F, 0x2D, 0x8A, 0x0A, 0x27, 0x27},
367 {1625, 16000, 26000000, 0x0C, 0x18, 0x1F, 0x2D, 0x8A, 0x0A, 0x27, 0x27},
368 {2048, 8000, 16384000, 0x60, 0x00, 0x00, 0x35, 0x8A, 0x1B, 0x1F, 0x7F},
369 {2304, 8000, 18432000, 0x40, 0x02, 0x10, 0x35, 0x8A, 0x1B, 0x1F, 0x5F},
370 {3072, 8000, 24576000, 0x60, 0x02, 0x10, 0x35, 0x8A, 0x1B, 0x1F, 0x7F},
371 {3250, 8000, 26000000, 0x0C, 0x18, 0x0F, 0x2D, 0x8A, 0x0A, 0x27, 0x27},
379 for (i = 0; i < array; i++) { in get_coeff()
395 return 0; in es8326_set_dai_sysclk()
401 u8 iface = 0; in es8326_set_dai_fmt()
436 return 0; in es8326_set_dai_fmt()
446 u8 srate = 0; in es8326_pcm_hw_params()
449 if (es8326->version == 0) { in es8326_pcm_hw_params()
481 if (coeff >= 0) { in es8326_pcm_hw_params()
502 return 0; in es8326_pcm_hw_params()
517 0x30, 0x00); in es8326_mute()
520 0x0F, 0x0F); in es8326_mute()
529 regmap_write(es8326->regmap, ES8326_HP_OFFSET_CAL, 0x8c); in es8326_mute()
535 regmap_update_bits(es8326->regmap, ES8326_DAC_DSM, 0x01, 0x01); in es8326_mute()
537 regmap_update_bits(es8326->regmap, ES8326_DAC_DSM, 0x01, 0x00); in es8326_mute()
539 regmap_update_bits(es8326->regmap, ES8326_HP_DRIVER_REF, 0x30, 0x20); in es8326_mute()
540 regmap_update_bits(es8326->regmap, ES8326_HP_DRIVER_REF, 0x30, 0x30); in es8326_mute()
541 regmap_write(es8326->regmap, ES8326_HP_DRIVER, 0xa1); in es8326_mute()
548 0x0F, 0x00); in es8326_mute()
551 return 0; in es8326_mute()
566 regmap_update_bits(es8326->regmap, ES8326_RESET, 0x02, 0x02); in es8326_set_bias_level()
571 regmap_write(es8326->regmap, ES8326_PGA_PDN, 0x40); in es8326_set_bias_level()
572 regmap_write(es8326->regmap, ES8326_ANA_PDN, 0x00); in es8326_set_bias_level()
573 regmap_update_bits(es8326->regmap, ES8326_CLK_CTL, 0x20, 0x20); in es8326_set_bias_level()
574 regmap_update_bits(es8326->regmap, ES8326_RESET, 0x02, 0x00); in es8326_set_bias_level()
579 regmap_write(es8326->regmap, ES8326_ANA_PDN, 0x3b); in es8326_set_bias_level()
580 regmap_update_bits(es8326->regmap, ES8326_CLK_CTL, 0x20, 0x00); in es8326_set_bias_level()
588 return 0; in es8326_set_bias_level()
599 .no_capture_mute = 0,
665 case 0x93: in es8326_jack_button_handler()
669 case 0x6f: in es8326_jack_button_handler()
670 case 0x4b: in es8326_jack_button_handler()
674 case 0x27: in es8326_jack_button_handler()
678 case 0x1e: in es8326_jack_button_handler()
679 case 0xe2: in es8326_jack_button_handler()
681 cur_button = 0; in es8326_jack_button_handler()
687 if ((prev_button == cur_button) && (cur_button != 0)) { in es8326_jack_button_handler()
693 press_count = 0; in es8326_jack_button_handler()
705 if (button_to_report != 0) { in es8326_jack_button_handler()
708 snd_soc_jack_report(es8326->jack, 0, in es8326_jack_button_handler()
710 button_to_report = 0; in es8326_jack_button_handler()
731 es8326->jack_remove_retry = 0; in es8326_jack_detect_handler()
744 if ((iface & ES8326_HPINSERT_FLAG) == 0) { in es8326_jack_detect_handler()
750 snd_soc_jack_report(es8326->jack, 0, SND_JACK_HEADSET); in es8326_jack_detect_handler()
752 regmap_write(es8326->regmap, ES8326_ADC_SCALE, 0x33); in es8326_jack_detect_handler()
753 regmap_write(es8326->regmap, ES8326_ADC1_SRC, 0x44); in es8326_jack_detect_handler()
754 regmap_write(es8326->regmap, ES8326_ADC2_SRC, 0x66); in es8326_jack_detect_handler()
755 es8326->hp = 0; in es8326_jack_detect_handler()
757 regmap_update_bits(es8326->regmap, ES8326_HPDET_TYPE, 0x03, 0x01); in es8326_jack_detect_handler()
758 regmap_write(es8326->regmap, ES8326_SYS_BIAS, 0x0a); in es8326_jack_detect_handler()
759 regmap_update_bits(es8326->regmap, ES8326_HP_DRIVER_REF, 0x0f, 0x03); in es8326_jack_detect_handler()
763 if ((es8326->jack_remove_retry == 0) && (es8326->version != ES8326_VERSION_B)) { in es8326_jack_detect_handler()
772 es8326->jack_remove_retry = 0; in es8326_jack_detect_handler()
775 es8326->jack_remove_retry = 0; in es8326_jack_detect_handler()
776 if (es8326->hp == 0) { in es8326_jack_detect_handler()
782 regmap_update_bits(es8326->regmap, ES8326_HPDET_TYPE, 0x03, 0x01); in es8326_jack_detect_handler()
785 regmap_update_bits(es8326->regmap, ES8326_HPDET_TYPE, 0x03, 0x00); in es8326_jack_detect_handler()
786 regmap_write(es8326->regmap, ES8326_SYS_BIAS, 0x1f); in es8326_jack_detect_handler()
787 regmap_update_bits(es8326->regmap, ES8326_HP_DRIVER_REF, 0x0f, 0x08); in es8326_jack_detect_handler()
799 if ((iface & ES8326_HPBUTTON_FLAG) == 0x01) { in es8326_jack_detect_handler()
808 regmap_write(es8326->regmap, ES8326_ADC_SCALE, 0x33); in es8326_jack_detect_handler()
810 0x08, 0x08); in es8326_jack_detect_handler()
812 0x80, 0x80); in es8326_jack_detect_handler()
813 regmap_write(es8326->regmap, ES8326_ADC1_SRC, 0x00); in es8326_jack_detect_handler()
814 regmap_write(es8326->regmap, ES8326_ADC2_SRC, 0x00); in es8326_jack_detect_handler()
816 0x08, 0x00); in es8326_jack_detect_handler()
853 regmap_write(es8326->regmap, ES8326_CLK_INV, 0xc0); in es8326_calibrate()
854 regmap_write(es8326->regmap, ES8326_CLK_DIV1, 0x03); in es8326_calibrate()
855 regmap_write(es8326->regmap, ES8326_CLK_DLL, 0x30); in es8326_calibrate()
856 regmap_write(es8326->regmap, ES8326_CLK_MUX, 0xed); in es8326_calibrate()
857 regmap_write(es8326->regmap, ES8326_CLK_DAC_SEL, 0x08); in es8326_calibrate()
858 regmap_write(es8326->regmap, ES8326_CLK_TRI, 0xc1); in es8326_calibrate()
859 regmap_write(es8326->regmap, ES8326_DAC_MUTE, 0x03); in es8326_calibrate()
860 regmap_write(es8326->regmap, ES8326_ANA_VSEL, 0x7f); in es8326_calibrate()
861 regmap_write(es8326->regmap, ES8326_VMIDLOW, 0x23); in es8326_calibrate()
862 regmap_write(es8326->regmap, ES8326_DAC2HPMIX, 0x88); in es8326_calibrate()
864 regmap_write(es8326->regmap, ES8326_HP_OFFSET_CAL, 0x8c); in es8326_calibrate()
866 regmap_write(es8326->regmap, ES8326_RESET, 0xc0); in es8326_calibrate()
871 if ((reg & 0xf0) != 0x40) in es8326_calibrate()
874 regmap_write(es8326->regmap, ES8326_HP_CAL, 0xd4); in es8326_calibrate()
876 regmap_write(es8326->regmap, ES8326_HP_CAL, 0x4d); in es8326_calibrate()
881 regmap_write(es8326->regmap, ES8326_HP_OFFSET_CAL, 0x8c); in es8326_calibrate()
884 regmap_write(es8326->regmap, ES8326_CLK_INV, 0x00); in es8326_calibrate()
889 return 0; in es8326_calibrate()
900 regmap_write(es8326->regmap, ES8326_RESET, 0x1f); in es8326_resume()
901 regmap_write(es8326->regmap, ES8326_VMIDSEL, 0x0E); in es8326_resume()
902 regmap_write(es8326->regmap, ES8326_ANA_LP, 0xf0); in es8326_resume()
904 regmap_write(es8326->regmap, ES8326_HPJACK_TIMER, 0xe9); in es8326_resume()
905 regmap_write(es8326->regmap, ES8326_ANA_MICBIAS, 0xcb); in es8326_resume()
907 regmap_write(es8326->regmap, ES8326_HPDET_TYPE, 0x83); in es8326_resume()
908 regmap_write(es8326->regmap, ES8326_CLK_RESAMPLE, 0x05); in es8326_resume()
911 regmap_write(es8326->regmap, ES8326_CLK_DIV_CPC, 0x89); in es8326_resume()
914 regmap_write(es8326->regmap, ES8326_RESET, 0x17); in es8326_resume()
916 regmap_write(es8326->regmap, ES8326_HP_MISC, 0x3d); in es8326_resume()
917 regmap_write(es8326->regmap, ES8326_PULLUP_CTL, 0x00); in es8326_resume()
920 regmap_write(es8326->regmap, ES8326_HP_VOL, 0xc4); in es8326_resume()
921 regmap_write(es8326->regmap, ES8326_HP_DRIVER, 0xa7); in es8326_resume()
923 regmap_write(es8326->regmap, ES8326_HP_DRIVER_REF, 0x23); in es8326_resume()
924 regmap_write(es8326->regmap, ES8326_HP_DRIVER_REF, 0x33); in es8326_resume()
925 regmap_write(es8326->regmap, ES8326_HP_DRIVER, 0xa1); in es8326_resume()
927 regmap_write(es8326->regmap, ES8326_CLK_INV, 0x00); in es8326_resume()
928 regmap_write(es8326->regmap, ES8326_CLK_VMIDS1, 0xc4); in es8326_resume()
929 regmap_write(es8326->regmap, ES8326_CLK_VMIDS2, 0x81); in es8326_resume()
930 regmap_write(es8326->regmap, ES8326_CLK_CAL_TIME, 0x00); in es8326_resume()
933 regmap_write(es8326->regmap, ES8326_DAC_CROSSTALK, 0xaa); in es8326_resume()
934 regmap_write(es8326->regmap, ES8326_DAC_RAMPRATE, 0x00); in es8326_resume()
936 regmap_write(es8326->regmap, ES8326_HP_CAL, 0x00); in es8326_resume()
938 regmap_write(es8326->regmap, ES8326_ANA_LP, 0xf0); in es8326_resume()
940 regmap_write(es8326->regmap, ES8326_ANA_VSEL, 0x7F); in es8326_resume()
942 regmap_write(es8326->regmap, ES8326_VMIDLOW, 0x23); in es8326_resume()
944 regmap_write(es8326->regmap, ES8326_DAC_DSM, 0x08); in es8326_resume()
945 regmap_write(es8326->regmap, ES8326_DAC_VPPSCALE, 0x15); in es8326_resume()
947 regmap_write(es8326->regmap, ES8326_HPDET_TYPE, 0x80 | in es8326_resume()
950 (ES8326_HP_DET_SRC_PIN9 | es8326->jack_pol | 0x04))); in es8326_resume()
954 regmap_update_bits(es8326->regmap, ES8326_HPDET_TYPE, 0x03, 0x00); in es8326_resume()
963 regmap_write(es8326->regmap, ES8326_ANA_PDN, 0x00); in es8326_resume()
971 regmap_write(es8326->regmap, ES8326_ADC_MUTE, 0x0f); in es8326_resume()
973 es8326->jack_remove_retry = 0; in es8326_resume()
974 es8326->hp = 0; in es8326_resume()
975 return 0; in es8326_resume()
990 regmap_write(es8326->regmap, ES8326_CSM_I2C_STA, 0x01); in es8326_suspend()
992 regmap_write(es8326->regmap, ES8326_CSM_I2C_STA, 0x00); in es8326_suspend()
993 return 0; in es8326_suspend()
1006 if (ret != 0) { in es8326_probe()
1013 if (ret != 0) { in es8326_probe()
1020 if (ret != 0) { in es8326_probe()
1028 if (ret != 0) { in es8326_probe()
1036 if (ret != 0) { in es8326_probe()
1038 es8326->interrupt_clk = 0x45; in es8326_probe()
1043 return 0; in es8326_probe()
1073 snd_soc_jack_report(es8326->jack, 0, SND_JACK_HEADSET); in es8326_disable_jack_detect()
1087 return 0; in es8326_set_jack()
1166 {"es8326", 0 },
1181 {"ESSX8326", 0},