Lines Matching +full:0 +full:x36000
17 I2S_FMT_EIAJ = 0,
22 I2S_WLEN_16_BIT = 0,
27 I2S_HD_NORMAL = 0,
32 I2S1_SEL_O28_O29 = 0,
37 I2S_IN_PAD_CONNSYS = 0,
79 if (strncmp(name, "I2S0", 4) == 0) in get_i2s_id_by_name()
81 else if (strncmp(name, "I2S1", 4) == 0) in get_i2s_id_by_name()
83 else if (strncmp(name, "I2S2", 4) == 0) in get_i2s_id_by_name()
85 else if (strncmp(name, "I2S3", 4) == 0) in get_i2s_id_by_name()
97 if (dai_id < 0) in get_i2s_priv_by_name()
121 ucontrol->value.integer.value[0] = i2s_priv->low_jitter_en; in mt8186_i2s_hd_get()
123 return 0; in mt8186_i2s_hd_get()
135 if (ucontrol->value.enumerated.item[0] >= e->items) in mt8186_i2s_hd_set()
138 hd_en = ucontrol->value.integer.value[0]; in mt8186_i2s_hd_set()
145 return 0; in mt8186_i2s_hd_set()
153 SOC_ENUM_EXT(MTK_AFE_I2S0_KCONTROL_NAME, mt8186_i2s_enum[0],
155 SOC_ENUM_EXT(MTK_AFE_I2S1_KCONTROL_NAME, mt8186_i2s_enum[0],
157 SOC_ENUM_EXT(MTK_AFE_I2S2_KCONTROL_NAME, mt8186_i2s_enum[0],
159 SOC_ENUM_EXT(MTK_AFE_I2S3_KCONTROL_NAME, mt8186_i2s_enum[0],
170 0, 1,
175 0,
198 0, 1,
224 I_DL1_CH1, 1, 0),
226 I_DL2_CH1, 1, 0),
228 I_DL3_CH1, 1, 0),
230 I_DL12_CH1, 1, 0),
232 I_DL12_CH3, 1, 0),
234 I_DL6_CH1, 1, 0),
236 I_DL4_CH1, 1, 0),
238 I_DL5_CH1, 1, 0),
240 I_DL8_CH1, 1, 0),
242 I_GAIN1_OUT_CH1, 1, 0),
244 I_ADDA_UL_CH1, 1, 0),
246 I_ADDA_UL_CH2, 1, 0),
248 I_ADDA_UL_CH3, 1, 0),
250 I_PCM_1_CAP_CH1, 1, 0),
252 I_SRC_1_OUT_CH1, 1, 0),
257 I_DL1_CH2, 1, 0),
259 I_DL2_CH2, 1, 0),
261 I_DL3_CH2, 1, 0),
263 I_DL12_CH2, 1, 0),
265 I_DL12_CH4, 1, 0),
267 I_DL6_CH2, 1, 0),
269 I_DL4_CH2, 1, 0),
271 I_DL5_CH2, 1, 0),
273 I_DL8_CH2, 1, 0),
275 I_GAIN1_OUT_CH2, 1, 0),
277 I_ADDA_UL_CH1, 1, 0),
279 I_ADDA_UL_CH2, 1, 0),
281 I_ADDA_UL_CH3, 1, 0),
283 I_PCM_1_CAP_CH2, 1, 0),
285 I_PCM_2_CAP_CH2, 1, 0),
287 I_SRC_1_OUT_CH2, 1, 0),
292 I_DL1_CH1, 1, 0),
294 I_DL2_CH1, 1, 0),
296 I_DL3_CH1, 1, 0),
298 I_DL12_CH1, 1, 0),
300 I_DL12_CH3, 1, 0),
302 I_DL6_CH1, 1, 0),
304 I_DL4_CH1, 1, 0),
306 I_DL5_CH1, 1, 0),
308 I_DL8_CH1, 1, 0),
310 I_GAIN1_OUT_CH1, 1, 0),
312 I_ADDA_UL_CH1, 1, 0),
314 I_PCM_1_CAP_CH1, 1, 0),
316 I_SRC_1_OUT_CH1, 1, 0),
321 I_DL1_CH2, 1, 0),
323 I_DL2_CH2, 1, 0),
325 I_DL3_CH2, 1, 0),
327 I_DL12_CH2, 1, 0),
329 I_DL12_CH4, 1, 0),
331 I_DL6_CH2, 1, 0),
333 I_DL4_CH2, 1, 0),
335 I_DL5_CH2, 1, 0),
337 I_DL8_CH2, 1, 0),
339 I_GAIN1_OUT_CH2, 1, 0),
341 I_ADDA_UL_CH2, 1, 0),
343 I_PCM_1_CAP_CH2, 1, 0),
345 I_PCM_2_CAP_CH2, 1, 0),
347 I_SRC_1_OUT_CH2, 1, 0),
367 dev_dbg(cmpnt->dev, "%s(), name %s, event 0x%x\n", in mtk_i2s_en_event()
372 mt8186_afe_gpio_request(afe->dev, true, i2s_priv->id, 0); in mtk_i2s_en_event()
375 mt8186_afe_gpio_request(afe->dev, false, i2s_priv->id, 0); in mtk_i2s_en_event()
381 return 0; in mtk_i2s_en_event()
391 dev_dbg(cmpnt->dev, "%s(), name %s, event 0x%x\n", in mtk_apll_event()
396 if (snd_soc_dapm_widget_name_cmp(w, APLL1_W_NAME) == 0) in mtk_apll_event()
402 if (snd_soc_dapm_widget_name_cmp(w, APLL1_W_NAME) == 0) in mtk_apll_event()
411 return 0; in mtk_apll_event()
422 dev_dbg(cmpnt->dev, "%s(), name %s, event 0x%x\n", in mtk_mclk_en_event()
432 i2s_priv->mclk_rate = 0; in mtk_mclk_en_event()
439 return 0; in mtk_mclk_en_event()
445 SND_SOC_DAPM_MIXER("I2S1_CH1", SND_SOC_NOPM, 0, 0,
448 SND_SOC_DAPM_MIXER("I2S1_CH2", SND_SOC_NOPM, 0, 0,
452 SND_SOC_DAPM_MIXER("I2S3_CH1", SND_SOC_NOPM, 0, 0,
455 SND_SOC_DAPM_MIXER("I2S3_CH2", SND_SOC_NOPM, 0, 0,
461 AFE_I2S_CON, I2S_EN_SFT, 0,
465 AFE_I2S_CON1, I2S_EN_SFT, 0,
469 AFE_I2S_CON2, I2S_EN_SFT, 0,
473 AFE_I2S_CON3, I2S_EN_SFT, 0,
478 AFE_I2S_CON, I2S1_HD_EN_SFT, 0, NULL,
481 AFE_I2S_CON1, I2S2_HD_EN_SFT, 0, NULL,
484 AFE_I2S_CON2, I2S3_HD_EN_SFT, 0, NULL,
487 AFE_I2S_CON3, I2S4_HD_EN_SFT, 0, NULL,
492 SND_SOC_NOPM, 0, 0,
496 SND_SOC_NOPM, 0, 0,
500 SND_SOC_NOPM, 0, 0,
504 SND_SOC_NOPM, 0, 0,
510 SND_SOC_NOPM, 0, 0,
514 SND_SOC_NOPM, 0, 0,
521 SND_SOC_NOPM, 0, 0, &i2s1_out_mux_control),
523 SND_SOC_NOPM, 0, 0, &i2s3_out_mux_control),
526 SND_SOC_NOPM, 0, 0, &i2s0_in_mux_control),
528 SND_SOC_NOPM, 0, 0, &i2s2_in_mux_control),
532 SND_SOC_NOPM, 0, 0, &i2s0_lpbk_mux_control),
534 SND_SOC_NOPM, 0, 0, &i2s2_lpbk_mux_control),
546 if (i2s_priv->share_i2s_id < 0) in mtk_afe_i2s_share_connect()
547 return 0; in mtk_afe_i2s_share_connect()
566 if (i2s_priv->share_i2s_id < 0) in mtk_afe_i2s_hd_connect()
567 return 0; in mtk_afe_i2s_hd_connect()
572 return 0; in mtk_afe_i2s_hd_connect()
591 return (i2s_need_apll == cur_apll) ? 1 : 0; in mtk_afe_i2s_apll_connect()
605 return (i2s_priv->mclk_rate > 0) ? 1 : 0; in mtk_afe_i2s_mclk_connect()
608 if (i2s_priv->share_i2s_id < 0) in mtk_afe_i2s_mclk_connect()
609 return 0; in mtk_afe_i2s_mclk_connect()
612 return (i2s_priv->mclk_rate > 0) ? 1 : 0; in mtk_afe_i2s_mclk_connect()
614 return 0; in mtk_afe_i2s_mclk_connect()
630 return (i2s_priv->mclk_apll == cur_apll) ? 1 : 0; in mtk_afe_mclk_apll_connect()
817 unsigned int i2s_con = 0; in mtk_dai_connsys_i2s_hw_params()
823 i2s_con |= 0 << INV_PAD_CTRL_SFT; in mtk_dai_connsys_i2s_hw_params()
827 i2s_con |= 0 << I2SIN_PAD_SEL_SFT; in mtk_dai_connsys_i2s_hw_params()
832 I2S_BYPSRC_MASK_SFT, 0); in mtk_dai_connsys_i2s_hw_params()
839 regmap_write(afe->regmap, AFE_ASRC_2CH_CON3, 0x1b9000); in mtk_dai_connsys_i2s_hw_params()
841 regmap_write(afe->regmap, AFE_ASRC_2CH_CON3, 0x140000); in mtk_dai_connsys_i2s_hw_params()
843 regmap_write(afe->regmap, AFE_ASRC_2CH_CON3, 0x1e0000); in mtk_dai_connsys_i2s_hw_params()
846 regmap_write(afe->regmap, AFE_ASRC_2CH_CON4, 0x140000); in mtk_dai_connsys_i2s_hw_params()
847 regmap_write(afe->regmap, AFE_ASRC_2CH_CON9, 0x36000); in mtk_dai_connsys_i2s_hw_params()
848 regmap_write(afe->regmap, AFE_ASRC_2CH_CON10, 0x2fc00); in mtk_dai_connsys_i2s_hw_params()
849 regmap_write(afe->regmap, AFE_ASRC_2CH_CON6, 0x7ef4); in mtk_dai_connsys_i2s_hw_params()
850 regmap_write(afe->regmap, AFE_ASRC_2CH_CON5, 0xff5986); in mtk_dai_connsys_i2s_hw_params()
852 /* 0:Stereo 1:Mono */ in mtk_dai_connsys_i2s_hw_params()
854 CHSET_IS_MONO_MASK_SFT, 0); in mtk_dai_connsys_i2s_hw_params()
856 return 0; in mtk_dai_connsys_i2s_hw_params()
894 return 0; in mtk_dai_connsys_i2s_trigger()
898 CON0_ASM_ON_MASK_SFT, 0); in mtk_dai_connsys_i2s_trigger()
900 CALI_EN_MASK_SFT, 0); in mtk_dai_connsys_i2s_trigger()
904 I2S_EN_MASK_SFT, 0); in mtk_dai_connsys_i2s_trigger()
911 return 0; in mtk_dai_connsys_i2s_trigger()
915 return 0; in mtk_dai_connsys_i2s_trigger()
935 unsigned int i2s_con = 0; in mtk_dai_i2s_config()
950 0xffffeffa, i2s_con); in mtk_dai_i2s_config()
958 0xffffeffa, i2s_con); in mtk_dai_i2s_config()
966 0xffffeffa, i2s_con); in mtk_dai_i2s_config()
973 0xffffeffa, i2s_con); in mtk_dai_i2s_config()
982 if (i2s_priv->share_i2s_id >= 0) { in mtk_dai_i2s_config()
988 return 0; in mtk_dai_i2s_config()
1024 if (apll_rate % freq != 0) { in mtk_dai_i2s_set_sysclk()
1032 if (i2s_priv->share_i2s_id > 0) { in mtk_dai_i2s_set_sysclk()
1045 return 0; in mtk_dai_i2s_set_sysclk()
1131 DAI_I2S0 = 0,
1179 if (main_i2s_id < 0) in mt8186_dai_i2s_set_share()
1184 return 0; in mt8186_dai_i2s_set_share()
1193 for (i = 0; i < DAI_I2S_NUM; i++) { in mt8186_dai_i2s_set_priv()
1201 return 0; in mt8186_dai_i2s_set_priv()
1230 return 0; in mt8186_dai_i2s_register()