Lines Matching +full:0 +full:x0a
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()
130 ucontrol->value.integer.value[0] = es8326->hpl_vol; in es8326_hplvol_get()
132 return 0; in es8326_hplvol_get()
142 hp_vol = ucontrol->value.integer.value[0]; in es8326_hplvol_set()
150 0x70, (hp_vol << 4)); in es8326_hplvol_set()
154 return 0; in es8326_hplvol_set()
163 ucontrol->value.integer.value[0] = es8326->hpr_vol; in es8326_hprvol_get()
165 return 0; in es8326_hprvol_get()
175 hp_vol = ucontrol->value.integer.value[0]; in es8326_hprvol_set()
183 0x07, hp_vol); in es8326_hprvol_set()
187 return 0; in es8326_hprvol_set()
190 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9550, 50, 0);
191 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -9550, 50, 0);
192 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_analog_pga_tlv, 0, 300, 0);
193 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_pga_tlv, 0, 600, 0);
194 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(softramp_rate, 0, 100, 0);
195 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(drc_target_tlv, -3200, 200, 0);
196 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(drc_recovery_tlv, -125, 250, 0);
237 SOC_SINGLE_TLV("DAC Playback Volume", ES8326_DACL_VOL, 0, 0xbf, 0, dac_vol_tlv),
239 SOC_SINGLE_TLV("DAC Ramp Rate", ES8326_DAC_RAMPRATE, 0, 0x0f, 0, softramp_rate),
240 SOC_SINGLE_TLV("DRC Recovery Level", ES8326_DRC_RECOVERY, 0, 4, 0, drc_recovery_tlv),
242 SOC_SINGLE_TLV("DRC Target Level", ES8326_DRC_WINSIZE, 0, 0x0f, 0, drc_target_tlv),
244 SOC_DOUBLE_R_TLV("ADC Capture Volume", ES8326_ADC1_VOL, ES8326_ADC2_VOL, 0, 0xff, 0,
246 SOC_DOUBLE_TLV("ADC PGA Volume", ES8326_ADC_SCALE, 4, 0, 5, 0, adc_pga_tlv),
247 SOC_SINGLE_TLV("ADC PGA Gain Volume", ES8326_PGAGAIN, 0, 10, 0, adc_analog_pga_tlv),
248 SOC_SINGLE_TLV("ADC Ramp Rate", ES8326_ADC_RAMPRATE, 0, 0x0f, 0, softramp_rate),
249 SOC_SINGLE("ALC Capture Switch", ES8326_ALC_RECOVERY, 3, 1, 0),
251 0, 4, 0, drc_recovery_tlv),
254 0, 0x0f, 0, drc_target_tlv),
256 SOC_SINGLE_EXT("CROSSTALK1", SND_SOC_NOPM, 0, 31, 0,
258 SOC_SINGLE_EXT("CROSSTALK2", SND_SOC_NOPM, 0, 31, 0,
260 SOC_SINGLE_EXT("HPL Volume", SND_SOC_NOPM, 0, 5, 0,
262 SOC_SINGLE_EXT("HPR Volume", SND_SOC_NOPM, 0, 5, 0,
265 SOC_SINGLE_TLV("HPL Playback Volume", ES8326_DACL_VOL, 0, 0xbf, 0, dac_vol_tlv),
266 SOC_SINGLE_TLV("HPR Playback Volume", ES8326_DACR_VOL, 0, 0xbf, 0, dac_vol_tlv),
267 SOC_SINGLE_TLV("SPKL Playback Volume", ES8326_SPKL_VOL, 0, 0xbf, 0, dac_vol_tlv),
268 SOC_SINGLE_TLV("SPKR Playback Volume", ES8326_SPKR_VOL, 0, 0xbf, 0, dac_vol_tlv),
279 SND_SOC_DAPM_ADC("ADC L", NULL, SND_SOC_NOPM, 0, 0),
280 SND_SOC_DAPM_ADC("ADC R", NULL, SND_SOC_NOPM, 0, 0),
283 SND_SOC_DAPM_AIF_OUT("I2S OUT", "I2S1 Capture", 0, SND_SOC_NOPM, 0, 0),
284 SND_SOC_DAPM_AIF_IN("I2S IN", "I2S1 Playback", 0, SND_SOC_NOPM, 0, 0),
287 SND_SOC_DAPM_DAC("Right DAC", NULL, ES8326_ANA_PDN, 0, 1),
289 SND_SOC_DAPM_SUPPLY("MICBIAS1", ES8326_ANA_MICBIAS, 2, 0, NULL, 0),
290 SND_SOC_DAPM_SUPPLY("MICBIAS2", ES8326_ANA_MICBIAS, 3, 0, NULL, 0),
292 SND_SOC_DAPM_PGA("LHPMIX", ES8326_DAC2HPMIX, 7, 0, NULL, 0),
293 SND_SOC_DAPM_PGA("RHPMIX", ES8326_DAC2HPMIX, 3, 0, NULL, 0),
350 .max_register = 0xff,
375 {64, 8000, 512000, 0x60, 0x01, 0x0F, 0x75, 0x0A, 0x1B, 0x1F, 0x7F},
376 {64, 16000, 1024000, 0x20, 0x00, 0x33, 0x35, 0x0A, 0x1B, 0x1F, 0x3F},
377 {64, 44100, 2822400, 0xE0, 0x00, 0x03, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
378 {64, 48000, 3072000, 0xE0, 0x00, 0x03, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
379 {128, 8000, 1024000, 0x60, 0x00, 0x33, 0x35, 0x0A, 0x1B, 0x1F, 0x7F},
380 {128, 16000, 2048000, 0x20, 0x00, 0x03, 0x35, 0x0A, 0x1B, 0x1F, 0x3F},
381 {128, 44100, 5644800, 0xE0, 0x01, 0x03, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
382 {128, 48000, 6144000, 0xE0, 0x01, 0x03, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
384 {192, 32000, 6144000, 0xE0, 0x02, 0x03, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
385 {256, 8000, 2048000, 0x60, 0x00, 0x03, 0x35, 0x0A, 0x1B, 0x1F, 0x7F},
386 {256, 16000, 4096000, 0x20, 0x01, 0x03, 0x35, 0x0A, 0x1B, 0x1F, 0x3F},
387 {256, 44100, 11289600, 0xE0, 0x00, 0x30, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
388 {256, 48000, 12288000, 0xE0, 0x00, 0x30, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
389 {384, 32000, 12288000, 0xE0, 0x05, 0x03, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
390 {400, 48000, 19200000, 0xE9, 0x04, 0x0F, 0x6d, 0x4A, 0x0A, 0x1F, 0x1F},
392 {500, 48000, 24000000, 0xF8, 0x04, 0x3F, 0x6D, 0x4A, 0x0A, 0x1F, 0x1F},
393 {512, 8000, 4096000, 0x60, 0x01, 0x03, 0x35, 0x0A, 0x1B, 0x1F, 0x7F},
394 {512, 16000, 8192000, 0x20, 0x00, 0x30, 0x35, 0x0A, 0x1B, 0x1F, 0x3F},
395 {512, 44100, 22579200, 0xE0, 0x00, 0x00, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
396 {512, 48000, 24576000, 0xE0, 0x00, 0x00, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
397 {768, 32000, 24576000, 0xE0, 0x02, 0x30, 0x2D, 0x4A, 0x0A, 0x1F, 0x1F},
398 {1024, 8000, 8192000, 0x60, 0x00, 0x30, 0x35, 0x0A, 0x1B, 0x1F, 0x7F},
399 {1024, 16000, 16384000, 0x20, 0x00, 0x00, 0x35, 0x0A, 0x1B, 0x1F, 0x3F},
403 {32, 8000, 256000, 0x60, 0x00, 0x0F, 0x75, 0x8A, 0x1B, 0x1F, 0x7F},
404 {32, 16000, 512000, 0x20, 0x00, 0x0D, 0x75, 0x8A, 0x1B, 0x1F, 0x3F},
405 {32, 44100, 1411200, 0x00, 0x00, 0x13, 0x2D, 0x8A, 0x0A, 0x1F, 0x1F},
406 {32, 48000, 1536000, 0x00, 0x00, 0x13, 0x2D, 0x8A, 0x0A, 0x1F, 0x1F},
407 {36, 8000, 288000, 0x20, 0x00, 0x0D, 0x75, 0x8A, 0x1B, 0x23, 0x47},
408 {36, 16000, 576000, 0x20, 0x00, 0x0D, 0x75, 0x8A, 0x1B, 0x23, 0x47},
409 {48, 8000, 384000, 0x60, 0x02, 0x1F, 0x75, 0x8A, 0x1B, 0x1F, 0x7F},
410 {48, 16000, 768000, 0x20, 0x02, 0x0F, 0x75, 0x8A, 0x1B, 0x1F, 0x3F},
411 {48, 48000, 2304000, 0x00, 0x02, 0x0D, 0x2D, 0x8A, 0x0A, 0x1F, 0x1F},
413 {64, 8000, 512000, 0x60, 0x00, 0x35, 0x75, 0x8A, 0x1B, 0x1F, 0x7F},
414 {64, 16000, 1024000, 0x20, 0x00, 0x05, 0x75, 0x8A, 0x1B, 0x1F, 0x3F},
415 {64, 44100, 2822400, 0xE0, 0x00, 0x31, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
416 {64, 48000, 3072000, 0xE0, 0x00, 0x31, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
417 {72, 8000, 576000, 0x20, 0x00, 0x13, 0x35, 0x8A, 0x1B, 0x23, 0x47},
418 {72, 16000, 1152000, 0x20, 0x00, 0x05, 0x75, 0x8A, 0x1B, 0x23, 0x47},
419 {96, 8000, 768000, 0x60, 0x02, 0x1D, 0x75, 0x8A, 0x1B, 0x1F, 0x7F},
420 {96, 16000, 1536000, 0x20, 0x02, 0x0D, 0x75, 0x8A, 0x1B, 0x1F, 0x3F},
421 {100, 48000, 4800000, 0x04, 0x04, 0x3F, 0x6D, 0xB8, 0x08, 0x4f, 0x1f},
422 {125, 48000, 6000000, 0x04, 0x04, 0x1F, 0x2D, 0x8A, 0x0A, 0x27, 0x27},
424 {128, 8000, 1024000, 0x60, 0x00, 0x05, 0x75, 0x8A, 0x1B, 0x1F, 0x7F},
425 {128, 16000, 2048000, 0x20, 0x00, 0x31, 0x35, 0x08, 0x19, 0x1F, 0x3F},
426 {128, 44100, 5644800, 0xE0, 0x00, 0x01, 0x2D, 0x48, 0x08, 0x1F, 0x1F},
427 {128, 48000, 6144000, 0xE0, 0x00, 0x01, 0x2D, 0x48, 0x08, 0x1F, 0x1F},
428 {144, 8000, 1152000, 0x20, 0x00, 0x03, 0x35, 0x8A, 0x1B, 0x23, 0x47},
429 {144, 16000, 2304000, 0x20, 0x00, 0x11, 0x35, 0x8A, 0x1B, 0x23, 0x47},
430 {192, 8000, 1536000, 0x60, 0x02, 0x0D, 0x75, 0x8A, 0x1B, 0x1F, 0x7F},
431 {192, 32000, 6144000, 0xE0, 0x02, 0x31, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
432 {192, 16000, 3072000, 0x20, 0x02, 0x05, 0x75, 0xCA, 0x1B, 0x1F, 0x3F},
434 {200, 48000, 9600000, 0x04, 0x04, 0x0F, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
435 {250, 48000, 12000000, 0x04, 0x04, 0x0F, 0x2D, 0xCA, 0x0A, 0x27, 0x27},
436 {256, 8000, 2048000, 0x60, 0x00, 0x31, 0x35, 0x08, 0x19, 0x1F, 0x7F},
437 {256, 16000, 4096000, 0x20, 0x00, 0x01, 0x35, 0x08, 0x19, 0x1F, 0x3F},
438 {256, 44100, 11289600, 0xE0, 0x01, 0x01, 0x2D, 0x48, 0x08, 0x1F, 0x1F},
439 {256, 48000, 12288000, 0xE0, 0x01, 0x01, 0x2D, 0x48, 0x08, 0x1F, 0x1F},
440 {288, 8000, 2304000, 0x20, 0x00, 0x01, 0x35, 0x8A, 0x1B, 0x23, 0x47},
441 {384, 8000, 3072000, 0x60, 0x02, 0x05, 0x75, 0x8A, 0x1B, 0x1F, 0x7F},
442 {384, 16000, 6144000, 0x20, 0x02, 0x03, 0x35, 0x8A, 0x1B, 0x1F, 0x3F},
443 {384, 32000, 12288000, 0xE0, 0x02, 0x01, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
444 {384, 48000, 18432000, 0x00, 0x02, 0x01, 0x2D, 0x8A, 0x0A, 0x1F, 0x1F},
446 {400, 48000, 19200000, 0xE4, 0x04, 0x35, 0x6d, 0xCA, 0x0A, 0x1F, 0x1F},
447 {500, 48000, 24000000, 0xF8, 0x04, 0x3F, 0x6D, 0xCA, 0x0A, 0x1F, 0x1F},
448 {512, 8000, 4096000, 0x60, 0x00, 0x01, 0x08, 0x19, 0x1B, 0x1F, 0x7F},
449 {512, 16000, 8192000, 0x20, 0x00, 0x30, 0x35, 0x08, 0x19, 0x1F, 0x3F},
450 {512, 44100, 22579200, 0xE0, 0x00, 0x00, 0x2D, 0x48, 0x08, 0x1F, 0x1F},
451 {512, 48000, 24576000, 0xE0, 0x00, 0x00, 0x2D, 0x48, 0x08, 0x1F, 0x1F},
452 {768, 8000, 6144000, 0x60, 0x02, 0x11, 0x35, 0x8A, 0x1B, 0x1F, 0x7F},
453 {768, 16000, 12288000, 0x20, 0x02, 0x01, 0x35, 0x8A, 0x1B, 0x1F, 0x3F},
454 {768, 32000, 24576000, 0xE0, 0x02, 0x30, 0x2D, 0xCA, 0x0A, 0x1F, 0x1F},
455 {800, 48000, 38400000, 0x00, 0x18, 0x13, 0x2D, 0x8A, 0x0A, 0x1F, 0x1F},
457 {1024, 8000, 8192000, 0x60, 0x00, 0x30, 0x35, 0x8A, 0x1B, 0x1F, 0x7F},
458 {1024, 16000, 16384000, 0x20, 0x00, 0x00, 0x35, 0x8A, 0x1B, 0x1F, 0x3F},
459 {1152, 16000, 18432000, 0x20, 0x08, 0x11, 0x35, 0x8A, 0x1B, 0x1F, 0x3F},
460 {1536, 8000, 12288000, 0x60, 0x02, 0x01, 0x35, 0x8A, 0x1B, 0x1F, 0x7F},
461 {1536, 16000, 24576000, 0x20, 0x02, 0x10, 0x35, 0x8A, 0x1B, 0x1F, 0x3F},
462 {1625, 8000, 13000000, 0x0C, 0x18, 0x1F, 0x2D, 0x8A, 0x0A, 0x27, 0x27},
463 {1625, 16000, 26000000, 0x0C, 0x18, 0x1F, 0x2D, 0x8A, 0x0A, 0x27, 0x27},
464 {2048, 8000, 16384000, 0x60, 0x00, 0x00, 0x35, 0x8A, 0x1B, 0x1F, 0x7F},
465 {2304, 8000, 18432000, 0x40, 0x02, 0x10, 0x35, 0x8A, 0x1B, 0x1F, 0x5F},
466 {3072, 8000, 24576000, 0x60, 0x02, 0x10, 0x35, 0x8A, 0x1B, 0x1F, 0x7F},
467 {3250, 8000, 26000000, 0x0C, 0x18, 0x0F, 0x2D, 0x8A, 0x0A, 0x27, 0x27},
475 for (i = 0; i < array; i++) { in get_coeff()
491 return 0; in es8326_set_dai_sysclk()
497 u8 iface = 0; in es8326_set_dai_fmt()
532 return 0; in es8326_set_dai_fmt()
542 u8 srate = 0; in es8326_pcm_hw_params()
545 if (es8326->version == 0) { in es8326_pcm_hw_params()
577 if (coeff >= 0) { in es8326_pcm_hw_params()
598 return 0; in es8326_pcm_hw_params()
613 0x30, 0x00); in es8326_mute()
616 0x0F, 0x0F); in es8326_mute()
625 regmap_write(es8326->regmap, ES8326_HP_OFFSET_CAL, 0x8c); in es8326_mute()
631 regmap_update_bits(es8326->regmap, ES8326_DAC_DSM, 0x01, 0x01); in es8326_mute()
633 regmap_update_bits(es8326->regmap, ES8326_DAC_DSM, 0x01, 0x00); in es8326_mute()
635 regmap_update_bits(es8326->regmap, ES8326_HP_DRIVER_REF, 0x30, 0x20); in es8326_mute()
636 regmap_update_bits(es8326->regmap, ES8326_HP_DRIVER_REF, 0x30, 0x30); in es8326_mute()
637 regmap_write(es8326->regmap, ES8326_HP_DRIVER, 0xa1); in es8326_mute()
644 0x0F, 0x00); in es8326_mute()
647 return 0; in es8326_mute()
662 regmap_update_bits(es8326->regmap, ES8326_RESET, 0x02, 0x02); in es8326_set_bias_level()
667 regmap_write(es8326->regmap, ES8326_PGA_PDN, 0x40); in es8326_set_bias_level()
668 regmap_write(es8326->regmap, ES8326_ANA_PDN, 0x00); in es8326_set_bias_level()
669 regmap_update_bits(es8326->regmap, ES8326_CLK_CTL, 0x20, 0x20); in es8326_set_bias_level()
670 regmap_update_bits(es8326->regmap, ES8326_RESET, 0x02, 0x00); in es8326_set_bias_level()
675 regmap_write(es8326->regmap, ES8326_ANA_PDN, 0x3b); in es8326_set_bias_level()
676 regmap_update_bits(es8326->regmap, ES8326_CLK_CTL, 0x20, 0x00); in es8326_set_bias_level()
684 return 0; in es8326_set_bias_level()
695 .no_capture_mute = 0,
761 case 0x93: in es8326_jack_button_handler()
765 case 0x6f: in es8326_jack_button_handler()
766 case 0x4b: in es8326_jack_button_handler()
770 case 0x27: in es8326_jack_button_handler()
774 case 0x1e: in es8326_jack_button_handler()
775 case 0xe2: in es8326_jack_button_handler()
777 cur_button = 0; in es8326_jack_button_handler()
783 if ((prev_button == cur_button) && (cur_button != 0)) { in es8326_jack_button_handler()
789 press_count = 0; in es8326_jack_button_handler()
801 if (button_to_report != 0) { in es8326_jack_button_handler()
804 snd_soc_jack_report(es8326->jack, 0, in es8326_jack_button_handler()
806 button_to_report = 0; in es8326_jack_button_handler()
828 es8326->jack_remove_retry = 0; in es8326_jack_detect_handler()
841 if ((iface & ES8326_HPINSERT_FLAG) == 0) { in es8326_jack_detect_handler()
847 snd_soc_jack_report(es8326->jack, 0, in es8326_jack_detect_handler()
849 snd_soc_jack_report(es8326->jack, 0, SND_JACK_HEADSET); in es8326_jack_detect_handler()
851 regmap_write(es8326->regmap, ES8326_ADC1_SRC, 0x44); in es8326_jack_detect_handler()
852 regmap_write(es8326->regmap, ES8326_ADC2_SRC, 0x66); in es8326_jack_detect_handler()
854 es8326->hp = 0; in es8326_jack_detect_handler()
855 regmap_update_bits(es8326->regmap, ES8326_HPDET_TYPE, 0x03, 0x01); in es8326_jack_detect_handler()
856 regmap_write(es8326->regmap, ES8326_SYS_BIAS, 0x0a); in es8326_jack_detect_handler()
857 regmap_update_bits(es8326->regmap, ES8326_HP_DRIVER_REF, 0x0f, 0x03); in es8326_jack_detect_handler()
862 if ((es8326->jack_remove_retry == 0) && (es8326->version != ES8326_VERSION_B)) { in es8326_jack_detect_handler()
871 es8326->jack_remove_retry = 0; in es8326_jack_detect_handler()
874 es8326->jack_remove_retry = 0; in es8326_jack_detect_handler()
875 if (es8326->hp == 0) { in es8326_jack_detect_handler()
881 regmap_write(es8326->regmap, ES8326_INT_SOURCE, 0x00); in es8326_jack_detect_handler()
882 regmap_update_bits(es8326->regmap, ES8326_HPDET_TYPE, 0x03, 0x01); in es8326_jack_detect_handler()
883 regmap_update_bits(es8326->regmap, ES8326_HPDET_TYPE, 0x10, 0x00); in es8326_jack_detect_handler()
885 regmap_update_bits(es8326->regmap, ES8326_HPDET_TYPE, 0x03, 0x00); in es8326_jack_detect_handler()
886 regmap_update_bits(es8326->regmap, ES8326_HPDET_TYPE, 0x10, 0x10); in es8326_jack_detect_handler()
890 regmap_write(es8326->regmap, ES8326_SYS_BIAS, 0x1f); in es8326_jack_detect_handler()
891 regmap_update_bits(es8326->regmap, ES8326_HP_DRIVER_REF, 0x0f, 0x08); in es8326_jack_detect_handler()
906 if ((iface & ES8326_HPBUTTON_FLAG) == 0x01) { in es8326_jack_detect_handler()
916 0x08, 0x08); in es8326_jack_detect_handler()
918 0x80, 0x80); in es8326_jack_detect_handler()
919 regmap_write(es8326->regmap, ES8326_ADC1_SRC, 0x00); in es8326_jack_detect_handler()
920 regmap_write(es8326->regmap, ES8326_ADC2_SRC, 0x00); in es8326_jack_detect_handler()
922 0x08, 0x00); in es8326_jack_detect_handler()
959 regmap_write(es8326->regmap, ES8326_CLK_INV, 0xc0); in es8326_calibrate()
960 regmap_write(es8326->regmap, ES8326_CLK_DIV1, 0x03); in es8326_calibrate()
961 regmap_write(es8326->regmap, ES8326_CLK_DLL, 0x30); in es8326_calibrate()
962 regmap_write(es8326->regmap, ES8326_CLK_MUX, 0xed); in es8326_calibrate()
963 regmap_write(es8326->regmap, ES8326_CLK_DAC_SEL, 0x08); in es8326_calibrate()
964 regmap_write(es8326->regmap, ES8326_CLK_TRI, 0xc1); in es8326_calibrate()
965 regmap_write(es8326->regmap, ES8326_DAC_MUTE, 0x03); in es8326_calibrate()
966 regmap_write(es8326->regmap, ES8326_ANA_VSEL, 0x7f); in es8326_calibrate()
967 regmap_write(es8326->regmap, ES8326_VMIDLOW, 0x23); in es8326_calibrate()
968 regmap_write(es8326->regmap, ES8326_DAC2HPMIX, 0x88); in es8326_calibrate()
970 regmap_write(es8326->regmap, ES8326_HP_OFFSET_CAL, 0x8c); in es8326_calibrate()
972 regmap_write(es8326->regmap, ES8326_RESET, 0xc0); in es8326_calibrate()
977 if ((reg & 0xf0) != 0x40) in es8326_calibrate()
980 regmap_write(es8326->regmap, ES8326_HP_CAL, 0xd4); in es8326_calibrate()
982 regmap_write(es8326->regmap, ES8326_HP_CAL, 0x4d); in es8326_calibrate()
987 regmap_write(es8326->regmap, ES8326_HP_OFFSET_CAL, 0x8c); in es8326_calibrate()
990 regmap_write(es8326->regmap, ES8326_CLK_INV, 0x00); in es8326_calibrate()
995 return 0; in es8326_calibrate()
1002 regmap_write(es8326->regmap, ES8326_RESET, 0x1f); in es8326_init()
1003 regmap_write(es8326->regmap, ES8326_VMIDSEL, 0x0E); in es8326_init()
1004 regmap_write(es8326->regmap, ES8326_ANA_LP, 0xf0); in es8326_init()
1006 regmap_write(es8326->regmap, ES8326_HPJACK_TIMER, 0xd9); in es8326_init()
1007 regmap_write(es8326->regmap, ES8326_ANA_MICBIAS, 0xd8); in es8326_init()
1009 regmap_write(es8326->regmap, ES8326_HPDET_TYPE, 0x83); in es8326_init()
1010 regmap_write(es8326->regmap, ES8326_CLK_RESAMPLE, 0x05); in es8326_init()
1013 regmap_write(es8326->regmap, ES8326_CLK_DIV_CPC, 0x89); in es8326_init()
1016 regmap_write(es8326->regmap, ES8326_RESET, 0x17); in es8326_init()
1018 regmap_write(es8326->regmap, ES8326_HP_MISC, 0x3d); in es8326_init()
1019 regmap_write(es8326->regmap, ES8326_PULLUP_CTL, 0x00); in es8326_init()
1022 regmap_write(es8326->regmap, ES8326_HP_VOL, 0xc4); in es8326_init()
1023 regmap_write(es8326->regmap, ES8326_HP_DRIVER, 0xa7); in es8326_init()
1025 regmap_write(es8326->regmap, ES8326_HP_DRIVER_REF, 0x23); in es8326_init()
1026 regmap_write(es8326->regmap, ES8326_HP_DRIVER_REF, 0x33); in es8326_init()
1027 regmap_write(es8326->regmap, ES8326_HP_DRIVER, 0xa1); in es8326_init()
1029 regmap_write(es8326->regmap, ES8326_CLK_INV, 0x00); in es8326_init()
1030 regmap_write(es8326->regmap, ES8326_CLK_VMIDS1, 0xc4); in es8326_init()
1031 regmap_write(es8326->regmap, ES8326_CLK_VMIDS2, 0x81); in es8326_init()
1032 regmap_write(es8326->regmap, ES8326_CLK_CAL_TIME, 0x00); in es8326_init()
1035 regmap_write(es8326->regmap, ES8326_DAC_CROSSTALK, 0xaa); in es8326_init()
1036 regmap_write(es8326->regmap, ES8326_DAC_RAMPRATE, 0x00); in es8326_init()
1038 regmap_write(es8326->regmap, ES8326_HP_CAL, 0x00); in es8326_init()
1040 regmap_write(es8326->regmap, ES8326_ANA_LP, 0xf0); in es8326_init()
1042 regmap_write(es8326->regmap, ES8326_ANA_VSEL, 0x7F); in es8326_init()
1044 regmap_write(es8326->regmap, ES8326_VMIDLOW, 0x03); in es8326_init()
1046 regmap_write(es8326->regmap, ES8326_DAC_DSM, 0x08); in es8326_init()
1047 regmap_write(es8326->regmap, ES8326_DAC_VPPSCALE, 0x15); in es8326_init()
1049 regmap_write(es8326->regmap, ES8326_HPDET_TYPE, 0x80 | in es8326_init()
1052 (ES8326_HP_DET_SRC_PIN9 | es8326->jack_pol | 0x04))); in es8326_init()
1056 regmap_update_bits(es8326->regmap, ES8326_HPDET_TYPE, 0x03, 0x00); in es8326_init()
1063 regmap_write(es8326->regmap, ES8326_ANA_PDN, 0x00); in es8326_init()
1071 regmap_write(es8326->regmap, ES8326_ADC_MUTE, 0x0f); in es8326_init()
1072 regmap_write(es8326->regmap, ES8326_CLK_DIV_LRCK, 0xff); in es8326_init()
1073 regmap_write(es8326->regmap, ES8326_ADC1_SRC, 0x44); in es8326_init()
1074 regmap_write(es8326->regmap, ES8326_ADC2_SRC, 0x66); in es8326_init()
1091 if (reg == 0x05) in es8326_resume()
1099 return 0; in es8326_resume()
1109 regmap_write(es8326->regmap, ES8326_CLK_MUX, 0x2d); in es8326_suspend()
1110 regmap_write(es8326->regmap, ES8326_DAC2HPMIX, 0x00); in es8326_suspend()
1111 regmap_write(es8326->regmap, ES8326_ANA_PDN, 0x3b); in es8326_suspend()
1116 regmap_write(es8326->regmap, ES8326_CSM_I2C_STA, 0x01); in es8326_suspend()
1118 regmap_write(es8326->regmap, ES8326_CSM_I2C_STA, 0x00); in es8326_suspend()
1121 return 0; in es8326_suspend()
1134 if (ret != 0) { in es8326_probe()
1142 if (ret != 0) { in es8326_probe()
1150 if (ret != 0) { in es8326_probe()
1152 es8326->interrupt_clk = 0x00; in es8326_probe()
1157 return 0; in es8326_probe()
1187 snd_soc_jack_report(es8326->jack, 0, SND_JACK_HEADSET); in es8326_disable_jack_detect()
1201 return 0; in es8326_set_jack()
1210 regmap_write(es8326->regmap, ES8326_CSM_I2C_STA, 0x01); in es8326_remove()
1212 regmap_write(es8326->regmap, ES8326_CSM_I2C_STA, 0x00); in es8326_remove()
1252 es8326->jack_remove_retry = 0; in es8326_i2c_probe()
1253 es8326->hp = 0; in es8326_i2c_probe()
1254 es8326->hpl_vol = 0x03; in es8326_i2c_probe()
1255 es8326->hpr_vol = 0x03; in es8326_i2c_probe()
1300 regmap_write(es8326->regmap, ES8326_CSM_I2C_STA, 0x01); in es8326_i2c_shutdown()
1302 regmap_write(es8326->regmap, ES8326_CSM_I2C_STA, 0x00); in es8326_i2c_shutdown()
1327 {"ESSX8326", 0},