Lines Matching refs:rdai
213 static u32 rsnd_rdai_width_to_swl(struct rsnd_dai *rdai) in rsnd_rdai_width_to_swl() argument
215 struct rsnd_priv *priv = rsnd_rdai_to_priv(rdai); in rsnd_rdai_width_to_swl()
217 int width = rsnd_rdai_width_get(rdai); in rsnd_rdai_width_to_swl()
229 unsigned int rsnd_ssi_clk_query(struct rsnd_dai *rdai, in rsnd_ssi_clk_query() argument
232 struct rsnd_priv *priv = rsnd_rdai_to_priv(rdai); in rsnd_ssi_clk_query()
238 int width = rsnd_rdai_width_get(rdai); in rsnd_ssi_clk_query()
271 struct rsnd_dai *rdai = rsnd_io_to_rdai(io); in rsnd_ssi_master_clk_start() local
280 if (!rsnd_rdai_is_clk_master(rdai)) in rsnd_ssi_master_clk_start()
308 main_rate = rsnd_ssi_clk_query(rdai, rate, chan, &idx); in rsnd_ssi_master_clk_start()
328 ssi->cr_clk = FORCE | rsnd_rdai_width_to_swl(rdai) | in rsnd_ssi_master_clk_start()
343 struct rsnd_dai *rdai = rsnd_io_to_rdai(io); in rsnd_ssi_master_clk_stop() local
346 if (!rsnd_rdai_is_clk_master(rdai)) in rsnd_ssi_master_clk_stop()
365 struct rsnd_dai *rdai = rsnd_io_to_rdai(io); in rsnd_ssi_config_init() local
366 struct rsnd_priv *priv = rsnd_rdai_to_priv(rdai); in rsnd_ssi_config_init()
387 cr_own |= FORCE | rsnd_rdai_width_to_swl(rdai); in rsnd_ssi_config_init()
389 if (rdai->bit_clk_inv) in rsnd_ssi_config_init()
391 if (rdai->frm_clk_inv && !is_tdm) in rsnd_ssi_config_init()
393 if (rdai->data_alignment) in rsnd_ssi_config_init()
395 if (rdai->sys_delay) in rsnd_ssi_config_init()
609 struct rsnd_dai *rdai = rsnd_io_to_rdai(io); in rsnd_ssi_hw_params() local
612 if (fmt_width > rdai->chan_width) { in rsnd_ssi_hw_params()
887 struct rsnd_dai *rdai = rsnd_io_to_rdai(io); in rsnd_ssi_parent_attach() local
893 if (!rsnd_rdai_is_clk_master(rdai)) in rsnd_ssi_parent_attach()
1180 struct rsnd_dai *rdai = rsnd_io_to_rdai(io); in rsnd_ssi_connect() local
1195 rsnd_rdai_channels_set(rdai, (i + 1) * 2); in rsnd_ssi_connect()
1196 rsnd_rdai_ssi_lane_set(rdai, (i + 1)); in rsnd_ssi_connect()
1202 void rsnd_parse_connect_ssi(struct rsnd_dai *rdai, in rsnd_parse_connect_ssi() argument
1206 struct rsnd_priv *priv = rsnd_rdai_to_priv(rdai); in rsnd_parse_connect_ssi()
1220 rsnd_ssi_connect(mod, &rdai->playback); in rsnd_parse_connect_ssi()
1222 rsnd_ssi_connect(mod, &rdai->capture); in rsnd_parse_connect_ssi()