Lines Matching refs:afe_priv
249 struct mt8188_afe_private *afe_priv = afe->platform_priv; in is_cowork_mode() local
254 etdm_data = afe_priv->dai_priv[dai->id]; in is_cowork_mode()
281 struct mt8188_afe_private *afe_priv = afe->platform_priv; in get_etdm_cowork_master_id() local
287 etdm_data = afe_priv->dai_priv[dai->id]; in get_etdm_cowork_master_id()
376 struct mt8188_afe_private *afe_priv = afe->platform_priv; in get_etdm_priv_by_name() local
383 return afe_priv->dai_priv[dai_id]; in get_etdm_priv_by_name()
388 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mtk_dai_etdm_enable_mclk() local
401 etdm_data = afe_priv->dai_priv[dai_id]; in mtk_dai_etdm_enable_mclk()
422 mt8188_afe_enable_clk(afe, afe_priv->clk[clkmux_id]); in mtk_dai_etdm_enable_mclk()
425 ret = mt8188_afe_set_clk_parent(afe, afe_priv->clk[clkmux_id], in mtk_dai_etdm_enable_mclk()
426 afe_priv->clk[apll_clk_id]); in mtk_dai_etdm_enable_mclk()
431 ret = mt8188_afe_set_clk_rate(afe, afe_priv->clk[clkdiv_id], in mtk_dai_etdm_enable_mclk()
434 mt8188_afe_enable_clk(afe, afe_priv->clk[clkdiv_id]); in mtk_dai_etdm_enable_mclk()
441 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mtk_dai_etdm_disable_mclk() local
448 mt8188_afe_disable_clk(afe, afe_priv->clk[clkdiv_id]); in mtk_dai_etdm_disable_mclk()
449 mt8188_afe_disable_clk(afe, afe_priv->clk[clkmux_id]); in mtk_dai_etdm_disable_mclk()
498 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mtk_etdm_mclk_connect() local
518 etdm_priv = afe_priv->dai_priv[mclk_id]; in mtk_etdm_mclk_connect()
531 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mtk_etdm_cowork_connect() local
552 etdm_priv = afe_priv->dai_priv[etdm_priv->cowork_source_id]; in mtk_etdm_cowork_connect()
657 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mtk_etdm_cg_event() local
678 mt8188_afe_enable_clk(afe, afe_priv->clk[cg_id]); in mtk_etdm_cg_event()
681 mt8188_afe_disable_clk(afe, afe_priv->clk[cg_id]); in mtk_etdm_cg_event()
696 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mtk_etdm3_cg_event() local
703 mt8188_afe_enable_clk(afe, afe_priv->clk[MT8188_CLK_AUD_HDMI_OUT]); in mtk_etdm3_cg_event()
706 mt8188_afe_disable_clk(afe, afe_priv->clk[MT8188_CLK_AUD_HDMI_OUT]); in mtk_etdm3_cg_event()
1732 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mt8188_etdm_sync_mode_slv() local
1741 etdm_data = afe_priv->dai_priv[dai_id]; in mt8188_etdm_sync_mode_slv()
1785 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mt8188_etdm_sync_mode_mst() local
1796 etdm_data = afe_priv->dai_priv[dai_id]; in mt8188_etdm_sync_mode_mst()
1845 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mt8188_etdm_sync_mode_configure() local
1850 etdm_data = afe_priv->dai_priv[dai_id]; in mt8188_etdm_sync_mode_configure()
1901 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mtk_dai_etdm_in_configure() local
1914 etdm_data = afe_priv->dai_priv[dai_id]; in mtk_dai_etdm_in_configure()
2019 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mtk_dai_etdm_out_configure() local
2031 etdm_data = afe_priv->dai_priv[dai_id]; in mtk_dai_etdm_out_configure()
2106 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mtk_dai_etdm_configure() local
2119 etdm_data = afe_priv->dai_priv[dai_id]; in mtk_dai_etdm_configure()
2181 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mtk_dai_etdm_hw_params() local
2197 mst_etdm_data = afe_priv->dai_priv[mst_dai_id]; in mtk_dai_etdm_hw_params()
2220 mst_etdm_data = afe_priv->dai_priv[dai->id]; in mtk_dai_etdm_hw_params()
2235 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mtk_dai_etdm_cal_mclk() local
2242 etdm_data = afe_priv->dai_priv[dai_id]; in mtk_dai_etdm_cal_mclk()
2277 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mtk_dai_etdm_set_sysclk() local
2290 etdm_data = afe_priv->dai_priv[dai_id]; in mtk_dai_etdm_set_sysclk()
2300 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mtk_dai_etdm_set_tdm_slot() local
2311 etdm_data = afe_priv->dai_priv[dai_id]; in mtk_dai_etdm_set_tdm_slot()
2324 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mtk_dai_etdm_set_fmt() local
2329 etdm_data = afe_priv->dai_priv[dai->id]; in mtk_dai_etdm_set_fmt()
2419 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mtk_dai_hdmitx_dptx_hw_params() local
2429 etdm_data = afe_priv->dai_priv[dai->id]; in mtk_dai_hdmitx_dptx_hw_params()
2464 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mtk_dai_hdmitx_dptx_set_sysclk() local
2469 etdm_data = afe_priv->dai_priv[dai->id]; in mtk_dai_hdmitx_dptx_set_sysclk()
2575 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mt8188_etdm_update_sync_info() local
2582 etdm_data = afe_priv->dai_priv[i]; in mt8188_etdm_update_sync_info()
2585 mst_data = afe_priv->dai_priv[mst_dai_id]; in mt8188_etdm_update_sync_info()
2598 struct mt8188_afe_private *afe_priv = afe->platform_priv; in mt8188_dai_etdm_parse_of() local
2621 etdm_data = afe_priv->dai_priv[dai_id]; in mt8188_dai_etdm_parse_of()
2650 etdm_data = afe_priv->dai_priv[dai_id]; in mt8188_dai_etdm_parse_of()
2674 struct mt8188_afe_private *afe_priv = afe->platform_priv; in init_etdm_priv_data() local
2685 afe_priv->dai_priv[i] = etdm_priv; in init_etdm_priv_data()
2688 afe_priv->dai_priv[MT8188_AFE_IO_DPTX] = in init_etdm_priv_data()
2689 afe_priv->dai_priv[MT8188_AFE_IO_ETDM3_OUT]; in init_etdm_priv_data()