@@ -663,9 +663,7 @@ static int sof_card_dai_links_create(struct device *dev,
663
663
struct snd_soc_card * card )
664
664
{
665
665
int ssp_num , sdw_be_num = 0 , hdmi_num = 0 , dmic_num ;
666
- #if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC )
667
666
struct snd_soc_dai_link_component * idisp_components ;
668
- #endif
669
667
struct snd_soc_dai_link_component * ssp_components ;
670
668
struct snd_soc_acpi_mach_params * mach_params ;
671
669
const struct snd_soc_acpi_link_adr * adr_link ;
@@ -686,10 +684,8 @@ static int sof_card_dai_links_create(struct device *dev,
686
684
for (i = 0 ; i < ARRAY_SIZE (codec_info_list ); i ++ )
687
685
codec_info_list [i ].amp_num = 0 ;
688
686
689
- #if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC )
690
687
hdmi_num = sof_sdw_quirk & SOF_SDW_TGL_HDMI ?
691
688
SOF_TGL_HDMI_COUNT : SOF_PRE_TGL_HDMI_COUNT ;
692
- #endif
693
689
694
690
ssp_mask = SOF_SSP_GET_PORT (sof_sdw_quirk );
695
691
/*
@@ -849,7 +845,6 @@ static int sof_card_dai_links_create(struct device *dev,
849
845
INC_ID (be_id , cpu_id , link_id );
850
846
}
851
847
852
- #if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC )
853
848
/* HDMI */
854
849
if (hdmi_num > 0 ) {
855
850
idisp_components = devm_kcalloc (dev , hdmi_num ,
@@ -886,7 +881,6 @@ static int sof_card_dai_links_create(struct device *dev,
886
881
sof_sdw_hdmi_init , NULL );
887
882
INC_ID (be_id , cpu_id , link_id );
888
883
}
889
- #endif
890
884
891
885
card -> dai_link = links ;
892
886
card -> num_links = num_links ;
@@ -920,9 +914,7 @@ static int mc_probe(struct platform_device *pdev)
920
914
921
915
dmi_check_system (sof_sdw_quirk_table );
922
916
923
- #if IS_ENABLED (CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC )
924
917
INIT_LIST_HEAD (& ctx -> hdmi_pcm_list );
925
- #endif
926
918
927
919
card -> dev = & pdev -> dev ;
928
920
0 commit comments