Lines Matching refs:rdai

211 static u32 rsnd_rdai_width_to_swl(struct rsnd_dai *rdai)  in rsnd_rdai_width_to_swl()  argument
213 struct rsnd_priv *priv = rsnd_rdai_to_priv(rdai); in rsnd_rdai_width_to_swl()
215 int width = rsnd_rdai_width_get(rdai); in rsnd_rdai_width_to_swl()
227 unsigned int rsnd_ssi_clk_query(struct rsnd_dai *rdai, in rsnd_ssi_clk_query() argument
230 struct rsnd_priv *priv = rsnd_rdai_to_priv(rdai); in rsnd_ssi_clk_query()
236 int width = rsnd_rdai_width_get(rdai); in rsnd_ssi_clk_query()
269 struct rsnd_dai *rdai = rsnd_io_to_rdai(io); in rsnd_ssi_master_clk_start() local
278 if (!rsnd_rdai_is_clk_master(rdai)) in rsnd_ssi_master_clk_start()
307 main_rate = rsnd_ssi_clk_query(rdai, rate, chan, &idx); in rsnd_ssi_master_clk_start()
325 ssi->cr_clk = FORCE | rsnd_rdai_width_to_swl(rdai) | in rsnd_ssi_master_clk_start()
344 struct rsnd_dai *rdai = rsnd_io_to_rdai(io); in rsnd_ssi_master_clk_stop() local
347 if (!rsnd_rdai_is_clk_master(rdai)) in rsnd_ssi_master_clk_stop()
366 struct rsnd_dai *rdai = rsnd_io_to_rdai(io); in rsnd_ssi_config_init() local
367 struct rsnd_priv *priv = rsnd_rdai_to_priv(rdai); in rsnd_ssi_config_init()
385 cr_own |= FORCE | rsnd_rdai_width_to_swl(rdai); in rsnd_ssi_config_init()
387 if (rdai->bit_clk_inv) in rsnd_ssi_config_init()
389 if (rdai->frm_clk_inv && !is_tdm) in rsnd_ssi_config_init()
391 if (rdai->data_alignment) in rsnd_ssi_config_init()
393 if (rdai->sys_delay) in rsnd_ssi_config_init()
535 struct rsnd_dai *rdai = rsnd_io_to_rdai(io); in rsnd_ssi_hw_params() local
538 if (fmt_width > rdai->chan_width) { in rsnd_ssi_hw_params()
764 struct rsnd_dai *rdai = rsnd_io_to_rdai(io); in rsnd_ssi_parent_attach() local
770 if (!rsnd_rdai_is_clk_master(rdai)) in rsnd_ssi_parent_attach()
1035 struct rsnd_dai *rdai = rsnd_io_to_rdai(io); in rsnd_ssi_debug_info() local
1038 seq_printf(m, "clock: %s\n", rsnd_rdai_is_clk_master(rdai) ? in rsnd_ssi_debug_info()
1040 seq_printf(m, "bit_clk_inv: %d\n", rdai->bit_clk_inv); in rsnd_ssi_debug_info()
1041 seq_printf(m, "frm_clk_inv: %d\n", rdai->frm_clk_inv); in rsnd_ssi_debug_info()
1086 struct rsnd_dai *rdai = rsnd_io_to_rdai(io); in rsnd_ssi_connect() local
1101 rsnd_rdai_channels_set(rdai, (i + 1) * 2); in rsnd_ssi_connect()
1102 rsnd_rdai_ssi_lane_set(rdai, (i + 1)); in rsnd_ssi_connect()
1108 void rsnd_parse_connect_ssi(struct rsnd_dai *rdai, in rsnd_parse_connect_ssi() argument
1112 struct rsnd_priv *priv = rsnd_rdai_to_priv(rdai); in rsnd_parse_connect_ssi()
1135 rsnd_ssi_connect(mod, &rdai->playback); in rsnd_parse_connect_ssi()
1137 rsnd_ssi_connect(mod, &rdai->capture); in rsnd_parse_connect_ssi()