}
 };
 
-#if IS_ENABLED(CONFIG_SND_HDA_CODEC_HDMI)
 static int sof_card_late_probe(struct snd_soc_card *card)
 {
        struct sof_card_private *ctx = snd_soc_card_get_drvdata(card);
 
        return hda_dsp_hdmi_build_controls(card, pcm->codec_dai->component);
 }
-#else
-static int sof_card_late_probe(struct snd_soc_card *card)
-{
-       return 0;
-}
-#endif
 
 static const struct snd_kcontrol_new sof_controls[] = {
        SOC_DAPM_PIN_SWITCH("Ext Spk"),
                sof_pcm512x_quirk = SOF_PCM512X_SSP_CODEC(2);
        } else {
                dmic_be_num = 2;
-#if IS_ENABLED(CONFIG_SND_HDA_CODEC_HDMI)
                if (mach->mach_params.common_hdmi_codec_drv &&
                    (mach->mach_params.codec_mask & IDISP_CODEC_MASK))
                        ctx->idisp_codec = true;
 
                /* links are always present in topology */
                hdmi_num = 3;
-#endif
        }
 
        dmi_check_system(sof_pcm512x_quirk_table);