Lines Matching refs:etdm_priv

460 	struct mtk_dai_etdm_priv *etdm_priv;  in mtk_afe_etdm_apll_connect()  local
464 etdm_priv = get_etdm_priv_by_name(afe, w->name); in mtk_afe_etdm_apll_connect()
465 if (!etdm_priv) { in mtk_afe_etdm_apll_connect()
471 need_apll = mt8188_get_apll_by_rate(afe, etdm_priv->rate); in mtk_afe_etdm_apll_connect()
482 struct mtk_dai_etdm_priv *etdm_priv; in mtk_afe_mclk_apll_connect() local
485 etdm_priv = get_etdm_priv_by_name(afe, w->name); in mtk_afe_mclk_apll_connect()
489 return (etdm_priv->mclk_apll == cur_apll) ? 1 : 0; in mtk_afe_mclk_apll_connect()
499 struct mtk_dai_etdm_priv *etdm_priv; in mtk_etdm_mclk_connect() local
508 etdm_priv = get_etdm_priv_by_name(afe, w->name); in mtk_etdm_mclk_connect()
509 if (!etdm_priv) { in mtk_etdm_mclk_connect()
515 return !!(etdm_priv->mclk_freq > 0); in mtk_etdm_mclk_connect()
517 if (etdm_priv->cowork_source_id == mclk_id) { in mtk_etdm_mclk_connect()
518 etdm_priv = afe_priv->dai_priv[mclk_id]; in mtk_etdm_mclk_connect()
519 return !!(etdm_priv->mclk_freq > 0); in mtk_etdm_mclk_connect()
532 struct mtk_dai_etdm_priv *etdm_priv; in mtk_etdm_cowork_connect() local
542 etdm_priv = get_etdm_priv_by_name(afe, w->name); in mtk_etdm_cowork_connect()
543 if (!etdm_priv) { in mtk_etdm_cowork_connect()
548 if (etdm_priv->cowork_source_id != COWORK_ETDM_NONE) { in mtk_etdm_cowork_connect()
549 if (etdm_priv->cowork_source_id == source_id) in mtk_etdm_cowork_connect()
552 etdm_priv = afe_priv->dai_priv[etdm_priv->cowork_source_id]; in mtk_etdm_cowork_connect()
553 for (i = 0; i < etdm_priv->cowork_slv_count; i++) { in mtk_etdm_cowork_connect()
554 if (etdm_priv->cowork_slv_id[i] == source_id) in mtk_etdm_cowork_connect()
558 for (i = 0; i < etdm_priv->cowork_slv_count; i++) { in mtk_etdm_cowork_connect()
559 if (etdm_priv->cowork_slv_id[i] == source_id) in mtk_etdm_cowork_connect()
2675 struct mtk_dai_etdm_priv *etdm_priv; in init_etdm_priv_data() local
2679 etdm_priv = devm_kzalloc(afe->dev, in init_etdm_priv_data()
2682 if (!etdm_priv) in init_etdm_priv_data()
2685 afe_priv->dai_priv[i] = etdm_priv; in init_etdm_priv_data()