Lines Matching refs:i2s_num
89 if (val < 0 || val >= afe_priv->soc->i2s_num) { in mt2701_dai_num_to_i2s()
113 int i2s_num = mt2701_dai_num_to_i2s(afe, dai->id); in mt2701_afe_i2s_startup() local
116 if (i2s_num < 0) in mt2701_afe_i2s_startup()
117 return i2s_num; in mt2701_afe_i2s_startup()
119 return mt2701_afe_enable_mclk(afe, mode ? 1 : i2s_num); in mt2701_afe_i2s_startup()
148 int i2s_num = mt2701_dai_num_to_i2s(afe, dai->id); in mt2701_afe_i2s_shutdown() local
152 if (i2s_num < 0) in mt2701_afe_i2s_shutdown()
155 i2s_path = &afe_priv->i2s_path[i2s_num]; in mt2701_afe_i2s_shutdown()
170 mt2701_afe_disable_mclk(afe, mode ? 1 : i2s_num); in mt2701_afe_i2s_shutdown()
236 int ret, i2s_num = mt2701_dai_num_to_i2s(afe, dai->id); in mt2701_afe_i2s_prepare() local
240 if (i2s_num < 0) in mt2701_afe_i2s_prepare()
241 return i2s_num; in mt2701_afe_i2s_prepare()
243 i2s_path = &afe_priv->i2s_path[i2s_num]; in mt2701_afe_i2s_prepare()
248 ret = mt2701_mclk_configuration(afe, mode ? 1 : i2s_num); in mt2701_afe_i2s_prepare()
270 int i2s_num = mt2701_dai_num_to_i2s(afe, dai->id); in mt2701_afe_i2s_set_sysclk() local
273 if (i2s_num < 0) in mt2701_afe_i2s_set_sysclk()
274 return i2s_num; in mt2701_afe_i2s_set_sysclk()
282 afe_priv->i2s_path[mode ? 1 : i2s_num].mclk_rate = freq; in mt2701_afe_i2s_set_sysclk()
1336 afe_priv->soc->i2s_num, in mt2701_afe_pcm_dev_probe()
1384 for (i = 0; i < afe_priv->soc->i2s_num; i++) { in mt2701_afe_pcm_dev_probe()
1453 .i2s_num = 4,
1458 .i2s_num = 4,