priv->codec_priv.fll_id = WM8960_SYSCLK_AUTO;
priv->codec_priv.pll_id = WM8960_SYSCLK_AUTO;
priv->dai_fmt |= SND_SOC_DAIFMT_CBM_CFM;
++++ } else if (of_device_is_compatible(np, "fsl,imx-audio-ac97")) {
++++ codec_dai_name = "ac97-hifi";
++++ priv->card.set_bias_level = NULL;
++++ priv->dai_fmt = SND_SOC_DAIFMT_AC97;
} else {
dev_err(&pdev->dev, "unknown Device Tree compatible\n");
---- return -EINVAL;
++++ ret = -EINVAL;
++++ goto asrc_fail;
+++ }
+++
++++ if (!fsl_asoc_card_is_ac97(priv) && !codec_dev) {
++++ dev_err(&pdev->dev, "failed to find codec device\n");
++++ ret = -EINVAL;
++++ goto asrc_fail;
+ }
+
/* Common settings for corresponding Freescale CPU DAI driver */
if (strstr(cpu_np->name, "ssi")) {
/* Only SSI needs to configure AUDMUX */