struct snd_soc_dai *codec_dai = rtd->codec_dai;
struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
struct aml_card_data *priv = snd_soc_card_get_drvdata(rtd->card);
+ struct snd_soc_dai_link *dai_link = aml_priv_to_link(priv, rtd->num);
struct aml_dai_props *dai_props =
aml_priv_to_props(priv, rtd->num);
unsigned int mclk, mclk_fs = 0;
if (ret && ret != -ENOTSUPP)
goto err;
+ ret = snd_soc_dai_set_fmt(cpu_dai, dai_link->dai_fmt);
+ if (ret && ret != -ENOTSUPP)
+ goto err;
+
ret = snd_soc_dai_set_tdm_slot(cpu_dai,
aml_cpu_dai->tx_slot_mask,
aml_cpu_dai->rx_slot_mask,