Lines Matching +full:0 +full:ms

22 	{MAX98388_R2000_SW_RESET, 0x00},
23 {MAX98388_R2001_INT_RAW1, 0x00},
24 {MAX98388_R2002_INT_RAW2, 0x00},
25 {MAX98388_R2004_INT_STATE1, 0x00},
26 {MAX98388_R2005_INT_STATE2, 0x00},
27 {MAX98388_R2020_THERM_WARN_THRESH, 0x0A},
28 {MAX98388_R2031_SPK_MON_THRESH, 0x58},
29 {MAX98388_R2032_SPK_MON_LD_SEL, 0x08},
30 {MAX98388_R2033_SPK_MON_DURATION, 0x02},
31 {MAX98388_R2037_ERR_MON_CTRL, 0x01},
32 {MAX98388_R2040_PCM_MODE_CFG, 0xC0},
33 {MAX98388_R2041_PCM_CLK_SETUP, 0x04},
34 {MAX98388_R2042_PCM_SR_SETUP, 0x88},
35 {MAX98388_R2044_PCM_TX_CTRL1, 0x00},
36 {MAX98388_R2045_PCM_TX_CTRL2, 0x00},
37 {MAX98388_R2050_PCM_TX_HIZ_CTRL1, 0xFF},
38 {MAX98388_R2051_PCM_TX_HIZ_CTRL2, 0xFF},
39 {MAX98388_R2052_PCM_TX_HIZ_CTRL3, 0xFF},
40 {MAX98388_R2053_PCM_TX_HIZ_CTRL4, 0xFF},
41 {MAX98388_R2054_PCM_TX_HIZ_CTRL5, 0xFF},
42 {MAX98388_R2055_PCM_TX_HIZ_CTRL6, 0xFF},
43 {MAX98388_R2056_PCM_TX_HIZ_CTRL7, 0xFF},
44 {MAX98388_R2057_PCM_TX_HIZ_CTRL8, 0xFF},
45 {MAX98388_R2058_PCM_RX_SRC1, 0x00},
46 {MAX98388_R2059_PCM_RX_SRC2, 0x01},
47 {MAX98388_R205C_PCM_TX_DRIVE_STRENGTH, 0x00},
48 {MAX98388_R205D_PCM_TX_SRC_EN, 0x00},
49 {MAX98388_R205E_PCM_RX_EN, 0x00},
50 {MAX98388_R205F_PCM_TX_EN, 0x00},
51 {MAX98388_R2090_SPK_CH_VOL_CTRL, 0x00},
52 {MAX98388_R2091_SPK_CH_CFG, 0x02},
53 {MAX98388_R2092_SPK_AMP_OUT_CFG, 0x03},
54 {MAX98388_R2093_SPK_AMP_SSM_CFG, 0x01},
55 {MAX98388_R2094_SPK_AMP_ER_CTRL, 0x00},
56 {MAX98388_R209E_SPK_CH_PINK_NOISE_EN, 0x00},
57 {MAX98388_R209F_SPK_CH_AMP_EN, 0x00},
58 {MAX98388_R20A0_IV_DATA_DSP_CTRL, 0x10},
59 {MAX98388_R20A7_IV_DATA_EN, 0x00},
60 {MAX98388_R20E0_BP_ALC_THRESH, 0x04},
61 {MAX98388_R20E1_BP_ALC_RATES, 0x20},
62 {MAX98388_R20E2_BP_ALC_ATTEN, 0x06},
63 {MAX98388_R20E3_BP_ALC_REL, 0x02},
64 {MAX98388_R20E4_BP_ALC_MUTE, 0x33},
65 {MAX98388_R20EE_BP_INF_HOLD_REL, 0x00},
66 {MAX98388_R20EF_BP_ALC_EN, 0x00},
67 {MAX98388_R210E_AUTO_RESTART, 0x00},
68 {MAX98388_R210F_GLOBAL_EN, 0x00},
69 {MAX98388_R22FF_REV_ID, 0x00},
86 MAX98388_R210F_GLOBAL_EN, 0); in max98388_dac_event()
91 return 0; in max98388_dac_event()
93 return 0; in max98388_dac_event()
108 SOC_DAPM_SINGLE("Switch", MAX98388_R205F_PCM_TX_EN, 0, 1, 0);
112 MAX98388_R205E_PCM_RX_EN, 0, 0, max98388_dac_event,
114 SND_SOC_DAPM_MUX("DAI Sel Mux", SND_SOC_NOPM, 0, 0,
117 SND_SOC_DAPM_AIF_OUT("Voltage Sense", "HiFi Capture", 0,
118 MAX98388_R20A7_IV_DATA_EN, 0, 0),
119 SND_SOC_DAPM_AIF_OUT("Current Sense", "HiFi Capture", 0,
120 MAX98388_R20A7_IV_DATA_EN, 1, 0),
122 MAX98388_R205D_PCM_TX_SRC_EN, 0, 0),
124 MAX98388_R205D_PCM_TX_SRC_EN, 1, 0),
125 SND_SOC_DAPM_SWITCH("VI Sense", SND_SOC_NOPM, 0, 0,
132 static DECLARE_TLV_DB_SCALE(max98388_amp_gain_tlv, -300, 300, 0);
135 "0dBFS", "-1dBFS", "-2dBFS", "-3dBFS", "-4dBFS", "-5dBFS",
175 "0", "10us", "20us", "40us", "80us", "160us",
176 "320us", "640us", "1.28ms", "2.56ms", "5.12ms", "10.24ms",
177 "20.48ms", "40.96ms", "81.92ms", "163.84ms"
187 "1.28ms", "2.56ms", "5.12ms", "10.24ms", "20.48ms", "40.96ms",
188 "81.92ms", "163.84ms", "327.68ms", "655.36ms"
197 "0.01ms", "0.1ms", "1ms", "10ms", "100ms", "250ms", "500ms", "hold"
206 "0.01ms", "0.05ms", "0.1ms", "0.5ms", "1ms", "5ms", "25ms", "250ms"
215 "10ms", "25ms", "50ms", "75ms", "100ms", "200ms", "300ms", "400ms",
216 "500ms", "600ms", "700ms", "800ms", "900ms", "1000ms", "1100ms", "1200ms"
303 MAX98388_SPK_CFG_VOL_RMPUP_SHIFT, 1, 0),
305 MAX98388_SPK_CFG_VOL_RMPDN_SHIFT, 1, 0),
308 MAX98388_SPK_AMP_OUT_MODE_SHIFT, 1, 0),
311 MAX98388_OVC_AUTORESTART_SHIFT, 1, 0),
314 MAX98388_THERM_AUTORESTART_SHIFT, 1, 0),
317 MAX98388_PVDD_UVLO_AUTORESTART_SHIFT, 1, 0),
320 MAX98388_CMON_AUTORESTART_SHIFT, 1, 0),
322 MAX98388_CLOCK_MON_SHIFT, 1, 0),
325 MAX98388_PINK_NOISE_GEN_SHIFT, 1, 0),
328 MAX98388_SPK_CFG_DITH_EN_SHIFT, 1, 0),
330 MAX98388_AMP_DSP_CTRL_DITH_SHIFT, 1, 0),
333 MAX98388_SPK_CFG_DCBLK_SHIFT, 1, 0),
335 MAX98388_AMP_DSP_CTRL_VOL_DCBLK_SHIFT, 1, 0),
337 MAX98388_AMP_DSP_CTRL_CUR_DCBLK_SHIFT, 1, 0),
340 0, 0x7F, 1, max98388_digital_tlv),
343 0, 5, 0, max98388_amp_gain_tlv),
347 SOC_SINGLE("ALC Switch", MAX98388_R20EF_BP_ALC_EN, 0, 1, 0),
354 MAX98388_ALC_UNMUTE_RAMP_EN_SHIFT, 1, 0),
356 MAX98388_ALC_MUTE_RAMP_EN_SHIFT, 1, 0),
358 MAX98388_ALC_MUTE_EN_SHIFT, 1, 0),
362 MAX98388_SPK_MON_SHIFT, 1, 0),
370 MAX98388_SPK_AMP_SSM_EN_SHIFT, 1, 0),
401 count = 0; in max98388_reset()
426 0x10); in max98388_probe()
431 0x1); in max98388_probe()
435 0x3); in max98388_probe()
446 MAX98388_R210E_AUTO_RESTART, 0xF); in max98388_probe()
459 return 0; in max98388_probe()
467 unsigned int format = 0; in max98388_dai_set_fmt()
468 unsigned int invert = 0; in max98388_dai_set_fmt()
470 dev_dbg(component->dev, "%s: fmt 0x%08X\n", __func__, fmt); in max98388_dai_set_fmt()
511 return 0; in max98388_dai_set_fmt()
523 for (i = 0; i < ARRAY_SIZE(bclk_sel_table); i++) { in max98388_get_bclk_sel()
527 return 0; in max98388_get_bclk_sel()
552 return 0; in max98388_set_clock()
561 unsigned int sampling_rate = 0; in max98388_dai_hw_params()
562 unsigned int chan_sz = 0; in max98388_dai_hw_params()
564 int status = 0; in max98388_dai_hw_params()
587 if (ret < 0) in max98388_dai_hw_params()
594 if (ret < 0) in max98388_dai_hw_params()
599 MAX98388_R210F_GLOBAL_EN, 0); in max98388_dai_hw_params()
692 int bsel = 0; in max98388_dai_tdm_slot()
693 unsigned int chan_sz = 0; in max98388_dai_tdm_slot()
705 if (bsel == 0) { in max98388_dai_tdm_slot()
738 slot_found = 0; in max98388_dai_tdm_slot()
740 for (cnt = 0 ; cnt < MAX_NUM_SLOTS ; cnt++, mask >>= 1) { in max98388_dai_tdm_slot()
741 if (mask & 0x1) { in max98388_dai_tdm_slot()
742 if (slot_found == 0) in max98388_dai_tdm_slot()
759 slot_found = 0; in max98388_dai_tdm_slot()
761 for (cnt = 0 ; cnt < MAX_NUM_SLOTS ; cnt++, mask >>= 1) { in max98388_dai_tdm_slot()
762 if (mask & 0x1) { in max98388_dai_tdm_slot()
772 return 0; in max98388_dai_tdm_slot()
861 return 0; in max98388_suspend()
872 return 0; in max98388_resume()
908 max98388->v_slot = value & 0xF; in max98388_read_deveice_property()
910 max98388->v_slot = 0; in max98388_read_deveice_property()
913 max98388->i_slot = value & 0xF; in max98388_read_deveice_property()
925 int ret = 0; in max98388_i2c_probe()
926 int reg = 0; in max98388_i2c_probe()
954 gpiod_set_value_cansleep(max98388->reset_gpio, 0); in max98388_i2c_probe()
962 if (ret < 0) in max98388_i2c_probe()
966 dev_info(&i2c->dev, "MAX98388 revisionID: 0x%02X\n", reg); in max98388_i2c_probe()
973 if (ret < 0) in max98388_i2c_probe()
993 { "ADS8388", 0 },