Lines Matching refs:i2s_priv
118 struct mtk_afe_i2s_priv *i2s_priv; in mt8186_i2s_hd_get() local
120 i2s_priv = get_i2s_priv_by_name(afe, kcontrol->id.name); in mt8186_i2s_hd_get()
121 ucontrol->value.integer.value[0] = i2s_priv->low_jitter_en; in mt8186_i2s_hd_get()
131 struct mtk_afe_i2s_priv *i2s_priv; in mt8186_i2s_hd_set() local
143 i2s_priv = get_i2s_priv_by_name(afe, kcontrol->id.name); in mt8186_i2s_hd_set()
144 if (i2s_priv->low_jitter_en == hd_en) in mt8186_i2s_hd_set()
147 i2s_priv->low_jitter_en = hd_en; in mt8186_i2s_hd_set()
363 struct mtk_afe_i2s_priv *i2s_priv; in mtk_i2s_en_event() local
365 i2s_priv = get_i2s_priv_by_name(afe, w->name); 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()
420 struct mtk_afe_i2s_priv *i2s_priv; in mtk_mclk_en_event() local
425 i2s_priv = get_i2s_priv_by_name(afe, w->name); in mtk_mclk_en_event()
429 mt8186_mck_enable(afe, i2s_priv->mclk_id, i2s_priv->mclk_rate); in mtk_mclk_en_event()
432 i2s_priv->mclk_rate = 0; in mtk_mclk_en_event()
433 mt8186_mck_disable(afe, i2s_priv->mclk_id); in mtk_mclk_en_event()
543 struct mtk_afe_i2s_priv *i2s_priv; in mtk_afe_i2s_share_connect() local
545 i2s_priv = get_i2s_priv_by_name(afe, sink->name); in mtk_afe_i2s_share_connect()
546 if (i2s_priv->share_i2s_id < 0) in mtk_afe_i2s_share_connect()
549 return i2s_priv->share_i2s_id == get_i2s_id_by_name(afe, source->name); in mtk_afe_i2s_share_connect()
558 struct mtk_afe_i2s_priv *i2s_priv; in mtk_afe_i2s_hd_connect() local
560 i2s_priv = get_i2s_priv_by_name(afe, sink->name); in mtk_afe_i2s_hd_connect()
563 return i2s_priv->low_jitter_en; in mtk_afe_i2s_hd_connect()
566 if (i2s_priv->share_i2s_id < 0) in mtk_afe_i2s_hd_connect()
569 if (i2s_priv->share_i2s_id == get_i2s_id_by_name(afe, source->name)) in mtk_afe_i2s_hd_connect()
570 return i2s_priv->low_jitter_en; in mtk_afe_i2s_hd_connect()
581 struct mtk_afe_i2s_priv *i2s_priv; in mtk_afe_i2s_apll_connect() local
585 i2s_priv = get_i2s_priv_by_name(afe, w->name); in mtk_afe_i2s_apll_connect()
589 i2s_need_apll = mt8186_get_apll_by_rate(afe, i2s_priv->rate); in mtk_afe_i2s_apll_connect()
600 struct mtk_afe_i2s_priv *i2s_priv; in mtk_afe_i2s_mclk_connect() local
602 i2s_priv = get_i2s_priv_by_name(afe, sink->name); in mtk_afe_i2s_mclk_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()
611 if (i2s_priv->share_i2s_id == get_i2s_id_by_name(afe, source->name)) in mtk_afe_i2s_mclk_connect()
612 return (i2s_priv->mclk_rate > 0) ? 1 : 0; in mtk_afe_i2s_mclk_connect()
623 struct mtk_afe_i2s_priv *i2s_priv; in mtk_afe_mclk_apll_connect() local
626 i2s_priv = get_i2s_priv_by_name(afe, w->name); in mtk_afe_mclk_apll_connect()
630 return (i2s_priv->mclk_apll == cur_apll) ? 1 : 0; in mtk_afe_mclk_apll_connect()
929 struct mtk_afe_i2s_priv *i2s_priv = afe_priv->dai_priv[i2s_id]; in mtk_dai_i2s_config() local
941 i2s_priv->rate = rate; in mtk_dai_i2s_config()
982 if (i2s_priv->share_i2s_id >= 0) { in mtk_dai_i2s_config()
983 ret = mtk_dai_i2s_config(afe, params, i2s_priv->share_i2s_id); in mtk_dai_i2s_config()
1005 struct mtk_afe_i2s_priv *i2s_priv = afe_priv->dai_priv[dai->id]; in mtk_dai_i2s_set_sysclk() local
1029 i2s_priv->mclk_rate = freq; in mtk_dai_i2s_set_sysclk()
1030 i2s_priv->mclk_apll = apll; in mtk_dai_i2s_set_sysclk()
1032 if (i2s_priv->share_i2s_id > 0) { in mtk_dai_i2s_set_sysclk()
1035 share_i2s_priv = afe_priv->dai_priv[i2s_priv->share_i2s_id]; in mtk_dai_i2s_set_sysclk()
1041 share_i2s_priv->mclk_rate = i2s_priv->mclk_rate; in mtk_dai_i2s_set_sysclk()
1042 share_i2s_priv->mclk_apll = i2s_priv->mclk_apll; in mtk_dai_i2s_set_sysclk()