Lines Matching +full:0 +full:x80010000
16 AUDIO_SDM_LEVEL_MUTE = 0,
17 AUDIO_SDM_LEVEL_NORMAL = 0x1d,
24 SOC_DAPM_SINGLE_AUTODISABLE("DL1_CH1", AFE_CONN3, I_DL1_CH1, 1, 0),
25 SOC_DAPM_SINGLE_AUTODISABLE("DL2_CH1", AFE_CONN3, I_DL2_CH1, 1, 0),
26 SOC_DAPM_SINGLE_AUTODISABLE("DL3_CH1", AFE_CONN3, I_DL3_CH1, 1, 0),
28 I_ADDA_UL_CH2, 1, 0),
30 I_ADDA_UL_CH1, 1, 0),
32 I_PCM_1_CAP_CH1, 1, 0),
34 I_PCM_2_CAP_CH1, 1, 0),
38 SOC_DAPM_SINGLE_AUTODISABLE("DL1_CH1", AFE_CONN4, I_DL1_CH1, 1, 0),
39 SOC_DAPM_SINGLE_AUTODISABLE("DL1_CH2", AFE_CONN4, I_DL1_CH2, 1, 0),
40 SOC_DAPM_SINGLE_AUTODISABLE("DL2_CH1", AFE_CONN4, I_DL2_CH1, 1, 0),
41 SOC_DAPM_SINGLE_AUTODISABLE("DL2_CH2", AFE_CONN4, I_DL2_CH2, 1, 0),
42 SOC_DAPM_SINGLE_AUTODISABLE("DL3_CH1", AFE_CONN4, I_DL3_CH1, 1, 0),
43 SOC_DAPM_SINGLE_AUTODISABLE("DL3_CH2", AFE_CONN4, I_DL3_CH2, 1, 0),
45 I_ADDA_UL_CH2, 1, 0),
47 I_ADDA_UL_CH1, 1, 0),
49 I_PCM_1_CAP_CH1, 1, 0),
51 I_PCM_2_CAP_CH1, 1, 0),
53 I_PCM_1_CAP_CH2, 1, 0),
55 I_PCM_2_CAP_CH2, 1, 0),
66 dev_dbg(afe->dev, "%s(), name %s, event 0x%x\n", in mtk_adda_ul_event()
75 0x1, 0x1); in mtk_adda_ul_event()
79 0x0, 0xf << 20); in mtk_adda_ul_event()
81 0x0, 0x1 << 5); in mtk_adda_ul_event()
83 0x0, 0x3 << 14); in mtk_adda_ul_event()
87 0x1 << 1, 0x1 << 1); in mtk_adda_ul_event()
89 0x3 << 21, 0x3 << 21); in mtk_adda_ul_event()
100 return 0; in mtk_adda_ul_event()
120 ucontrol->value.integer.value[0] = afe_priv->mtkaif_dmic; in mt8183_adda_dmic_get()
122 return 0; in mt8183_adda_dmic_get()
133 if (ucontrol->value.enumerated.item[0] >= e->items) in mt8183_adda_dmic_set()
136 afe_priv->mtkaif_dmic = ucontrol->value.integer.value[0]; in mt8183_adda_dmic_set()
141 return 0; in mt8183_adda_dmic_set()
145 SOC_ENUM_EXT("MTKAIF_DMIC", mt8183_adda_enum[0],
157 SND_SOC_DAPM_MIXER("ADDA_DL_CH1", SND_SOC_NOPM, 0, 0,
160 SND_SOC_DAPM_MIXER("ADDA_DL_CH2", SND_SOC_NOPM, 0, 0,
165 AFE_ADDA_UL_DL_CON0, ADDA_AFE_ON_SFT, 0,
166 NULL, 0),
170 DL_2_SRC_ON_TMP_CTL_PRE_SFT, 0,
171 NULL, 0),
175 UL_SRC_ON_TMP_CTL_SFT, 0,
225 regmap_write(afe->regmap, AFE_AUD_PAD_TOP, 0x38); in set_mtkaif_rx()
226 regmap_write(afe->regmap, AFE_AUD_PAD_TOP, 0x39); in set_mtkaif_rx()
229 0x80010000); in set_mtkaif_rx()
231 if (afe_priv->mtkaif_phase_cycle[0] >= in set_mtkaif_rx()
234 delay_cycle = afe_priv->mtkaif_phase_cycle[0] - in set_mtkaif_rx()
239 afe_priv->mtkaif_phase_cycle[0]; in set_mtkaif_rx()
253 regmap_write(afe->regmap, AFE_AUD_PAD_TOP, 0x31); in set_mtkaif_rx()
255 0x00010000); in set_mtkaif_rx()
258 regmap_write(afe->regmap, AFE_AUD_PAD_TOP, 0x31); in set_mtkaif_rx()
259 regmap_write(afe->regmap, AFE_ADDA_MTKAIF_CFG0, 0x0); in set_mtkaif_rx()
265 return 0; in set_mtkaif_rx()
280 unsigned int dl_src2_con0 = 0; in mtk_dai_adda_hw_params()
281 unsigned int dl_src2_con1 = 0; in mtk_dai_adda_hw_params()
284 regmap_write(afe->regmap, AFE_ADDA_PREDIS_CON0, 0); in mtk_dai_adda_hw_params()
285 regmap_write(afe->regmap, AFE_ADDA_PREDIS_CON1, 0); in mtk_dai_adda_hw_params()
293 dl_src2_con0 |= (0x1 << 24); /* UP_SAMPLING_RATE_X2 */ in mtk_dai_adda_hw_params()
297 dl_src2_con0 |= (0x2 << 24); /* UP_SAMPLING_RATE_X4 */ in mtk_dai_adda_hw_params()
301 dl_src2_con0 |= (0x3 << 24); /* UP_SAMPLING_RATE_X8 */ in mtk_dai_adda_hw_params()
306 dl_src2_con0 |= (0x03 << 11); in mtk_dai_adda_hw_params()
310 dl_src2_con0 |= 0x01 << 5; in mtk_dai_adda_hw_params()
313 dl_src2_con1 = 0xf74f0000; in mtk_dai_adda_hw_params()
316 dl_src2_con0 = dl_src2_con0 | (0x01 << 1); in mtk_dai_adda_hw_params()
327 unsigned int voice_mode = 0; in mtk_dai_adda_hw_params()
328 unsigned int ul_src_con0 = 0; /* default value */ in mtk_dai_adda_hw_params()
336 0x1 << 0, in mtk_dai_adda_hw_params()
337 0x0 << 0); in mtk_dai_adda_hw_params()
341 ul_src_con0 |= (voice_mode << 17) & (0x7 << 17); in mtk_dai_adda_hw_params()
348 regmap_write(afe->regmap, AFE_ADDA_IIR_COEF_02_01, 0x00000000); in mtk_dai_adda_hw_params()
349 regmap_write(afe->regmap, AFE_ADDA_IIR_COEF_04_03, 0x00003FB8); in mtk_dai_adda_hw_params()
350 regmap_write(afe->regmap, AFE_ADDA_IIR_COEF_06_05, 0x3FB80000); in mtk_dai_adda_hw_params()
351 regmap_write(afe->regmap, AFE_ADDA_IIR_COEF_08_07, 0x3FB80000); in mtk_dai_adda_hw_params()
352 regmap_write(afe->regmap, AFE_ADDA_IIR_COEF_10_09, 0x0000C048); in mtk_dai_adda_hw_params()
356 /* mtkaif_rxif_data_mode = 0, amic */ in mtk_dai_adda_hw_params()
359 0x1 << 0, in mtk_dai_adda_hw_params()
360 0x0 << 0); in mtk_dai_adda_hw_params()
363 return 0; in mtk_dai_adda_hw_params()
425 return 0; in mt8183_dai_adda_register()